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)


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  
 ../src/.libs/ -L/usr/openwin/lib ../src/.libs/ 
-L/usr/local/pkg/gcc34/lib /opt/pkg/gcc44/lib/ 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/ -lrt 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/ -lfontconfig 
-lXinerama -lpthread -lm 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/ -lsocket -lnsl 
-Wl,-R -Wl,/opt/pkg/lib -Wl,-R 
-Wl,/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib -Wl,-R 
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 #951 nm 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/ | 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

And, if I read this correctly, the symbols are in the used #952 nm 
/opt/pkgsrc/pkgsrc1/x11/fltk/work/.buildlink/lib/ | egrep 
[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?


Home | Main Index | Thread Index | Old Index