3.29.0-rc1: librhash 1.4.4 breaks build with GLIBC<2.15
Began testing the new release and we didn't get past building CMake itself. It errored with
2024/02/14 08:05:52 ERROR /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: rhash-librhash-rhash.c.o: in function `rhash_alloc_multi':
2024/02/14 08:05:52 ERROR rhash.c:(.text+0x1b8): undefined reference to `aligned_alloc'
2024/02/14 08:05:52 ERROR /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: rhash-librhash-rhash.c.o: in function `rhash_file_update':
2024/02/14 08:05:52 ERROR rhash.c:(.text+0xcba): undefined reference to `aligned_alloc'
aligned_alloc
was added in C11 and supported by GLIBC 2.15+, RHEL 6 ships with GLIBC 2.14 and hence won't build this.
I found that this call is an optimisation that not all platforms use here and perhaps it's worth to add a check against GLIBC 2.15