lyle@knology.net
2004-Sep-15 10:33 UTC
[fxruby-users] Re: [Fwd: undefined symbol acquireSelection]
On Tue, 14 Sep 2004 22:21:38 -0700, Joel VanderWerf <vjoel@PATH.Berkeley.EDU> wrote :> Going back to Fox 1.0.41 gets around the problem. I''m still using > FXRuby-1.0.29. Is there any reason why later fox-1.0 libs would not be > compatible with FXRuby-1.0?No, any of the fox-1.0.x versions should work fine with FXRuby 1.0. I wonder if it would be informative to try this experiment: 1. Re-install the more recent version of FOX 1.0 (the one you said you were trying earlier). For reference, the FOX home page claims that the latest version in that series is 1.0.53. 2. Re-link FXRuby 1.0 against that. You shouldn''t need to recompile anything (I think?) but you will probably need to remove the fox.so file from FXRuby-1.0.29/ext/fox and then re-link. 3. Install it and try to run the example (dialog.rb). If you still get the problem, try running ''ldd'' on the installed fox.so, i.e. /usr/local/lib/ruby/site_ruby/1.9/i686-linux/fox.so and let me know what it shows. I wonder if there''s some issue with Ruby 1.9? I guess I need to check that out as well. Thanks, Lyle> Joel VanderWerf wrote: > > I just built and installed the most recent 1.0 versions of Fox and > > FXRuby, in that order. The fox examples work fine, but FXRuby examples > > don''t: > > > > $ ruby dialog.rb > > /usr/local/lib/ruby/site_ruby/1.9/i686-linux/fox.so: > > /usr/local/lib/ruby/site_ruby/1.9/i686-linux/fox.so: undefined symbol: > > _ZN8FXWindow16acquireSelectionEPKjj - > > /usr/local/lib/ruby/site_ruby/1.9/i686-linux/fox.so (LoadError) > > from dialog.rb:3 > > > > > > Obviously, this is linux (Mandrake 9.1). Also, gcc 3.2.2. > > > > I tried the -lgcc suggestion from the HTML docs, but that didn''t change > > anything. > > > > Maybe something is stale somewhere. I''ll try deleting libs and > > reinstalling from scratch. > > > > >