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.
> Greeting, > > I am installing netcdf-4.1.1 and it failed during make check > > /home3/scheung/netcdf-4.1.1/nf_test/test_put.F:5035: undefined reference to > `nf_put_varm_text_' > /home3/scheung/netcdf-4.1.1/nf_test/test_put.F:5047: undefined reference to > `nf_put_varm_text_' > > > It is because the netcdf-4.1.1/libsrc4/.libs/libnetcdf.a defined with 2 > underscores > %nm libnetcdf.a | grep nf_put_varm_text > 0000000000000000 T nf_put_varm_text__ > U nf_put_varm_text_ > > How do I resolve this problem? > > My Fortran and C compilers are Intel’s > My HDF5 1.8.5 is configured with --enable-parallel > My MPI library is MVAPICH2 1.5.1.p1 installed with --enable-romio > My netcdf4 is configure with > > setenv CC mpicc > setenv FC mpif90 > setenv F77 mpif77 > setenv CXX mpicxx > > ./configure --enable-parallel > --prefix=/home3/scheung/opt/netcdf-4.1.1_HDF5intelmvp --with-zlib=/usr/lib > --with-hdf5=/home3/scheung/opt/hdf5-1.8.5 > > Thank you very much for your time and suggestion! > > ~Samson > > Howdy Samson! The problem is that our Fortran building code depends on the name of your fortran compiler to figure out what kind of compiler you are using. Since you are using an MPI wrapper, it gets confused. So set CPPFLAGS to -DpgiFortran to tell the configure how to handle your fortran compiler. I am very interested in high performance netCDF users! Can you tell me a little about what you are using netCDF for, and on what kind of hardware? Thanks, Ed Ticket Details =================== Ticket ID: JMU-224694 Department: Support netCDF Priority: High Status: Closed