RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1975096 - cmake: FTBFS because it assumes libdl.so exists and can be loaded
Summary: cmake: FTBFS because it assumes libdl.so exists and can be loaded
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: cmake
Version: 9.0
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: serge_sans_paille
QA Contact: Michal Kolar
URL:
Whiteboard:
Depends On: 1972535
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-23 06:37 UTC by Florian Weimer
Modified: 2021-12-07 21:43 UTC (History)
2 users (show)

Fixed In Version: cmake-3.20.2-4.el9
Doc Type: No Doc Update
Doc Text:
Clone Of: 1972535
Environment:
Last Closed: 2021-12-07 21:42:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2021-06-23 06:37:25 UTC
This issue will start impacting cmake in Red Hat Enterprise Linux 9 once we switch to glibc 2.34.

You can test a fix before glibc 2.34 is merged using this command:

koji -p stream build --scratch c9s-build-side-102-stack-gate git+https://gitlab.com/redhat/centos-stream/rpms/cmake#origin/c9s

+++ This bug was initially created as a clone of Bug #1972535 +++

A build-time test fails:

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.

--- Additional comment from Rex Dieter on 2021-06-18 20:13:17 CEST ---

Submitted upstream,

https://gitlab.kitware.com/cmake/cmake/-/issues/22321

--- Additional comment from Rex Dieter on 2021-06-18 23:14:51 CEST ---

I think this should do it,

https://src.fedoraproject.org/rpms/cmake/c/f52c15acca5c2d43cf386b0491ba9df0704d6f99?branch=rawhide

Comment 1 Björn 'besser82' Esser 2021-06-28 21:11:01 UTC
@fweimer You can find the complete patch, as it was upstreamed here [1].


[1]  https://src.fedoraproject.org/rpms/cmake/raw/b5ab4110144a3e0d9d55a0a65c51748ad66e0968/f/cmake-3.20.4-glibc_libdl.patch

Comment 2 Florian Weimer 2021-06-28 21:33:46 UTC
Patch looks good, thanks.

Comment 3 Björn 'besser82' Esser 2021-06-28 21:40:46 UTC
You're welcome.  =)

Comment 4 Michal Kolar 2021-07-29 20:26:39 UTC
Verified against cmake-3.20.2-6.el9.


Note You need to log in before you can comment on or make changes to this bug.