Lyle,
  I don't know if this is the correct thread, but I am also having trouble
compiling
FXRuby on my linux Red Hat 7.1 box.

ruby 1.6.4 (2001-06-04) [i686-linux]
FXRuby-0.99.172

My attempts from compiling:
src> ruby extconf.rb
checking for png_create_read_struct() in -lpng... yes
checking for deflate() in -lz... yes
checking for jpeg_mem_init() in -ljpeg... yes
checking for XShmQueryVersion() in -lXext... yes
checking for XFindContext() in -lX11... yes
checking for glXCreateContext() in -lGL... yes
checking for gluNewQuadric() in -lGLU... yes
creating Makefile

src>make
gcc -fPIC -g -O2 -DSWIG_NOINCLUDE -I../include
-I/usr/local/lib/ruby/1.6/i686-linux -I/usr/local/include
-I/usr/local/include/fox -c -o librb.o librb.c
g++ -fPIC -g -O2 -DSWIG_NOINCLUDE -I../include
-I/usr/local/lib/ruby/1.6/i686-linux -I/usr/local/include
-I/usr/local/include/fox -c -o FXRbApp.o FXRbApp.cppFXRbApp.cpp: In method
`long int FXRbApp::onChoreThreads (FXObject *,
unsigned int, void *)':
/usr/local/lib/ruby/1.6/i686-linux/intern.h:172: too many arguments to
function `void
rb_thread_wait_for ()'
FXRbApp.cpp:100: at this point in file
make: *** [FXRbApp.o] Error 1

I change FXRbApp.cpp from :
   rb_thread_wait_for(wait);
to:
   rb_thread_wait_for();

since /usr/local/lib/ruby/1.6/i686-linux/intern.h, on line 172 is:
void rb_thread_wait_for();


Then rerunning make:
src>make

g++ -fPIC -g -O2 -DSWIG_NOINCLUDE -I../include
-I/usr/local/lib/ruby/1.6/i686-linux -I/usr/local/include
-I/usr/local/include/fox -c -o FXRbApp.o FXRbApp.cppg++ -fPIC -g -O2
-DSWIG_NOINCLUDE -I../include -I/usr/local/lib/ruby/1.6/i686-linux
-I/usr/local/include    -I/usr/local/include/fox -c -o FXRbDataTarget.o
FXRbDataTarget.cpp
g++ -fPIC -g -O2 -DSWIG_NOINCLUDE -I../include
-I/usr/local/lib/ruby/1.6/i686-linux -I/usr/local/include
-I/usr/local/include/fox -c -o FXRuby.o FXRuby.cpp
FXRuby.cpp: In function `void FXRbGcMark (void *)':
/usr/local/lib/ruby/1.6/i686-linux/intern.h:188: too many arguments to
function `void rb_gc_mark ()'

The same problem exists as above.  After making the changes the code will
compile (even though I have to compile the core_wrap.cpp file with -O not
-O2 because of other problems).

Once compiled, I am pretty sure that the changes that I made above make the
examples not work.
Any ideas what is going on... any version mixups?


Thanks,
  Craig



Lyle Johnson wrote:

> > I didn't get FXRuby (Ruby interface for FOX GUI Toolkit) available from
> > fxruby.sourceforge.net working on NetBSD 1.5.
> >
> > At first I get a memory exhausted error, but when disabling optimations
> this do
> > not occures any longer.
> > But then I get a '/usr/lib/libstdc++.so.2: Undefined symbol
> "__vt_9exception"...'
> > error when trying to load the shared library.
> >
> > Perhaps a too old version of the stdc++ library?
> >
> > Has anybody some hints?
>
> Michael,
>
> It builds OK under Linux (well, RedHat and Mandrake, anyways) but I don't
> have access to a NetBSD box. If you do get an answer to this problem please
> let me know so I can incorporate it into the build instructions.
>
> Thanks in advance,
>
> Lyle

--
___________________________________________________________________________
 Craig Files                                |                  /
  http://fccf0183l.ftc.agilent.com/~cfiles/ |       __o       /
  craig_files / agilent.com                   |       \<,      /
____________________________________________|_____()/ ()____/ (970)288-0183