Re: [Plib-users] Undefined reference to ...
Brought to you by:
sjbaker
From: Ibrahim M. <ib...@ya...> - 2004-03-09 17:05:05
|
Hi again, After trying a few things, I thought of trying to build plib from source. So I do an apt-get source, and try to build the .deb file. It told me that I needed xlibmesa-glu-dev. So I apt-got it too. But why was this dependency issue brought up when building from source but wasn't with a regular apt-get plib1.7-dev? Oh well... So now that plib was installed, I tried to recompile the examples. I am still getting errors. But these are way different. Can you help me figure out what is going on? Here is the output: ------------------------------------------- Making all in js make[1]: Entering directory `/.../plib-doc/src/js' c++ -DPACKAGE=\"plib_examples\" -DVERSION=\"1.6.1\" -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLUT_IS_PRESENT=1 -I. -I. -g -O2 -Wall -c js_demo.cxx c++ -g -O2 -Wall -L/usr/X11R6/lib -o js_demo js_demo.o -lplibjs -lplibul -ldl make[1]: Leaving directory `/.../plib-doc/src/js' Making all in pui make[1]: Entering directory `/.../plib-doc/src/pui' c++ -DPACKAGE=\"plib_examples\" -DVERSION=\"1.6.1\" -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLUT_IS_PRESENT=1 -I. -I. -g -O2 -Wall -c simple.cxx c++ -g -O2 -Wall -L/usr/X11R6/lib -o simple simple.o -lplibpu -lplibfnt -lplibsg -lplibul -lglut -lGLU -lGL -lSM -lICE -lXi -lXmu -lXext -lX11 -lm -ldl /usr/bin/ld: /lib/libgcc_s.so.1: warning: unexpected redefinition of `__divdi3@GLIBC_2.0' /lib/libgcc_s.so.1(*IND*+0x0): multiple definition of `__umoddi3@GLIBC_2.0' /lib/libc.so.6(.text+0x8a0): first defined here /lib/libgcc_s.so.1(*IND*+0x0): multiple definition of `__udivdi3@GLIBC_2.0' /lib/libc.so.6(.text+0x870): first defined here /usr/bin/ld: /lib/libgcc_s.so.1: warning: unexpected redefinition of `__moddi3@GLIBC_2.0' collect2: ld returned 1 exit status make[1]: *** [simple] Error 1 make[1]: Leaving directory `/.../plib-doc/src/pui' make: *** [all-recursive] Error 1 ------------------------------------------- Could it be that I have quite a few gcc's and two g++'s installed? Here is a little test I did: debian:~# dpkg --get-selections | grep gcc gcc install gcc-2.95 install gcc-3.0 install gcc-3.0-base install gcc-3.3-base install libgcc1 install debian:~# dpkg --get-selections | grep g++ g++ install g++-2.95 install I will hit google and see what I can figure out. Thank you, Ib __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |