On Wed, 17 Aug 2005 15:06:10 -0600, Jacob Hanson <jacdx@jacobhanson.com> wrote :> Now that you mention it, I''m having trouble getting fxruby going on > fresh kubuntu installation. > > First, doing a gem install, it would act like it installed fine (no > errors or anything, but the .so was no where to be found). I figured > out that libfox1.2 wasn''t installed, just 1.0, so I installed that > apt. The next try yielded the same thing...no errors visible. > > Given the messages on the list today, I found the build log (mkmf.log) and > apparently it couldn''t find gcc. I got some basic devel packages > installed and this time, it''s actually building but there are hundreds > of warnings. It did finally build fox12.so and it seems to work with > my fxruby app.Yes, compiling code is indeed a problem when you don''t have a compiler installed. I wouldn''t have expected to see "hundreds" of warnings when building FXRuby, though; it''s developed on my Mac OS X box, also using the GCC compiler (version 3.3 maybe?).
Wednesday, August 17, 2005, 3:45:01 PM, you wrote:> On Wed, 17 Aug 2005 15:06:10 -0600, Jacob Hanson <jacdx@jacobhanson.com> wrote :> Yes, compiling code is indeed a problem when you don''t have a compiler > installed. I wouldn''t have expected to see "hundreds" of warnings when > building FXRuby, though; it''s developed on my Mac OS X box, also using the > GCC compiler (version 3.3 maybe?).Heh, ok, hundreds might be a slight exaggeration. ;) There were a bunch though. More than seem to be in the log. Yes, gcc 3.3.5. Brand new install of Kubuntu Hoary (debian based). FWIW See ya, -- _/ _/ _/ Jacob Hanson _/ _/_/_/ mailto:jacdx@jacobhanson.com _/_/_/ _/ _/ http://www.jacobhanson.com -------------- next part -------------- have_header: checking for sys/time.h... -------------------- yes "gcc -E -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -o conftest.i" checked program was: /* begin */ #include <sys/time.h> /* end */ -------------------- have_header: checking for signal.h... -------------------- yes "gcc -E -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -o conftest.i" checked program was: /* begin */ #include <signal.h> /* end */ -------------------- have_library: checking for png_create_read_struct() in -lpng... -------------------- no "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lstdc++ -lruby1.8-static -lpng -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `png_create_read_struct'' /usr/bin/ld: cannot find -lpng collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { png_create_read_struct(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lstdc++ -lruby1.8-static -lpng -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `png_create_read_struct'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))png_create_read_struct; return 0; } /* end */ -------------------- have_library: checking for deflate() in -lz... -------------------- yes "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lstdc++ -lruby1.8-static -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `deflate'' checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { deflate(); return 0; } /* end */ -------------------- have_library: checking for jpeg_mem_init() in -ljpeg... -------------------- no "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lz -lstdc++ -lruby1.8-static -ljpeg -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `jpeg_mem_init'' /usr/bin/ld: cannot find -ljpeg collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { jpeg_mem_init(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lz -lstdc++ -lruby1.8-static -ljpeg -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `jpeg_mem_init'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))jpeg_mem_init; return 0; } /* end */ -------------------- have_library: checking for TIFFSetErrorHandler() in -ltiff... -------------------- no "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lz -lstdc++ -lruby1.8-static -ltiff -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `TIFFSetErrorHandler'' /usr/bin/ld: cannot find -ltiff collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { TIFFSetErrorHandler(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lz -lstdc++ -lruby1.8-static -ltiff -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `TIFFSetErrorHandler'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))TIFFSetErrorHandler; return 0; } /* end */ -------------------- find_library: checking for XShmQueryVersion() in -lXext... -------------------- yes "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lz -lstdc++ -lruby1.8-static -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `XShmQueryVersion'' /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { XShmQueryVersion(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -lz -lstdc++ -lruby1.8-static -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `XShmQueryVersion'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))XShmQueryVersion; return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lz -lstdc++ -lruby1.8-static -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `XShmQueryVersion'' checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { XShmQueryVersion(); return 0; } /* end */ -------------------- find_library: checking for XFindContext() in -lX11... -------------------- yes "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lXext -lz -lstdc++ -lruby1.8-static -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `XFindContext'' checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { XFindContext(); return 0; } /* end */ -------------------- find_library: checking for glXCreateContext() in -lGL... -------------------- no "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGL -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `glXCreateContext'' /usr/bin/ld: cannot find -lGL collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { glXCreateContext(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGL -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `glXCreateContext'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))glXCreateContext; return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGL -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `glXCreateContext'' /usr/bin/ld: cannot find -lGL collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { glXCreateContext(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGL -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `glXCreateContext'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))glXCreateContext; return 0; } /* end */ -------------------- find_library: checking for gluNewQuadric() in -lGLU... -------------------- no "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGLU -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `gluNewQuadric'' /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { gluNewQuadric(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGLU -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `gluNewQuadric'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))gluNewQuadric; return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGLU -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:4: warning: implicit declaration of function `gluNewQuadric'' /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { gluNewQuadric(); return 0; } /* end */ "gcc -o conftest -I/usr/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12 -I/usr/lib/ruby/1.8/i386-linux -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 -I/usr/include/fox-1.2 -Wall -g -O2 -fPIC conftest.c -L"/usr/local/lib" -L"/usr/lib" -L"/usr/X11R6/lib" -lX11 -lXext -lz -lstdc++ -lruby1.8-static -lGLU -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function `t'': conftest.c:5: error: `gluNewQuadric'' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))gluNewQuadric; return 0; } /* end */ --------------------
On Aug 17, 2005, at 5:01 PM, Jacob Hanson wrote:> Heh, ok, hundreds might be a slight exaggeration. ;) There were a bunch > though. More than seem to be in the log. Yes, gcc 3.3.5. Brand new > install of Kubuntu Hoary (debian based).You sent the mkmf.log file, which is a log of the configuration for the build but doesn''t actually log the compiler errors. If you built the code from a Gem, there should be a file named gem_make.out in there somewhere, e.g. /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.2.6/ext/fox12/gem_make.out If you can send that to me, I''d like to see what the errors were (and if they look important). Thanks, Lyle