This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hello Gabriella, Can you please provide the 'config.log' file generated when you configured netcdf-fortran? That will provide some additional information we can use to try to figure this issue out. Thanks! -Ward Full Name: Gabriella Turek > Email Address: address@hidden > Organization: NIWA > Package Version: netcdf-fortran-4.4.2 > Operating System: Mac OS 10.10 > Hardware: > Description of problem: Compile succeeds, but when I try to run the tests I > get a number of errors: > > Making check in fortran > make[1]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/fortran' > make check-am > make[2]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/fortran' > make[2]: Nothing to be done for 'check-am'. > make[2]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/fortran' > make[1]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/fortran' > Making check in nf_test > make[1]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test' > make nf_test tst_f77_v2 ftst_vars ftst_vars2 ftst_vars3 ftst_vars4 > ftst_vars5 ftst_vars6 ftst_types ftst_types2 ftst_types3 ftst_groups > ftst_path ftst_rengrps f90tst_vars tst_types tst_types2 f90tst_vars_vlen > tst_f90_nc4 f90tst_grps f90tst_fill f90tst_fill2 f90tst_vars3 f90tst_vars4 > f90tst_vars2 f90tst_path f90tst_rengrps ftst_v2 ftest tst_f90 > make[2]: Entering directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test' > /sw/bin/gfortran -I../fortran -I../fortran -g -O2 -c -o > f03lib_f_interfaces.o f03lib_f_interfaces.f90 > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o test_get.o test_get.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'test_get.o' failed > make[2]: [test_get.o] Error 127 (ignored) > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o test_put.o test_put.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'test_put.o' failed > make[2]: [test_put.o] Error 127 (ignored) > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o nf_error.o nf_error.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'nf_error.o' failed > make[2]: [nf_error.o] Error 127 (ignored) > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o nf_test.o nf_test.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'nf_test.o' failed > make[2]: [nf_test.o] Error 127 (ignored) > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o test_read.o test_read.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'test_read.o' failed > make[2]: [test_read.o] Error 127 (ignored) > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o test_write.o test_write.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'test_write.o' failed > make[2]: [test_write.o] Error 127 (ignored) > DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -I../fortran > -I../fortran -c -o util.o util.F > make[2]: DHAVE_CONFIG_H: Command not found > Makefile:1292: recipe for target 'util.o' failed > make[2]: [util.o] Error 127 (ignored) > depbase=`echo f03lib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > /sw/bin/gcc-4 -DHAVE_CONFIG_H -I. -I.. -I../libsrc -I/usr/local/include -g > -O2 -DLONGLONG_IS_LONG -MT f03lib.o -MD -MP -MF $depbase.Tpo -c -o f03lib.o > f03lib.c &&\ > mv -f $depbase.Tpo $depbase.Po > /bin/sh ../libtool --tag=F77 --mode=link -I../fortran -I../fortran > -L/usr/local/lib -o nf_test f03lib_f_interfaces.o test_get.o test_put.o > nf_error.o nf_test.o test_read.o test_write.o util.o f03lib.o > ../fortran/libnetcdff.la -lnetcdf > Usage: /Users/turekg/netcdf-fortran-4.4.2/libtool [OPTION]... [MODE-ARG]... > Try 'libtool --help' for more information. > libtool: error: unrecognised option: '-I../fortran' > Makefile:1251: recipe for target 'nf_test' failed > make[2]: *** [nf_test] Error 1 > make[2]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test' > Makefile:1825: recipe for target 'check-am' failed > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory '/Users/turekg/netcdf-fortran-4.4.2/nf_test' > Makefile:544: recipe for target 'check-recursive' failed > make: *** [check-recursive] Error 1 > > > Ticket Details =================== Ticket ID: DMW-679093 Department: Support netCDF Priority: Normal Status: Closed