From: Alan W. I. <ir...@be...> - 2002-12-22 22:11:50
|
On Sun, 22 Dec 2002, Maurice LeBrun wrote: > 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. I will answer the rest later, but to get you started again, it looks like there is a blank between the -L option and the path. I think they have to be jammed together (at least that is what man ld says). So there is probably some problem with sysloc.in (or configure.ac) that inserts a blank prefix in the path. In my case I am using default library locations for the tcl/tk libraries so I don't exercise that logic. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |