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 Marcus, > make check fails, reporting undefined references to nf_*. The commands > used to generate the attached output were: > > configure --with-zlib=/opt/zlib --with-hdf5=/opt/hdf5 --prefix=/opt/netcdf > --disable-dap --disable-shared 2>&1 | tee c.txt > make 2>&1 | tee m.txt > make check 2>&1 | tee mc.txt > > Libraries have been built using the latest Intel C++ and Fortran Composer > XE (12.0.3), mpich2-1.3.2p1, zlib-1.2.5 and hdf5-1.8.6. > > Any help is greatly appreciated. It would be useful to know what you get when you run nm ../fortran/.libs/libnetcdff.a | grep nf_open" to see how the name of the nf_open function is encoded in the compiled Fortran library. Your mpif90 compiler is expecting one underscore to be appended, as in "nf_open_", but not finding a function by that name. If two underscores are found appended, as in "nf_open__", then you will need to change the compiler option in CPPFLAGS to reflect how C functions are called from Fortran, probably by adding -DpgiFortran to CPPFLAGS for the netcdf build. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: MXF-256225 Department: Support netCDF Priority: Normal Status: Closed