"Mark Hadfield" <m.hadfield@xxxxxxxxxx> writes:
> Sorry for the rogue signature in the previous message.
>
> The command in question works OK if it is changed to
>
> gfortran -I../fortran -I../f90 -I../f90 -g -O2 -o tst_f90.exe tst_f90.o
> -L/usr/local/lib ../fortran/.libs/libnetcdff.a -lnetcdf -lhdf5_hl -lhdf5
> -lcurl -lz
>
> Ditto for nf_test.exe:
>
> gfortran -I../fortran -I../f90 -g -O2 -o nf_test.exe test_get.o test_put.o
> nf_error.o nf_test.o test_read.o test_write.o util.o fortlib.o
> -L/usr/local/lib ../fortran/.libs/libnetcdff.a -lnetcdf -lhdf5_hl -lhdf5
> -lcurl -lz
>
> With these executables built, make check runs to completion
>
> By the way, configure was run with --disable-shared, so I'm guessing it's
> a similar issue with nf-config as cropped up a while back with nc-config.
>
This is a feature, not a bug. ;-)
If you build with --disable-shared, then you must include the names of
all required libraries in the LIBS environment variable before running
configure.
If you build shared libraries, this is taken care of for you.
Thanks,
Ed
--
Ed Hartnett -- ed@xxxxxxxxxxxxxxxx