tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

does libtool lie to me? (problem upgrading fltk to 1.3 and dillo to 3.0.1)



Hi,

I've moved forward fltk to 1.3, (not trivial but easy), dillo to 3.0.1
(less easy - it complained about some header files not being there), so
I decided to run fltk's unit tests, which needed a bit more of libtoolizing.
Now it complains that it can't link one of the test programs:

libtool: link: g++ -Os -Wall -Wunused -Wno-format-y2k -fno-exceptions 
-fno-strict-aliasing -Wl,-R/opt/pkg/gcc44/lib/gcc/sparc-sun-solaris2.10/4.4.5 
-Wl,-R/opt/pkg/gcc44/lib -Wl,-R/opt/pkg/lib 
-Wl,-R/opt/pkg/gcc44/lib/gcc/sparc-sun-solaris2.10/4.4.5/ -o .libs/fractals 
fractals.o fracviewer.o  
-L/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/gcc44/lib/gcc/sparc-sun-solaris2.10/4.4.5
 -L/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/gcc44/lib 
-L/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib 
-L/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/gcc44/lib/gcc/sparc-sun-solaris2.10/4.4.5/
 ../src/.libs/libfltk_gl.so -L/usr/openwin/lib ../src/.libs/libfltk.so 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libGLU.so 
-L/usr/local/pkg/gcc34/lib /opt/pkg/gcc44/lib/libstdc++.so 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libGL.so -lrt 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libXext.so -lfontconfig 
-lXinerama -lpthread -lm 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libX11.so 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libxcb.so 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libXau.so -lsocket -lnsl 
-Wl,-R -Wl,/opt/pkg/lib -Wl,-R 
-Wl,/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib -Wl,-R 
-Wl,/opt/pkg/gcc44/lib
Undefined                       first referenced
 symbol                             in file
 gluCylinder                         fractals.o
 gluDeleteQuadric                    fractals.o
 gluPerspective                      fractals.o
 gluNewQuadric                       fractals.o
 gluOrtho2D                          fractals.o
 gluLookAt                           fracviewer.o
 ld: fatal: Symbol referencing errors. No output written to .libs/fractals
 collect2: ld returned 1 exit status
 gmake[1]: *** [fractals] Error 1
 pascal.cs.uni-bonn.de:pascal #951 nm 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libGLU.so | grep gluLookAt
 [893]   |    116092|     364|FUNC |LOCL |2    |55     |gluLookAt


You'll notice that libtool tells us that fractals.o is in the list before 
libGLU.so...

And, if I read this correctly, the symbols are in the used libGLU.so:

pascal.cs.uni-bonn.de:pascal #952 nm 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/libGLU.so | egrep 
'glu(Cylinder|DeleteQ|Persp|NewQua|Ortho2D|LookAt)'
[167]   |    120124|    5744|FUNC |LOCL |2    |55     |gluCylinder
[306]   |    119820|      24|FUNC |LOCL |2    |55     |gluDeleteQuadric
[893]   |    116092|     364|FUNC |LOCL |2    |55     |gluLookAt
[639]   |    119748|      72|FUNC |LOCL |2    |55     |gluNewQuadric
[643]   |    115368|     120|FUNC |LOCL |2    |55     |gluOrtho2D
[506]   |    115488|     380|FUNC |LOCL |2    |55     |gluPerspective

is libtool lying? is something wrong with those symbols? Do I need
additional libtool magic somewhere?

        -is


Home | Main Index | Thread Index | Old Index