FXRuby 1.4 doesn't compile on Mandrake Linux

I get the following error:

$ sudo gem install fxruby
Attempting local installation of ‘fxruby’
Local gem file not found: fxruby*.gem
Attempting remote installation of ‘fxruby’
Updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i686-linux)

  1. fxruby 1.4.3 (mswin32)
  2. fxruby 1.4.3 (ruby)
    […snip…]

2
Building native extensions. This could take a while…
In file included from include/FXRuby.h:747,
from include/FXRbCommon.h:90,
from ui_wrap.cpp:581:
include/FXRbIconSourceVirtuals.h:15: error: invalid covariant return
type for v irtual FX::FXImage* FXRbIconSource::loadImage(const void*, const FX::FXString&) const' /usr/include/fox-1.4/FXIconSource.h:109: error: overriding virtual
FX::FXIcon

  • FX::FXIconSource::loadImage(const void*, const FX::FXString&) const’
    make: *** [ui_wrap.o] Error 1

gcc reads:

$ gcc -v
Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/specs
Configured with: …/configure --prefix=/usr --libexecdir=/usr/lib
–with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
–enable-shared --enable-threads=posix --disable-checking
–enable-long-long --enable-__cxa_atexit --enable-clocale=gnu
–disable-libunwind-exceptions
–enable-languages=c,c++,ada,f77,objc,java
–host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)

Any idea?

Guillaume.

On 11/29/05, Guillaume M. [email protected] wrote:

I get the following error:

Any idea?

You need to first upgrade to a more recent version of FOX 1.4. The
compile error you’re seeing is due to a bug in the FOX header files,
and this bug was fixed in FOX 1.4.12 (way back in April). Please
resist the urge to download FOX 1.6, since FXRuby 1.4 is not in fact
compatible with FOX 1.6.