"undefined symbol" with wxRuby gem on Fedora Core 5

I’m trying to test on platforms other than Windows, starting with my
Fedora Core 5 box. I’m getting this error when trying to run the
Hello World script
(http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World):

undefined symbol: gtk_widget_is_composited -
/usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-
linux/lib/wxruby2.so (LoadError)

This happens with both the wxRuby 1.9.4 and 1.9.2 gems. I’m not
really looking to build from source; I want the gem to auto-download
and “just work” for users of my full application. Hopefully I’m just
missing something that can be downloaded via a package manager, which
I can include in installation instructions. Can anyone advise?

-Jay McGavren
http://jay.mcgavren.com/zyps

Hi Jay

Jay McGavren wrote:

I’m trying to test on platforms other than Windows, starting with my
Fedora Core 5 box. I’m getting this error when trying to run the
Hello World script
(http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World):

undefined symbol: gtk_widget_is_composited -
/usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-
linux/lib/wxruby2.so (LoadError)

Thanks for the report.

I’m pretty sure this will be because the version of GTK on the (Ubuntu
7.10) machine that I build wxWidgets and the wxRuby gem on is newer than
that on the machine you’re trying to install on. It looks like that
method is referenced in one place in the wxWidgets source and
conditionally compiled for version 2.10 of GTK.

Could you see what version of GTK2 is provided with your distro please?

This happens with both the wxRuby 1.9.4 and 1.9.2 gems. I’m not
really looking to build from source; I want the gem to auto-download
and “just work” for users of my full application. Hopefully I’m just
missing something that can be downloaded via a package manager, which
I can include in installation instructions. Can anyone advise?

First step would be to see if there is an upgrade to the latest GTK2.10
available from your repo. That would verify that’s the issue.

More generally, for the binary gems we aim for the commonest platforms -
hence Windows XP, Ubuntu, and OS X 10.4. But if we can make the gems
more compatible with little compromise on features, we will, as Sean did
to make the 1.9.4 release work on OS X 10.4 as well as 10.5.

I’ll seek some advice on whether I can compile wxWidgets in a more
backwards-compatible way re GTK, although some of the stuff that’s being
used to do conditional compilation is actually direct from GTK.

cheers
alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs