CMake misconfiguration on Linux-3.0

Hello

Building hdf5 with cmake on Linux fails as off the new Linux version
scheme, which changed from 2.6.x to 3.x.

The error I'm getting is

    src/H5F.c:2223:12: error: 'S_IFLNK' undeclared (first use in this function)
    ...

which is caused by missing #defines. The reason is this line in
config/cmake/ConfigureChecks.cmake

    IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")

which matches 3.x.x but not 3.x. Changing it to

    IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9]\\.)")

fixes the issue.

The HDF5 version I'm using is 1.8.5, but this problem is still present
in 1.8.8snap17.

Best,
Maik Beckmann

Maik,

  Great catch! Thanks and I will try to get this fixed in the upcoming release.

Allen

···

Hello

Building hdf5 with cmake on Linux fails as off the new Linux version
scheme, which changed from 2.6.x to 3.x.

The error I'm getting is

    src/H5F.c:2223:12: error: 'S_IFLNK' undeclared (first use in this function)
    ...

which is caused by missing #defines. The reason is this line in
config/cmake/ConfigureChecks.cmake

    IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")

which matches 3.x.x but not 3.x. Changing it to

    IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9]\\.)")

fixes the issue.

The HDF5 version I'm using is 1.8.5, but this problem is still present
in 1.8.8snap17.

Best,
Maik Beckmann

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org