Howdy all! Firstly, thanks for developing libtool! It's really helpful!
I am using it to distribute a freeware scientific data library, netcdf. The netcdf distribution actually builds more than one library. It builds a core C library, and a fortran library. The fortran library calls the C library. The way I handle this is to first build the fortran library, then the C library. This works fine, except on my SunOS 5.8 sparc system, using SUNW compilers. In that case, it refuses to build the shared fortran library, complaining that the C library is not yet available: libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/include -I../libsrc4 -I/upc/share/ed/local/buddy/include -g -c fort-nc4.c -o fort-nc4.o >/dev/null 2>&1 /bin/bash ../libtool --tag=CC --mode=link cc -g -L/upc/share/ed/local/buddy/lib -version-info 5:0:0 -no-undefined -o libnetcdff.la -rpath /buddy/netcdf/n4_buddy/netcdf-4.0-snapshot2008042120/install/lib fort-attio.lo fort-control.lo fort-dim.lo fort-genatt.lo fort-geninq.lo fort-genvar.lo fort-lib.lo fort-misc.lo fort-v2compat.lo fort-vario.lo fort-var1io.lo fort-varaio.lo fort-varmio.lo fort-varsio.lo fort-nc4.lo ../f90/libnetcdff90.la -lsocket -lnsl libtool: link: cc -G -z defs -h libnetcdff.so.5 -o .libs/libnetcdff.so.5.0.0 .libs/fort-attio.o .libs/fort-control.o .libs/fort-dim.o .libs/fort-genatt.o .libs/fort-geninq.o .libs/fort-genvar.o .libs/fort-lib.o .libs/fort-misc.o .libs/fort-v2compat.o .libs/fort-vario.o .libs/fort-var1io.o .libs/fort-varaio.o .libs/fort-varmio.o .libs/fort-varsio.o .libs/fort-nc4.o -z allextract ../f90/.libs/libnetcdff90.a -z defaultextract -L/upc/share/ed/local/buddy/lib -lsocket -lnsl -lc Undefined first referenced symbol in file nc_inq_att .libs/fort-genatt.o nc_inq_dim .libs/fort-dim.o nc_inq_var .libs/fort-genvar.o etc. (The missing functions are from the C library.) The shared build with gcc and gfortran works fine, as does the static build with the SUNW compilers. Only the shared SUNW build is a problem. If anyone could shed some light on this problem, that would be greatly appreciated! Thanks! Ed -- Ed Hartnett -- [EMAIL PROTECTED] _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool