From: Lyle Johnson Date: 2002-11-09T02:33:27+09:00 Subject: Re: Fox, Solaris 2.9 problem Daniel Berger wrote: > We're getting closer. Making this change got me through the installation. Good. > Now I'm having problems with the tests: > > root@sp5wd-b1-/usr/local/FXRuby-1.0.14/tests-590>/opt/sfw/bin/ruby TC_FXButton.rb OK, we see a lot of warnings being issued for Test::Unit stuff (not my code!) but also: > /opt/sfw/lib/ruby/site_ruby/1.7/sparc-solaris2.9/fox.so: ld.so.1: > /opt/sfw/bin/ruby: fatal: relocation error: file > /opt/sfw/lib/ruby/site_ruby/1.7/sparc-solaris2.9/fox.so: symbol > _ZN16FXProgressDialog9metaClassE: referenced symbol not found - > /opt/sfw/lib/ruby/site_ruby/1.7/sparc-solaris2.9/fox.so (LoadError) > from TC_FXButton.rb:3 My initial guess is that it simply doesn't see the FOX shared library (i.e. libFOX.so) in your dynamically-loaded libraries path. Ruby *is* seeing "fox.so", which is the shared library that implements the FXRuby extension module; but "fox.so" depends on "libFOX.so" which is the main C++ FOX library and that seems to be missing in action. So if you're using the C shell (or tcsh), try typing: setenv LD_LIBRARY_PATH /opt/sfw/lib which is where I'm assuming you installed FOX. Or if you're running the Bourne shell (or bash) you'd want to type: export LD_LIBRARY_PATH=/opt/sfw/lib Then try to run a test case again. Or for that matter, just fire up 'irb' and try to: irb(main):001:0> require 'fox' It will either work or it won't ;) > I'm guessing I should be seeing a widget of some kind at this point, but no luck. Actually, no; none of the unit tests in the "tests" subdirectory actually display anything. There are however a number of example programs in the "examples" subdirectory that display all kinds of weird and wonderful GUIs. But if the unit tests don't run (due to the previously described problem) then the examples won't either. > Am I looking at rebuilding Fox with different ld options? I don't remember now if > I ended up using GNU's ld or Sun's ld. I hope this isn't required, but I honestly don't the answer. I think our new Sun box is now in here at work but I don't know if it's been set up yet. I'll ask today about how that's going and if I can get an account to play on.