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 Rupert, > Hi, I am trying to install netcdf fortran libraries on a Linux Mint VM and > have some troubles with the checks, specifically "undefined symbol: > nc_rename_grp" > > Do you think you can advise on this please? More details below. > > Note that this worked fine on an older Linux Min 13 installation, but > fails on my newer Linux Mint 17 installation. I must have something > different about the systems I guess, but I don't know what. All I can think of is that there might be an old version of libnetcdf.so in some directory that's configured for search by your dynamic linker, and it's trying to use that for the netCDF C library before the one you just built. The function nc_rename_grp() was added relatively recently, so wouldn't be found in an older library. --Russ > Thanks for your help, > Rupert Gladstone > > I am using the following commands to install (hdf5-1.8.13 already > installed on both systems): > > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.tar.gz > tar -xzf netcdf-4.3.3.tar.gz > cd netcdf-4.3.3/ > CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure > --prefix=/usr/local > make check > sudo -E make install > cd .. > > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.4.2.tar.gz > tar -xzf netcdf-fortran-4.4.2.tar.gz > cd netcdf-fortran-4.4.2 > LD_LIBRARY_PATH=/usr/local/lib/ CPPFLAGS="-I/usr/local/include > -DUSE_NETCDF4" LDFLAGS=-L/usr/local/lib ./configure --prefix=/usr/local > make check > sudo -E make install > cd .. > > Seems to go fine until the last make check. The checks fail like this: > ... > PASS: f90tst_grps > PASS: f90tst_fill > PASS: f90tst_fill2 > PASS: f90tst_vars3 > PASS: f90tst_vars4 > PASS: f90tst_vars2 > PASS: f90tst_path > FAIL: f90tst_rengrps > PASS: ftst_v2 > PASS: ftest > PASS: tst_f90 > ============================================================================ > Testsuite summary for netCDF-Fortran 4.4.2 > ============================================================================ > # TOTAL: 31 > # PASS: 29 > # SKIP: 0 > # XFAIL: 0 > # FAIL: 2 > # XPASS: 0 > # ERROR: 0 > ============================================================================ > See nf_test/test-suite.log > Please report to address@hidden > ============================================================================ > make[3]: *** [test-suite.log] Error 1 > make[3]: Leaving directory > `/home/elmeruser/Source/netcdf-fortran-4.4.2/nf_test' > make[2]: *** [check-TESTS] Error 2 > make[2]: Leaving directory > `/home/elmeruser/Source/netcdf-fortran-4.4.2/nf_test' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory > `/home/elmeruser/Source/netcdf-fortran-4.4.2/nf_test' > make: *** [check-recursive] Error 1 > > If I try to look in the log: > elmeruser@elmeruser-VM64bit ~/Source/netcdf-fortran-4.4.2 $ more > nf_test/test-suite.log > ================================================== > netCDF-Fortran 4.4.2: nf_test/test-suite.log > ================================================== > > # TOTAL: 31 > # PASS: 29 > # SKIP: 0 > # XFAIL: 0 > # FAIL: 2 > # XPASS: 0 > # ERROR: 0 > > .. contents:: :depth: 2 > > FAIL: ftst_rengrps > ================== > > /home/elmeruser/Source/netcdf-fortran-4.4.2/nf_test/.libs/lt-ftst_rengrps: > symbol lookup error: > /home/elmeruser/Source/netcdf-fortran-4.4.2/fortran/.libs/libnetcdff.so.6: > undefined symbol: nc_rename_grp > FAIL ftst_rengrps (exit status: 127) > > FAIL: f90tst_rengrps > ==================== > > /home/elmeruser/Source/netcdf-fortran-4.4.2/nf_test/.libs/lt-f90tst_rengrps: > symbol lookup error: > /home/elmeruser/Source/netcdf-fortran-4.4.2/fortran/.libs/libnetcdff.so.6: > undefined symbol: nc_rename_grp > FAIL f90tst_rengrps (exit status: 127) > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: AZT-635130 Department: Support netCDF Priority: Normal Status: Closed