Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
On 09/28/2009 04:54 PM, Dennis Heimbigner wrote:
2. You are correct about the -lmfhdf, it should have been added by the --enable-hdf4, but wasn't; my error.
If you are going to link with -lmfhdf, you also need to specify -ldf:/bin/sh ../libtool --tag=CC --mode=link cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -L../libsrc4 -L/usr/lib64/hdf -o test_varm3 test_varm3.o ../libsrc4/libnetcdf.la -lmfhdf -lhdf5_hl -lhdf5 libtool: link: cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o .libs/test_varm3 test_varm3.o -L/builddir/build/BUILD/netcdf-4.1-beta2-snapshot2009100200/libsrc4 -L/usr/lib64/hdf ../libsrc4/.libs/libnetcdf.so -L/usr/lib -L/lib -lcurl /usr/lib64/hdf/libmfhdf.a -ljpeg -lz -lhdf5_hl -lhdf5 -Wl,-rpath -Wl,/usr/lib64
/usr/lib64/hdf/libmfhdf.a(mfsd.o): In function `SDgetnamelen': (.text+0x2e): undefined reference to `error_top' /usr/lib64/hdf/libmfhdf.a(mfsd.o): In function `SDgetnamelen': (.text+0x91): undefined reference to `HEPclear' ...--- netcdf-4.1-beta2-snapshot2009100200/ncdap_test/Makefile.in.hdf 2009-10-02 00:10:03.000000000 -0600 +++ netcdf-4.1-beta2-snapshot2009100200/ncdap_test/Makefile.in 2009-10-02 11:10:31.051311773 -0600
@@ -41,7 +41,7 @@ # Link to the netCDF-4 and the HDF5 libraries. @BUILD_DAP_TRUE@@USE_NETCDF4_TRUE@am__append_1 = ../libsrc4/libnetcdf.la -@BUILD_DAP_TRUE@@USE_HDF4_TRUE@@USE_NETCDF4_TRUE@am__append_2 = -lmfhdf+@BUILD_DAP_TRUE@@USE_HDF4_TRUE@@USE_NETCDF4_TRUE@am__append_2 = -lmfhdf -ldf
@BUILD_DAP_TRUE@@USE_NETCDF4_TRUE@am__append_3 = -lhdf5_hl -lhdf5@BUILD_DAP_TRUE@@USE_NETCDF4_TRUE@@USE_PNETCDF_TRUE@am__append_4 = -lpnetcdf
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@xxxxxxxxxxxxx Boulder, CO 80301 http://www.cora.nwra.com
netcdfgroup
archives: