List Info

Thread: ruby-1.8.5 loads fox16.so more than once




ruby-1.8.5 loads fox16.so more than once
user name
2006-09-01 06:48:01
Hi, all,

After upgrading ruby from 1.8.4 to 1.8.5, loading fox16
causes a warning 
for each constant, and $" shows that the .so has been
loaded more than 
once (see below).

I remember reporting this long ago for ruby 1.9 [1]. Maybe
something 
from 1.9 has now appeared in 1.8.5 that is causing this
problem?

Could it be that I just need to rebuild fox16 against the
newer ruby?

[1] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/r
uby/ruby-talk/117682




$ ruby -vr fox16 -e 'p $".grep(/fox/)'
ruby 1.8.4 (2005-12-24) [i686-linux]
/usr/local/lib/ruby/site_ruby/1.8/fox16/core.rb:177:
warning: method 
redefined; discarding old readBoolEntry
/usr/local/lib/ruby/site_ruby/1.8/fox16/core.rb:185:
warning: method 
redefined; discarding old writeBoolEntry
/usr/local/lib/ruby/site_ruby/1.8/fox16/aliases.rb:3573:
warning: method 
redefined; discarding old position
["fox16.so", "fox16/core.rb",
"fox16/dict.rb",
"fox16/settings.rb", 
"fox16/iterators.rb",
"fox16/keys.rb", "fox16/aliases.rb",

"fox16/responder2.rb",
"fox16/responder.rb",
"fox16/timeout.rb", 
"fox16/chore.rb", "fox16/signal.rb",
"fox16/input.rb", 
"fox16/glgroup.rb",
"fox16/execute_nonmodal.rb",
"fox16/version.rb"]




$ ruby -vr fox16 -e 'p $".grep(/fox/)'
ruby 1.8.5 (2006-08-25) [i686-linux]
/usr/local/lib/ruby/site_ruby/1.8/fox16/core.rb:177:
warning: method 
redefined; discarding old readBoolEntry
/usr/local/lib/ruby/site_ruby/1.8/fox16/core.rb:185:
warning: method 
redefined; discarding old writeBoolEntry
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant TRUE
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant FALSE
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant MAYBE
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant NULL
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant SEL_NONE
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant SEL_KEYPRESS
.
.
.
initialized constant ID_REFRESH
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/fox16.so:
warning: already 
initialized constant ID_LAST
/usr/local/lib/ruby/site_ruby/1.8/fox16/aliases.rb:3573:
warning: method 
redefined; discarding old position
["fox16/core.rb", "fox16/dict.rb",
"fox16/settings.rb", 
"fox16/execute_nonmodal.rb",
"fox16.so", "fox16/version.rb",
"fox16.so", 
"fox16/glgroup.rb", "fox16.so",
"fox16/responder.rb", 
"fox16/timeout.rb",
"fox16/chore.rb", "fox16/signal.rb",

"fox16/input.rb",
"fox16/responder2.rb", "fox16.so",
"fox16/aliases.rb", 
"fox16.so", "fox16/keys.rb",
"fox16.so", "fox16/iterators.rb",
"fox16.so"]

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665
3407
_______________________________________________
fxruby-users mailing list
fxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/fxruby-users
ruby-1.8.5 loads fox16.so more than once
user name
2006-09-01 11:35:37
On Sep 1, 2006, at 1:48 AM, Joel VanderWerf wrote:

> Hi, all,
>
> After upgrading ruby from 1.8.4 to 1.8.5, loading fox16
causes a  
> warning
> for each constant, and $" shows that the .so has
been loaded more than
> once (see below).
>
> I remember reporting this long ago for ruby 1.9 [1].
Maybe something
> from 1.9 has now appeared in 1.8.5 that is causing this
problem?
>
> Could it be that I just need to rebuild fox16 against
the newer ruby?
>
> [1] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/r
uby/ruby-talk/117682

Well, this is no good. I'm seeing the same problem on Mac
OS X with  
fox16 built against Ruby 1.8.5 -- so I don't have any
reason to  
believe that rebuilding will make the problem go away. And I
see that  
you didn't get any responses to your post to ruby-core (did
you?)

I guess I need to run this under the debugger and see
what's going on  
(i.e. why it's loading the shared object more than once).
Surely the  
semantics of require haven't changed?
_______________________________________________
fxruby-users mailing list
fxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/fxruby-users
ruby-1.8.5 loads fox16.so more than once
user name
2006-09-01 18:04:24
Lyle Johnson wrote:
> On Sep 1, 2006, at 1:48 AM, Joel VanderWerf wrote:
> 
>> Hi, all,
>>
>> After upgrading ruby from 1.8.4 to 1.8.5, loading
fox16 causes a  
>> warning
>> for each constant, and $" shows that the .so
has been loaded more than
>> once (see below).
>>
>> I remember reporting this long ago for ruby 1.9
[1]. Maybe something
>> from 1.9 has now appeared in 1.8.5 that is causing
this problem?
>>
>> Could it be that I just need to rebuild fox16
against the newer ruby?
>>
>> [1] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/r
uby/ruby-talk/117682
> 
> Well, this is no good. I'm seeing the same problem on
Mac OS X with  
> fox16 built against Ruby 1.8.5 -- so I don't have any
reason to  
> believe that rebuilding will make the problem go away.
And I see that  
> you didn't get any responses to your post to ruby-core
(did you?)

I can't seem to find any responses (and I have no clear
memory of any).

There doesn't seem to be anything in Mauricio's 1.8.5
writeup[1] that 
would explain the problem.

[1] ht
tp://eigenclass.org/hiki.rb?ruby+1.8.5+changelog

> I guess I need to run this under the debugger and see
what's going on  
> (i.e. why it's loading the shared object more than
once). Surely the  
> semantics of require haven't changed?
> _______________________________________________
> fxruby-users mailing list
> fxruby-usersrubyforge.org
> ht
tp://rubyforge.org/mailman/listinfo/fxruby-users


-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665
3407
_______________________________________________
fxruby-users mailing list
fxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/fxruby-users
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )