FXRuby & Debian

I’ve added ‘-lgcc’ to FXRuby’s Makefile, but when I am trying to run any
FXRuby app, I have:

…/testfox.rb:3:in `require’: /usr/local/lib/site_ruby/1.6/i386-linux/fox.so:
undefined symbol: _ZN5FXApp9metaClassE -
/usr/local/lib/site_ruby/1.6/i386-linux/fox.so (LoadError)
from ./testfox.rb:3

···


Szymon Drejewicz

Hello,

···

On Fri, Mar 21, 2003, Szymon Drejewicz wrote:

…/testfox.rb:3:in `require’: /usr/local/lib/site_ruby/1.6/i386-linux/fox.so:
undefined symbol: _ZN5FXApp9metaClassE -
/usr/local/lib/site_ruby/1.6/i386-linux/fox.so (LoadError)
from ./testfox.rb:3

maybe it’s not worth saying it too, but my FXRuby (compiled on Debian)
shows up the same error.

I didn’t add any flag to the build system.

HTH,

Pierre Baillet
Among the maxims on Lord Naoshige’s wall, there was this one: “Matters of great
concern should be treated lightly.” Master Ittei commented, “Matters of small
concern should be treated seriously.”
Ghost Dog - The Way of the Samouraï

Szymon Drejewicz wrote:

I’ve added ‘-lgcc’ to FXRuby’s Makefile, but when I am trying to run any
FXRuby app, I have:

./testfox.rb:3:in `require’: /usr/local/lib/site_ruby/1.6/i386-linux/fox.so:
undefined symbol: _ZN5FXApp9metaClassE -
/usr/local/lib/site_ruby/1.6/i386-linux/fox.so (LoadError)
from ./testfox.rb:3

I suspect that the FOX library (libFOX.so) is not in the search path for
your dynamically loaded libraries. Please see the comments under the
heading “Cannot load library” on this page:

http://www.fxruby.org/doc/build.html

for more information.

Hope this helps,

Lyle