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.
Peter, > Looks as though the H5Dclose is undefined of in the text section of a libfile > > I suspect I have to rebuild the appropriate version of the HDF5 library.. > > Can you a suggest which version to use? Actually, the following output: > dyc002@magpie:~\:> nm -g --print-file-name /usr/local/HDF5/lib/* | grep > H5Dclose > /usr/local/HDF5/lib/libhdf5.a:H5D.o:00001190 T H5Dclose indicates that the H5Dclose() function is defined in the "hdf5" library. The "T" means "text" and refers to that section of a program where CPU instructions are stored. We need to tell the build mechanism to use the HDF5 library when building the module. Try this 1. Go to the top-level source-directory. 2. Execute the command "make distclean". 3. Set your environment variable as before. 4. Ensure that the environment variable LD_NETCDF contains references to both the netCDF library and the HDF5 library. For example export LD_NETCDF="-L/usr/local/lib -lnetcdf -L/usr/local/HDF5/lib -lhdf5" 5. Execute the command "./configure" as before. Redirect both the standard output and standard error streams to the file "configure.log" and send me that file if an error occurs. 6. Execute the command "make" as before. Redirect both the standard output and standard error streams to the file "configure.log" and send me that file if an error occurs. > Peter > > > > ls -l /usr/local/HDF5/lib > > nm -g /usr/local/HDF5/* | grep H5Dclose > > > > If the last command finds the H5Dclose function, then repeat the command > > with whatever nm(1) option is necessary to prefix each output-line with > > the pathname of the containing file (the option is platform-dependent). > > output of nm > ----------------------------------------------------------------------------------- > > dyc002@magpie:~\:> nm -g --print-file-name /usr/local/HDF5/lib/* | grep > H5Dclose > /usr/local/HDF5/lib/libhdf5.a:H5D.o:00001190 T H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.a:H5DS.o: U H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.a:H5IM.o: U H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.a:H5LT.o: U H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.a:H5PT.o: U H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.a:H5TB.o: U H5Dclose > nm: /usr/local/HDF5/lib/libhdf5_hl.la: File format not recognized > /usr/local/HDF5/lib/libhdf5_hl.so: U H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.so.6: U H5Dclose > /usr/local/HDF5/lib/libhdf5_hl.so.6.0.3: U H5Dclose > nm: /usr/local/HDF5/lib/libhdf5.la: File format not recognized > nm: /usr/local/HDF5/lib/libhdf5.settings: File format not recognized > /usr/local/HDF5/lib/libhdf5.so:0007b8eb T H5Dclose > /usr/local/HDF5/lib/libhdf5.so.6:0007b8eb T H5Dclose > /usr/local/HDF5/lib/libhdf5.so.6.0.3:0007b8eb T H5Dclose > > > > > nm -g --print-file-name /usr/local/HDF5/bin/* | grep H5Dclose > > nm: /usr/local/HDF5/bin/h5cc: File format not recognized > /usr/local/HDF5/bin/gif2h5: U H5Dclose > /usr/local/HDF5/bin/h52gif: U H5Dclose > /usr/local/HDF5/bin/h5copy: U H5Dclose > /usr/local/HDF5/bin/h5diff: U H5Dclose > /usr/local/HDF5/bin/h5dump: U H5Dclose > /usr/local/HDF5/bin/h5import: U H5Dclose > /usr/local/HDF5/bin/h5jam: U H5Dclose > /usr/local/HDF5/bin/h5ls: U H5Dclose > /usr/local/HDF5/bin/h5mkgrp: U H5Dclose > /usr/local/HDF5/bin/h5perf_serial: U H5Dclose > nm: /usr/local/HDF5/bin/h5redeploy: File format not recognized > /usr/local/HDF5/bin/h5repack: U H5Dclose > /usr/local/HDF5/bin/h5stat: U H5Dclose > /usr/local/HDF5/bin/h5unjam: U H5Dclose > address@hidden > CSIRO Land & Water > GPO Box 1666 > Canberra ACT 2601 > ph 02 6246 5799 > fx 02 6246 5988 > mb 04 0633 3052 Regards, Steve Emmerson Ticket Details =================== Ticket ID: RAH-648927 Department: Support netCDF Perl Priority: Normal Status: Closed