Skip to content

Conversation

@DennisHeimbigner
Copy link
Collaborator

@DennisHeimbigner DennisHeimbigner commented Dec 28, 2025

Primary Change

The notion of versioning H5FD_class_t was introduced publicly in hdf5-1.13.2. This seems to conflict with some documentation that says it was 1.10.0. This latter value found its way into H5FDhttp.c. As a result, there is a discrepancy in libhdf5/H5FDhttp.c. Note that this should address the above issue in part.

So, the fixes:

  1. Regularize this the version testing to be hdf5 version 1.13.2.
  2. Use the correct H5FD_class_t fields depending on the hdf5 version.

Secondary Change

I noted a problem with the definition of strndup when compiling with C++. Since strndup is defined for C++, I made the strndup decl be conditional on not C++.

re: Issue Unidata#3202

## Primary Change

The notion of versioning H5FD_class_t was introduced publicly in
hdf5-1.13.2. This seems to conflict with some documentation that
says it was 1.10.0. This latter value found its way into
H5FDhttp.c.  As a result, there is a discrepancy in
libhdf5/H5FDhttp.c.  Note that this should address the above
issue in part.

So, the fixes:
1. Regularize this the version testing to be hdf5 version 1.13.2.
2. Use the correct H5FD_class_t fields depending on the hdf5 version.

## Secondary Change
I noted a problem with the definition of strndup when compiling
with C++.  Since strndup is defined for C++, I made the strndup
decl be conditional on not C++.
Copy link
Member

@WardF WardF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and is more comprehensive than the fix I was making (which got derailed with the Github CI issues I pivoted towards). Once the link in the release notes is fixed we can get it merged in :). Thanks!

@WardF WardF self-assigned this Jan 5, 2026
@WardF WardF merged commit d7895f6 into Unidata:main Jan 5, 2026
103 checks passed
@WardF WardF mentioned this pull request Jan 5, 2026
@DennisHeimbigner DennisHeimbigner deleted the h5classt.dmh branch January 5, 2026 22:57
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

Successfully merging this pull request may close these issues.

Fails to build with HDF5 2.0.0

2 participants