FXRuby-1.2.2 fails to compile

S

Stefan Lang

I compiled and installed fox-1.2.11 on my SUSE-Linux machine.
(My Ruby installation: ruby 1.8.2 (2004-11-06) [i686-linux])

Then i tried to build FXRuby-1.2.2:
ruby install.rb config
ruby install.rb setup

but gcc fail with the following message:

g++ -fPIC -g -O2 -O0 -Iinclude -DWITH_FXSCINTILLA -I.
-I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux
-I/home/stefan/Ruby/lib/FXRuby-1.2.2/ext/fox12 -DHAVE_SYS_TIME_H
-DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2
-c FXRuby.cpp
FXRuby.cpp:64: error: declaration of C function `void st_foreach(st_table*,
int
(*)(char*, char*, char*), char*)' conflicts with
/usr/lib/ruby/1.8/i686-linux/intern.h:249: error: previous declaration `void
st_foreach(st_table*, int (*)(), long unsigned int)' here
make: *** [FXRuby.o] Fehler 1
setup failed
'system make ' failed

This is the third GUI toolkit for Ruby i try to install.
Korundum (KDE bindings) doesn't compile
and the same with ruby-FLTK.

Has anyone out there already used one of those GUI toolkits
one a SUSE (9.1) machine?

Thanks in advance,
Stefan
(Excuse me for my "broken" English ;)
 
L

Lyle Johnson

I compiled and installed fox-1.2.11 on my SUSE-Linux machine... but gcc fail with the following message:

<snip>

As Kevin noted, this is a known problem that I plan to resolve in the
next release. (It will presumably break builds for FXRuby 1.0.29 as
well.)

The declaration for Ruby's st_foreach() function changed in the latest
preview release for Ruby 1.8.2 and that is the source of the breakage.
To be fair, st_foreach() isn't really a part of the "public" C API for
Ruby and so I shouldn't have been relying on its stability. Live and
learn. ;)
 
S

Stefan Lang

Am Donnerstag, 2. Dezember 2004 16:15 schrieb Kevin Pratt:
FXRuby does not work with 1.8.2 preview 3 bug was reported at the ruby
forge site.
backing up to preview 2 works fine tho.
http://rubyforge.org/tracker/index.php?func=detail&aid=1039&group_id=300&at
id=1223

Thanks for the immediate response.
After playing with $RUBY_PATH, i was able to run my first
FXRuby app :)

BTW: I have to require 'fox12' instead of the require 'fox' used in
most examples.
 
S

Stefan Lang

Am Donnerstag, 2. Dezember 2004 17:56 schrieb Stefan Lang:
Am Donnerstag, 2. Dezember 2004 16:15 schrieb Kevin Pratt:

Thanks for the immediate response.
After playing with $RUBY_PATH, i was able to run my first
FXRuby app :)

BTW: I have to require 'fox12' instead of the require 'fox' used in
most examples.
Sorry for the noise, already found the reason why I have to
require 'fox12' in the docs.
Possibly, some newbies (like me) might have problems because
the first examples start with "require 'fox'" which won't work if they just
installed the latest version of FXRuby. Perhaps a note at the
beginning of doc/ in the package might help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top