From: Robert A. <rob...@ea...> - 2002-02-12 21:21:12
|
Hello, I made ruby-fltk-0.1 on netbsd v1.5 with the command ruby extconf.rb --disable-gl --with-fltk-include=/home/omura/pub/fltk-1.1.0b10 \ --with-fltk-lib=/home/omura/pub/fltk-1.1.0b10/lib This compiled each file like this one, for example: c++ -fPIC -g -O2 -pipe -I/usr/local/lib/ruby/1.6/i386-netbsdelf1.5 -I. -I/usr/local/include -DHAVE_FL_FL_H -I/home/omura/pub/fltk-1.1.0b10 -o flinput flinput.cc And linked like this: gcc -shared -L/home/omura/pub/fltk-1.1.0b10/lib -L/usr/local/lib/ruby/1.6/i386-netbsdelf1.5 -L/usr/local/lib -Wl,-R/home/omura/pub/fltk-1.1.0b10/lib -Wl,-R/usr/local/lib/ruby/1.6/i386-netbsdelf1.5 -Wl,-R/usr/local/lib -L/usr/X11R6/lib -lX11 -lXext -o rubyfltk.so flbox.o flbrowser.o flbutton.o flchart.o flclock.o flcolorchooser.o flenum.o flfree.o flgroup.o flinput.o flmenu.o flpack.o flpositioner.o flscroll.o fltabs.o fltile.o fltimer.o fltk.o flvaluator.o flwidget.o flwindow.o -lfltk -lc -lz Then when I try to run ruby sample1.rb I get: /usr/local/lib/ruby/1.6/fltk.rb:1:in `require': /usr/local/lib/ruby/1.6/i386-netbsdelf1.5/rubyfltk.so: Undefined symbol "__pure_virtual" (reloc type = 1, symnum = 1144) - /usr/local/lib/ruby/1.6/i386-netbsdelf1.5/rubyfltk.so (LoadError) from /usr/local/lib/ruby/1.6/fltk.rb:1 from sample1.rb:1:in `require' from sample1.rb:1 Does anyone know where this symbol lives? I saw that fluid also contains this symbol but it works ok. Am I missing something in my link? Any help is greatly appreciated. Robert Anderson |