From: Joao C. <jc...@fe...> - 2003-02-04 02:54:12
|
On Tuesday 04 February 2003 00:01, Alan W. Irwin wrote: > On Mon, 3 Feb 2003, Don Spong wrote: > > [...] > > > =09/bin/sh ../../libtool --mode=3Dlink gcc -g -O2 -o > > libtclmatrix.la -rpath /home/spongda/plplot-5.2.0/lib -version-info > > 7:0:2 -rpath /home/spongda/plplot-5.2.0/lib -no-undefined > > -L/usr/local/lib -ltcl8.3 tclMatrix.lo matrixInit.lo > > mkdir .libs > > rm -fr .libs/libtclmatrix.la .libs/libtclmatrix.* .libs/libtclmatrix.= * > > (cd . && ln -s tclMatrix.lo tclMatrix.o) > > (cd . && ln -s matrixInit.lo matrixInit.o) > > generating symbol list for `libtclmatrix.la' > > /bin/nm -B tclMatrix.o matrixInit.o | sed -n -e 's/^.*[ > > =09]\([BCDT][BCDT]*\)[=09][ > > =09]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* > > //' | sort | uniq > .libs/libtclmatrix.exp > > gcc -shared -o .libs/libtclmatrix.so.5 tclMatrix.o matrixInit.o > > -L/usr/local/lib -ltcl8.3 -lc -Wl,-bnoentry > > -Wl,-bexport:.libs/libtclmatrix.exp =2E.. > > ld: 0711-317 ERROR: Undefined symbol: tan > > ld: 0711-317 ERROR: Undefined symbol: tanh > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > > information. collect2: ld returned 8 exit status > > make: 1254-004 The error code from the last command is 1. > > Maurice, I believe you have had prior experience with AIX. There are > no math calls in tclMatrix.c and matrixInit.c, but I am wondering if > (many!) unresolved math symbols in -ltcl8.3 are causing the link proble= m. I think that the source of most problems is the link command used. On a=20 previous report there were many plplot API entries that were missing,=20 although the command line specifies -lplplot. Perhaps Don's AIX isn't fully supported by libtool? Although libtool *say= s*=20 during configure that it *knows* how to build shared libs in the detected= =20 system! checking build system type... powerpc-ibm-aix4.3.3.0 ... checking whether the linker (/bin/ld) supports shared libraries... yes ... checking if libtool supports shared libraries... yes =20 I'm afraid that without a AIX system it will be difficult for us to trace= and=20 fix the problem. > > This may be related to our convoluted method of determining the tcl lin= k > line in sysloc.in. Perhaps better cross-platform support would be > automatic if we use what Rafael was recommending > (/usr/share/aclocal/tcl.m4) as a replacement? > > Meanwhile, Don, to move by this, I suggest you disable our tcl front-en= d. > (--disable-tcl). Yes,=20 1-Disable *everything*,=20 --disable-tcl --disable-tk --disable-itcl --disable-cxx --disable-f77 =20 --enable-dyndrivers --disable-static --enable-shared. Only the C library will be build with shared libs and dynamic drivers. Do= n't=20 forget to follow Alan's recomendations and unpack the sources fresh each = time=20 -- or at least do a "make clean". 2-If the above don't work, the next step will be giving up of shared libs= and=20 build only static libs: --disable-tcl --disable-tk --disable-itcl --disable-cxx --disable-f77=20 --disable-shared 3-Don, you might need the fortran bindings, but if you can't compile the = basic=20 C library there is no hope for you (for now, please be patient and wait f= or=20 5.2.1) Joao |