[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

FXRuby-1.2.2 fails to compile

Stefan Lang

12/2/2004 3:02:00 PM

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 ;)


4 Answers

Kevin Pratt

12/2/2004 3:16:00 PM

0

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&...


On Fri, 3 Dec 2004 00:01:38 +0900, Stefan Lang <langstefan@gmx.at> wrote:
> 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 ;)
>
>


Lyle Johnson

12/2/2004 4:35:00 PM

0

On Fri, 3 Dec 2004 00:01:38 +0900, Stefan Lang <langstefan@gmx.at> wrote:

> 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. ;)


Stefan Lang

12/2/2004 4:57:00 PM

0

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=...
>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.

--
Stefan


Stefan Lang

12/2/2004 5:47:00 PM

0

Am Donnerstag, 2. Dezember 2004 17:56 schrieb 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_i...
> >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.
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.

--
Stefan