Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with HDF5 1.13.2 and 1.13.3 #6657

Closed
thebaptiste opened this issue Nov 10, 2022 · 3 comments
Closed

Build fails with HDF5 1.13.2 and 1.13.3 #6657

thebaptiste opened this issue Nov 10, 2022 · 3 comments
Assignees

Comments

@thebaptiste
Copy link

Hello

Building gdal 3.5.3 from sources against hdf5 1.13.3 on Rockylinux 8 with gcc/g++ 8.5.0, I have the following error :

In file included from hdf5dataset.cpp:36:
hdf5vfl.h:119:1: error: braces around scalar initializer for type ‘herr_t (*)(H5FD_t*, hid_t, hbool_t)’ {aka ‘int (*)(H5FD_t*, long int, bool)’}
 };
 ^

Is there an option to prevent this error ?

I have the same error with gdal 3.5.2. It was ok with hdf5 1.10, I did'nt try with hdf5 1.12

Regards

@rouault rouault self-assigned this Nov 10, 2022
@rouault
Copy link
Member

rouault commented Nov 10, 2022

fix in #6660.

@rouault rouault changed the title Build fails with HDF5 1.13 Build fails with HDF5 1.13.2 and 1.13.3 Nov 10, 2022
rouault added a commit that referenced this issue Nov 10, 2022
HDF5: fix build with libhdf5 1.13.2 and 1.13.3 (fixes #6657)
rouault added a commit that referenced this issue Nov 10, 2022
[Backport release/3.6] HDF5: fix build with libhdf5 1.13.2 and 1.13.3 (fixes #6657)
@thebaptiste
Copy link
Author

Thanks.
Will you integrate this fix in a new release soon (may be 3.5.4) ?
Until then I will build against hdf5 1.13.1 or 1.12.2

@rouault
Copy link
Member

rouault commented Nov 11, 2022

Will you integrate this fix in a new release soon (may be 3.5.4) ?

this will be in 3.6.1 in ~ 2 months. This is too late for 3.6.0 that will be released today

psharma-gdal pushed a commit to HexagonGeospatial/gdal that referenced this issue Nov 27, 2023
mpdaly pushed a commit to Cadcorp/gdal that referenced this issue Jan 8, 2024
HDF5: fix build with libhdf5 1.13.2 and 1.13.3 (fixes OSGeo#6657)
(cherry picked from commit f7543e6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants