netcdf-c icon indicating copy to clipboard operation
netcdf-c copied to clipboard

Build error "Cannot determine version of H5FD_class_t

Open limann77 opened this issue 2 months ago • 3 comments

I've noticed that the recent changes to H5FD subfiling API of HDF5 in https://github.com/HDFGroup/hdf5/commit/877cbf79a74be03d658a34c98946c85e474ed71e are out-of-sync (beyond https://github.com/Unidata/netcdf-c/commit/85ad2de310b9c4f23dd0d8bf906c511ba3b30c3a) with NetCDF leading to a build error:

./netcdf-c/libhdf5/H5FDhttp.c:57:2: error: #error "Cannot determine version of H5FD_class_t"
   57 | #error "Cannot determine version of H5FD_class_t"
      |  ^~~~~
In file included from ./netcdf-c/libhdf5/H5FDhttp.c:75:
./netcdf-c/libhdf5/H5FDhttp.c: In function 'H5Pset_fapl_http':
./netcdf-c/libhdf5/H5FDhttp.h:34:26: warning: implicit declaration of function 'H5FDperform_init' [-Wimplicit-function-declaration]
   34 | #define H5FD_HTTP       (H5FDperform_init(H5FD_http_init))
      |                          ^~~~~~~~~~~~~~~~
./netcdf-c/libhdf5/H5FDhttp.c:316:35: note: in expansion of macro 'H5FD_HTTP'
  316 |     return H5Pset_driver(fapl_id, H5FD_HTTP, NULL);
      |                                   ^~~~~~~~~
make[2]: *** [libhdf5/CMakeFiles/netcdfhdf5.dir/build.make:331: libhdf5/CMakeFiles/netcdfhdf5.dir/H5FDhttp.c.o] Error 1

limann77 avatar Oct 24 '25 17:10 limann77

What version of HDF5 is this, out of curiosity?

WardF avatar Oct 24 '25 21:10 WardF

I've tried https://github.com/HDFGroup/hdf5/commit/3266a56a97364a21686c84e29b4b335f51244fe4 from Oct 24, 2025

limann77 avatar Oct 25 '25 07:10 limann77

Thanks; I will keep this on my radar!

WardF avatar Oct 27 '25 22:10 WardF