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, This is an odd error. It is indicating that the libhdf5 library does not have the `H5P_CLS_FILE_ACCESS_ID_g` function. Can you provide more information regarding how you compiled hdf5? Did you enable the high-level libraries via `--enable-hl`? Did you build hdf5 statically or as a shared library? This issue might also arise if there were two copies of libhdf5 on the system; can you check `/usr/lib/` and see if there are any libhdf5 libraries present? It might be the case that, when the tests run, they are picking up an older, different libhdf5 library. Thanks for any additional information you can provide! -Ward > Hello, > > I am trying to install NetCDF 4-4.0 on my computer and I have installed zlib > and hdf5 on /usr/local/lib. > > I used these comments for installation: > > $NCDIR=/usr/local > $ CPPFLAGS=-I${H5DIR}/include LDFLAGS=-L${H5DIR}/lib ./configure > --prefix=${NCDIR} > $ make check > $ make install > > > > However, while installing NetCDF I got this error: > > > tst_h_files.o: In function `main': > > /home/civil/Downloads/netcdf-4.4.0/h5_test/tst_h_files.c:49: undefined > reference to `H5P_CLS_FILE_ACCESS_ID_g' > /home/civil/Downloads/netcdf-4.4.0/h5_test/tst_h_files.c:75: undefined > reference to `H5P_CLS_FILE_ACCESS_ID_g' > /home/civil/Downloads/netcdf-4.4.0/h5_test/tst_h_files.c:100: undefined > reference to `H5P_CLS_FILE_ACCESS_ID_g' > /home/civil/Downloads/netcdf-4.4.0/h5_test/tst_h_files.c:115: undefined > reference to `H5P_CLS_FILE_ACCESS_ID_g' > collect2: error: ld returned 1 exit status > make[2]: *** [tst_h_files] Error 1 > make[2]: Leaving directory `/home/civil/Downloads/netcdf-4.4.0/h5_test' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory `/home/civil/Downloads/netcdf-4.4.0/h5_test' > make: *** [check-recursive] Error 1 > > > > I attached the "configure.lib" file. > > I really appreciate your help. > > Best regards, > > > ________________________________ > Mohammad Tayarani > Ph.D. Student > Department of Civil Engineering > University of New Mexico > 210 University Blvd NE > Albuquerque, NM 87106 > > Tel:1-505-277-2778<tel:1-505-277-2778> > http://tayarani.people.unm.edu/ > > Ticket Details =================== Ticket ID: AFE-283250 Department: Support netCDF Priority: Normal Status: Closed