From: Maurice L. <mj...@ga...> - 2002-12-22 20:38:24
|
Maurice LeBrun writes: > 3. The build. > ... > b) Problem building libplplottcltk: > > /bin/sh ../../libtool --mode=link gcc -g -O2 -o libplplottcltk.la -rpath > /home/mjl/tools/lib -version-info 6:0:1 -rpath /home/mjl/tools/lib > -no-undefined -L /home/mjl/tools/lib -ltcl8.3 -L /home/mjl/tools/lib -litcl3.2 > -L /home/mjl/tools/lib -litk3.2 -L /home/mjl/tools/lib -ltk8.3 -L../../src > -lplplot -L. -ltclmatrix tclAPI.lo tclMain.lo Pltk_Init.lo plframe.lo plr.lo > tcpip.lo tkMain.lo > > rm -fr .libs/libplplottcltk.la .libs/libplplottcltk.* .libs/libplplottcltk.* > > gcc -shared tclAPI.lo tclMain.lo Pltk_Init.lo plframe.lo plr.lo tcpip.lo > tkMain.lo -Wl,--rpath -Wl,/home/mjl/dev/plplot/latest/src/.libs -Wl,--rpath > -Wl,/home/mjl/dev/plplot/latest/bindings/tcl/.libs -Wl,--rpath > -Wl,/home/mjl/tools/lib -L/home/mjl/dev/plplot/latest/bindings/tcl -ltcl8.3 > -litcl3.2 -litk3.2 -ltk8.3 -L/home/mjl/dev/plplot/latest/src > /home/mjl/dev/plplot/latest/src/.libs/libplplot.so > /home/mjl/dev/plplot/latest/bindings/tcl/.libs/libtclmatrix.so -Wl,-soname > -Wl,libplplottcltk.so.5 -o .libs/libplplottcltk.so.5.1.0 > /usr/bin/ld: cannot find -litcl3.2 > collect2: ld returned 1 exit status > make[2]: *** [libplplottcltk.la] Error 1 > > Here the problem is that the -L /home/mjl/tools/lib wasn't emitted from > libtool, but I have no idea why. Here's another example of $prefix/lib (in this case /home/mjl/tools/lib) being "lost" in the link line: /bin/sh ../../libtool --mode=link gcc -g -O2 -o libtclmatrix.la -rpath /home/mjl/tools/lib -version-info 6:0:1 -rpath /home/mjl/tools/lib -no-undefined -L /home/mjl/tools/lib -ltcl8.3 tclMatrix.lo matrixInit.lo rm -fr .libs/libtclmatrix.la .libs/libtclmatrix.* .libs/libtclmatrix.* gcc -shared tclMatrix.lo matrixInit.lo -L/home/mjl/dev/plplot/latest/bindings/tcl -ltcl8.3 -Wl,-soname - Wl,libtclmatrix.so.5 -o .libs/libtclmatrix.so.5.1.0 Not good, as the version I have of tcl8.3 under $prefix/lib is the one I want to link against, and this line causes the tcl lib under /usr/lib to be used instead. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |