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

  • To: Vesselin Kolev <vlk@xxxxxxxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] undefined reference to `H5Pset_fapl_http' and `H5FD_http_init'
  • From: Wei-Keng Liao <wkliao@xxxxxxxxxxxxxxxx>
  • Date: Sun, 10 Oct 2021 19:37:05 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=northwestern.edu; dmarc=pass action=none header.from=northwestern.edu; dkim=pass header.d=northwestern.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nc36yFVjCQXz88Px1xWmwAtN66YvOjHihCHCUXoDaXI=; b=Sx6XMOzvVsQVb9CxN/Hu7BfLvxRvYqlBUBCY+yxJ9Kiv9N52ww4xWHYd2xkI9lHoaCk8v1YeARPgq0XtUNeGIkNRGKdnYeQupUws/1yGAGFOySgIqQNc/bUAUtPIo7jYwuDIh+KxM8VIt54DYcnKbMRn038kS3DHCG2sw1rWMF1K1H2JVsW58L7/tHJknDlmU/0Qq35oap9KcGmL7VAPRTmFDY/H+/AdZPvjE8hnWcpEa9+cepoBU8WeecFfodtkqpuw08Ja/onhzPMwKIJ1yUwWPNGbCrphXYY+Q9wN9/+Gc2AnpKkDtPGAqreoBQEWIjvz3KPh04BAGW2gRhzyUg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TPQpyxxPJ3ZbrvnjdKsR29K/Sga8qx5N4J1JrfxU5OLh2YOMw7LTTa3lzrbap3JSUo10nG5q+jDjgaAoPhEw94yc2VSYoe5pdjL3qlawDo/KKbDXdgEHGGvVL8ow5siOpOvf/FE9jhE2On8APNZX01qYYaAuVChRRRn3TS6elu0SsVUSlVxe0D+j7Tjca85z6MkXFywvWKliEIBWk8+4M+8+i2npG1tLciDCauuy4N2BmuAckfUuyd4C75y4P9vbTvUMOZ6+LgCvKfJon7wP5K/Ej1kwjWi/SU8YfuZR0pu4Cx4EsfhIynyRX9pFqBEKqfTz1tCt33r0n2vdEGfjIw==
  • Authentication-results: lcpe.uni-sofia.bg; dkim=none (message not signed) header.d=none;lcpe.uni-sofia.bg; dmarc=none action=none header.from=northwestern.edu;
Your HDF5 was configured to be installed under folder:
> /opt/software/hdf/5/1.10.7-gcc_11-zlib_1-api_v18-mpich_3

But you are using a different folder in your NetCDF configuration.
> /opt/software/hdf/5/1.10.7-gcc_11-zlib_1-api_v18-nojava

In addition, your HDF5 was built using mpicc/mpifort, but
you are using gcc to build NetCDF. I suggest you to use the
same compilers.

Wei-keng

> On Oct 10, 2021, at 4:17 AM, Vesselin Kolev via netcdfgroup 
> <netcdfgroup@xxxxxxxxxxxxxxxx> wrote:
> 
> 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
> 
> 
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
> 
> 
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> https://urldefense.com/v3/__https://www.unidata.ucar.edu/mailing_lists/__;!!Dq0X2DkFhyF93HkjWTBQKhk!GiUL4XCgAQH0TzGBrQkV8rNtI2NK6xL6B6o83VkZrOi0_pyXo5cF3OpWZ3tD_YVeAs2z$
>   


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