testDynamicLoader fails, assumes libdl.so is present
A build-time test fails if dynamic loader library is not named libdl.so, see also downstream bug from glibc maintainer, https://bugzilla.redhat.com/show_bug.cgi?id=1972535
test 13
Start 13: kwsys.testDynamicLoader
13: Test command: /builddir/build/BUILD/cmake-3.20.3/x86_64-redhat-linux-gnu/Source/kwsys/cmsysTestsCxx "testDynamicLoader"
13: Test timeout computed to be: 1500
13: Testing: azerty_
13: Testing: /builddir/build/BUILD/cmake-3.20.3/Source/kwsys/testSystemTools.bin
13: Testing: foobar.lib
13: Testing: libdl.so
13: OpenLibrary: libdl.so: cannot open shared object file: No such file or directory
13: Testing: libdl.so
13: OpenLibrary: libdl.so: cannot open shared object file: No such file or directory
13: Testing: /builddir/build/BUILD/cmake-3.20.3/x86_64-redhat-linux-gnu/Source/kwsys/libcmsysTestDynload.so
13: Testing: /builddir/build/BUILD/cmake-3.20.3/x86_64-redhat-linux-gnu/Source/kwsys/libcmsysTestDynload.so
13: Testing: /builddir/build/BUILD/cmake-3.20.3/x86_64-redhat-linux-gnu/Source/kwsys/libcmsysTestDynload.so
13: Testing: /builddir/build/BUILD/cmake-3.20.3/x86_64-redhat-linux-gnu/Source/kwsys/libcmsysTestDynload.so
13: Testing: /builddir/build/BUILD/cmake-3.20.3/x86_64-redhat-linux-gnu/Source/kwsys/libcmsysTestDynload.so
33/645 Test #13: kwsys.testDynamicLoader ............................***Failed 0.00 sec
The test probably should include <gnu/lib-names.h> and use the LIBDL_SO macro defined there.
Edited by Rex Dieter