Howdy all!

I'm working to convert a popular open source library for Earth
scientists (called netcdf) to libtool.

But I'm not having much luck, and my boss is now suggesting that we go
back to all static libraries, and take out this libtool stuff.

I can't get libtool to work on the Sun:

Making check in nf_test
make  nf_test
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o 
test_get.o test_get.F
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o 
test_put.o test_put.F
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o 
nf_error.o nf_error.F
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o 
nf_test.o nf_test.F
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o 
test_read.o test_read.F
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o 
test_write.o test_write.F
f95 -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran   -I../libsrc    -g -c -o util.o 
util.F
source='fortlib.c' object='fortlib.o' libtool=no \
depfile='.deps/fortlib.Po' tmpdepfile='.deps/fortlib.TPo' \
depmode=none /bin/bash ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran  -I../libsrc     -g -c -o 
fortlib.o fortlib.c
/bin/bash ../libtool --mode=link f95  -g  -L../libsrc   -o nf_test  test_get.o 
test_put.o  nf_error.o nf_test.o test_read.o  test_write.o util.o fortlib.o 
-lnetcdf -lm  
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
*** Error code 1
make: Fatal error: Command failed for target `nf_test'
Current working directory /home/ed/netcdf-3/netcdf-4.0-alpha4/nf_test
*** Error code 1
make: Fatal error: Command failed for target `check-am'
Current working directory /home/ed/netcdf-3/netcdf-4.0-alpha4/nf_test
*** Error code 1
make: Fatal error: Command failed for target `check-recursive'



It is trying to compile f77 code with f95 (which will work just fine),
but libtool is complaining because it doesn't have the tag=f77
argument.

Is there a way to put this argument in Makefile.am?

I am using the latest libtool distribution: 1.5.18, and reasonably
recent versions of autoconf and automake.

Please tell me I haven't done all this libtool conversion for
nothing. If I can't get our package to build on the Sun, I can't use
libtool.

Can anyone help?

Thanks!

Ed
-- 
Ed Hartnett  -- [EMAIL PROTECTED]



_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to