New ruby from cvs

I installed new ruby 1.7.2 (2002-08-21) from cvs and get warning in
httpd.log:
/usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class
for SQL::Error', Object assumed /usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class forSQL::PGConn’, Object assumed

/…/mylib.rb:33:in connect': undefined method(null)’ for
#SQL::PGConn:0x8360d64 (NoMethodError)

SQL::Error defined in c extension:
rb_mSQL = rb_define_module(“SQL”);
rb_eError = rb_define_class_under(rb_mSQL, “Error”, rb_eRuntimeError);
rb_cPG = rb_define_class_under(rb_mSQL, “PGConn”, rb_cObject);

What is happening? It has worked before and now fails.

···


Best regards,
Eugene [team Enticla] mailto:Eugene.Scripnik@itgrp.net

  /usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class
  for `SQL::Error', Object assumed
  /usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class
  for `SQL::PGConn', Object assumed

Have you stopped and restarted your server after the installation of
the new version of ruby ?

It seems to work fine, with me

pigeon% cat aa.c
#include "ruby.h"

void Init_aa()
{
    VALUE aa_mSQL, aa_eError, aa_cPG;
    aa_mSQL = rb_define_module("SQL");
    aa_eError = rb_define_class_under(aa_mSQL, "Error", rb_eRuntimeError);
    aa_cPG = rb_define_class_under(aa_mSQL, "PGConn", rb_cObject);
}
pigeon%

pigeon% ruby -raa -ve 1
ruby 1.7.2 (2002-08-23) [i686-linux]
-e:1: warning: useless use of a literal in void context
pigeon%

Guy Decoux

Hello Eugene,

Friday, August 23, 2002, 2:17:47 PM, you wrote:

I installed new ruby 1.7.2 (2002-08-21) from cvs and get warning in
httpd.log:
/usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class
for SQL::Error', Object assumed /usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class forSQL::PGConn’, Object assumed

/…/mylib.rb:33:in connect': undefined method(null)’ for
#SQL::PGConn:0x8360d64 (NoMethodError)

SQL::Error defined in c extension:
rb_mSQL = rb_define_module(“SQL”);
rb_eError = rb_define_class_under(rb_mSQL, “Error”, rb_eRuntimeError);
rb_cPG = rb_define_class_under(rb_mSQL, “PGConn”, rb_cObject);

What is happening? It has worked before and now fails.
just a guess… mybe you should recompile pgsql-ruby?

···


Best regards,
jah mailto:hermit-jah@yandex.ru

In article 11516791281.20020823141748@itgrp.net,

···

Eugene Scripnik Eugene.Scripnik@itgrp.net wrote:

I installed new ruby 1.7.2 (2002-08-21) from cvs and get warning in
httpd.log:
/usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class
for SQL::Error', Object assumed /usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class forSQL::PGConn’, Object assumed

/…/mylib.rb:33:in connect': undefined method(null)’ for
#SQL::PGConn:0x8360d64 (NoMethodError)

SQL::Error defined in c extension:
rb_mSQL = rb_define_module(“SQL”);
rb_eError = rb_define_class_under(rb_mSQL, “Error”, rb_eRuntimeError);
rb_cPG = rb_define_class_under(rb_mSQL, “PGConn”, rb_cObject);

What is happening? It has worked before and now fails.

    • I’ve been tracking the latest cvs and there has been at
      least one bug that would make ruby unusable in the last
      couple weeks. The cvs version is development and you need
      to test it before using it. I would definitely run rubicon
      against it before installing.
    • Booker C. Bense

Friday, August 23, 2002, 3:47:19 PM, you wrote:

/usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class
for SQL::Error', Object assumed /usr/local/lib/ruby/1.7/auto-reload.rb:53: warning: no super class forSQL::PGConn’, Object assumed

Have you stopped and restarted your server after the installation of
the new version of ruby ?
I don’t understand what happens - the same configuration on another
computer works fine without warnings and errors. Web applications are
difficult to debug, I can’t reproduce this behavior in plain script. I
asked help in hope that somebody had meet the same problem.
Don’t bother, I installed June version - it works fine.

···


Best regards,
Eugene [team Enticla] mailto:Eugene.Scripnik@itgrp.net

It get no results. Solution was to rollback ruby && mod_ruby to 2002-07-01

···

On Fri, 23 Aug 2002, jah wrote:

SQL::Error defined in c extension:
rb_mSQL = rb_define_module(“SQL”);
rb_eError = rb_define_class_under(rb_mSQL, “Error”, rb_eRuntimeError);
rb_cPG = rb_define_class_under(rb_mSQL, “PGConn”, rb_cObject);

What is happening? It has worked before and now fails.
just a guess… mybe you should recompile pgsql-ruby?


Best regards,
Vitaliy Morarian

Hi,

···

In message “Re: new ruby from cvs” on 02/08/24, bbense+comp.lang.ruby.Aug.23.02@telemark.stanford.edu bbense+comp.lang.ruby.Aug.23.02@telemark.stanford.edu writes:

  • I’ve been tracking the latest cvs and there has been at
    least one bug that would make ruby unusable in the last
    couple weeks. The cvs version is development and you need
    to test it before using it. I would definitely run rubicon
    against it before installing.

Don’t forget to tell what the bug is. I’d be glad to fix.

						matz.

In article 1030147405.185716.18288.nullmailer@picachu.netlab.jp,

···

Yukihiro Matsumoto matz@ruby-lang.org wrote:

Hi,

In message “Re: new ruby from cvs” > on 02/08/24, bbense+comp.lang.ruby.Aug.23.02@telemark.stanford.edu bbense+comp.lang.ruby.Aug.23.02@telemark.stanford.edu writes:

  • I’ve been tracking the latest cvs and there has been at
    least one bug that would make ruby unusable in the last
    couple weeks. The cvs version is development and you need
    to test it before using it. I would definitely run rubicon
    against it before installing.

Don’t forget to tell what the bug is. I’d be glad to fix.

    • Already Done. Submitting to ruby-bugs is the First thing
      I do.
    • Booker C. Bense