NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] undefined reference to `H5Pset_fapl_http' and `H5FD_http_init'

  • To: netcdfgroup@xxxxxxxxxxxxxxxx
  • Subject: [netcdfgroup] undefined reference to `H5Pset_fapl_http' and `H5FD_http_init'
  • From: Vesselin Kolev <vlk@xxxxxxxxxxxxxxxxx>
  • Date: Sun, 10 Oct 2021 12:17:32 +0300
  • Authentication-results: directory.dce.uni-sofia.bg; dkim=pass (2048-bit key; unprotected) header.d=lcpe.uni-sofia.bg header.i=@lcpe.uni-sofia.bg header.a=rsa-sha256 header.s=2020021300 header.b=mbzxS3e3
Hello Everyone,

I face very strange problem when compiling NetCDF-C 4.8.0 against HDF5-1.10.7 and HDF5-1.12.1.

Note that HDF5 is compiled in the following manner:

LDFLAGS="-L/opt/software/zlib/1.2.11/lib" CFLAGS="-I/opt/software/zlib/1.2.11/include" CXXFLAGS="-I/opt/software/zlib/1.2.11/include" FCLAGS="-I/opt/software/zlib/1.2.11/include" ZLIB_ROOT=/opt/software/zlib/1.2.11 FC=mpifort FCFLAGS="-Ofast" CC=mpicc CFLAGS="-Ofast" CXX=mpic++ CXXFLAGS="-Ofast" cmake .. -DCMAKE_INSTALL_PREFIX=/opt/software/hdf/5/1.10.7-gcc_11-zlib_1-api_v18-mpich_3 -DHDF5_ENABLE_THREADSAFE=OFF -DHDF5_BUILD_CPP_LIB=OFF -DHDF5_BUILD_FORTRAN=ON -DHDF5_BUILD_HL_LIB=ON -DHDF5_BUILD_JAVA=OFF -DHDF5_ENABLE_Z_LIB_SUPPORT=ON -DBUILD_SHARED_LIBS=ON -DDEFAULT_API_VERSION=v18 -DHDF5_ENABLE_PARALLEL=ON

using GCC 11.0.3. Also note, that the HDF5 compilation passed the post-compilation tests without any fail.

But if I try to compile NetCDF-C agains that particular compilation of HDF5:

LDFLAGS="-L/opt/software/hdf/5/1.10.7-gcc_11-zlib_1-api_v18-nojava/lib" CC=gcc CFLAGS="-Ofast -I/opt/software/hdf/5/1.10.7-gcc_11-zlib_1-api_v18-nojava/include" ./configure --prefix=/opt/software/netcdf-c/4/4.8.0-gcc_11_hdf5_1.10.7 --enable-mmap --enable-byterange

I get the following error:

../liblib/.libs/libnetcdf.so: undefined reference to `H5Pset_fapl_http'
../liblib/.libs/libnetcdf.so: undefined reference to `H5FD_http_init'

Any suggestions where to look for the source of the problem are greatly welcomed.

Thank you very much in advance!

Best,

Vesselin Kolev



  • 2021 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: