Bug 1948248
| Summary: | Fails to build with HDF5 1.12.0 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Orion Poplawski <orion> |
| Component: | med | Assignee: | Sandro Mani <manisandro> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 35 | CC: | manisandro |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-03 19:59:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Orion Poplawski
2021-04-11 02:51:06 UTC
Does it build if you just change - IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF EQUAL 10 OR NOT HDF_VERSION_RELEASE_REF GREATER 1) + IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF GREATER_EQUAL 10 OR NOT HDF_VERSION_RELEASE_REF GREATER 1) ? Nope. I did:
--- med-4.1.0/config/cmake_files/medMacros.cmake.hdf5-1.12 2021-04-12 21:25:23.522751711 -0600
+++ med-4.1.0/config/cmake_files/medMacros.cmake 2021-04-12 21:26:38.869378378 -0600
@@ -447,7 +447,7 @@ MACRO(MED_FIND_HDF5)
##
## Requires 1.10.x version
##
- IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF EQUAL 10 OR NOT HDF_VERSION_RELEASE_REF GREATER 1)
+ IF ("${HDF_VERSION_REF}" VERSION_LESS "1.10.2")
MESSAGE(FATAL_ERROR "HDF5 version is ${HDF_VERSION_REF}. Only versions >= 1.10.2 are supported.")
ENDIF()
##
and
export CFLAGS="%{optflags} -DH5_USE_110_API"
export CXXFLAGS="%{optflags} -DH5_USE_110_API"
but then I get:
/builddir/build/BUILD/med-4.1.0/src/hdfi/_MEDfileCreate.c: In function '_MEDfileCreate':
/builddir/build/BUILD/med-4.1.0/src/hdfi/_MEDfileCreate.c:163:2: error: #error "Don't forget to change the compatibility version of the library !"
163 | #error "Don't forget to change the compatibility version of the library !"
| ^~~~~
/builddir/build/BUILD/med-4.1.0/src/ci/MEDfileCompatibility.c:117:2: error: #error "Don't forget to check the compatibility version of the library, depending on the internal hdf model choice !"
117 | #error "Don't forget to check the compatibility version of the library, depending on the internal hdf model choice !"
| ^~~~~
/builddir/build/BUILD/med-4.1.0/src/ci/MEDfileCompatibility.c:118:2: error: #error "Cf. _MEDfileCreate ..."
118 | #error "Cf. _MEDfileCreate ..."
| ^~~~~
_MEDfileCreate has:
/*
* Cette ligne est censée obliger HDF à ne pas utiliser un modèle interne supérieur à 1.8.z
* En HDF5-1.10.0p1 cela n'a aucun effet !
* Un test autoconf permet de fixer un intervalle de version HDF à MED.
*/
#if H5_VERS_MINOR > 10
#error "Don't forget to change the compatibility version of the library !"
#endif
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35. med seems to use a weird mix of 1.6 and 1.8 API. |