From: Alan W. I. <ir...@be...> - 2003-02-04 00:03:03
|
On Mon, 3 Feb 2003, Don Spong wrote: [...] > /bin/sh ../../libtool --mode=link 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/^.*[ > ]\([BCDT][BCDT]*\)[ ][ > ]*\(\)\([_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 > ld: 0711-317 ERROR: Undefined symbol: acos > ld: 0711-317 ERROR: Undefined symbol: asin > ld: 0711-317 ERROR: Undefined symbol: atan > ld: 0711-317 ERROR: Undefined symbol: atan2 > ld: 0711-317 ERROR: Undefined symbol: ceil > ld: 0711-317 ERROR: Undefined symbol: cos > ld: 0711-317 ERROR: Undefined symbol: cosh > ld: 0711-317 ERROR: Undefined symbol: exp > ld: 0711-317 ERROR: Undefined symbol: floor > ld: 0711-317 ERROR: Undefined symbol: fmod > ld: 0711-317 ERROR: Undefined symbol: hypot > ld: 0711-317 ERROR: Undefined symbol: log > ld: 0711-317 ERROR: Undefined symbol: log10 > ld: 0711-317 ERROR: Undefined symbol: pow > ld: 0711-317 ERROR: Undefined symbol: sin > ld: 0711-317 ERROR: Undefined symbol: sinh > ld: 0711-317 ERROR: Undefined symbol: sqrt > 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 problem. This may be related to our convoluted method of determining the tcl link 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-end. (--disable-tcl). Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |
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 |
From: Alan W. I. <ir...@be...> - 2003-02-04 18:18:03
|
On Tue, 4 Feb 2003, Joao Cardoso wrote: > > 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 problem. Thanks, Maurice, for answering that question separately. > > I think that the source of most problems is the link command used. On a > previous report there were many plplot API entries that were missing, > although the command line specifies -lplplot. Actually, Joao, there has now been one further iteration and Don reports that --disable-cxx --disable-f77 --disable-tcl builds fine on AIX. There is one other installation problem we are sorting out at the moment, but once that is done, I am discussing a possible fix for tcl/tk with Maurice which I hope that Don would be willing to test before 5.2.1. The AIX fixes for f77 and C++ are not so obvious so we may have to put those off until after 5.2.1. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |
From: Maurice L. <mj...@ga...> - 2003-02-04 03:56:32
|
Alan W. Irwin writes: > On Mon, 3 Feb 2003, Don Spong wrote: > > [...] > > 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 > > ld: 0711-317 ERROR: Undefined symbol: acos > > ld: 0711-317 ERROR: Undefined symbol: asin > > ld: 0711-317 ERROR: Undefined symbol: atan > > ld: 0711-317 ERROR: Undefined symbol: atan2 > > ld: 0711-317 ERROR: Undefined symbol: ceil > > ld: 0711-317 ERROR: Undefined symbol: cos > > ld: 0711-317 ERROR: Undefined symbol: cosh > > ld: 0711-317 ERROR: Undefined symbol: exp > > ld: 0711-317 ERROR: Undefined symbol: floor > > ld: 0711-317 ERROR: Undefined symbol: fmod > > ld: 0711-317 ERROR: Undefined symbol: hypot > > ld: 0711-317 ERROR: Undefined symbol: log > > ld: 0711-317 ERROR: Undefined symbol: log10 > > ld: 0711-317 ERROR: Undefined symbol: pow > > ld: 0711-317 ERROR: Undefined symbol: sin > > ld: 0711-317 ERROR: Undefined symbol: sinh > > ld: 0711-317 ERROR: Undefined symbol: sqrt > > 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 problem. Uh.. -lm ? Don't forget we have a record of all the flags used in the previous config system down in cf/. So: $ grep lm cf/lib_sh_aix.in $(SHLIB_LIBS) -lc -lm 2>ld.out $(SHLIB_LIBS) -lc -lm 2>ld.out $(SHLIB_LIBS) -lc -lm 2>ld.out -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |