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.
> Hi, > > If I build the fortran interface make check fails in nf_test with > > libtool: link: /opt/local/bin/gfortran-mp-4.3 -I../fortran -I../libsrc > -I../fortran -I../f90 -g -O2 -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 ../ > libsrc/.libs/libnetcdf.a > Undefined symbols: > "_nf_put_var_real_", referenced from: > _test_nf_put_var_real_ in test_put.o > _test_nf_put_var_real_ in test_put.o > _test_nf_put_var_real_ in test_put.o > _test_nf_put_var_real_ in test_put.o > _test_nf_put_var_real_ in test_put.o > etc. Howdy David, To solve this problem you need to set CPPFLAGS to -DpgiFortran, and then rerun the configure and make. (Do a make distclean before you rerun configure, to start off clean.) > > all the undefined symbols start with _nf_ except _max_float_, > _max_short_, _max_double_, _min_schar_, etc. This sounds like a macintosh problem. Could you try setting LIBS=-lm to include the math library before you rebuild netCDF? Please let me know if this doesn't help. Thanks, Ed Ticket Details =================== Ticket ID: KVR-965537 Department: Support netCDF Priority: Normal Status: Closed