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 2008445 - ldns: FTBFS because EVP_PKEY_base_id is no longer detected
Summary: ldns: FTBFS because EVP_PKEY_base_id is no longer detected
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ldns
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Richard Lescak
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On:
Blocks: FTBFS.el9.pre-beta
TreeView+ depends on / blocked
 
Reported: 2021-09-28 09:33 UTC by Florian Weimer
Modified: 2022-05-17 13:34 UTC (History)
6 users (show)

Fixed In Version: ldns-1.7.1-8.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:21:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github NLnetLabs ldns issues 135 0 None closed 1.7.1 fails to build with OpenSSL 3.0.0 beta2 2021-09-28 09:33:10 UTC
Gitlab redhat/centos-stream/rpms ldns merge_requests 4 0 None None None 2021-11-02 14:12:34 UTC
Red Hat Issue Tracker RHELPLAN-98333 0 None None None 2021-09-28 09:33:32 UTC
Red Hat Product Errata RHBA-2022:2497 0 None None None 2022-05-17 13:22:05 UTC

Internal Links: 2008451

Description Florian Weimer 2021-09-28 09:33:11 UTC
A rebuild of ldns-1.7.1-7.el9 fails with this error:

./dnssec_sign.c: In function 'ldns_pkey_is_ecdsa':
./dnssec_sign.c:420:26: error: 'key' undeclared (first use in this function); did you mean 'pkey'?
  420 |         if(EVP_PKEY_type(key->type) != EVP_PKEY_EC)
      |                          ^~~
      |                          pkey

Looking at the context:

#ifdef HAVE_EVP_PKEY_BASE_ID
        if(EVP_PKEY_base_id(pkey) != EVP_PKEY_EC)
                return 0;
#else
        if(EVP_PKEY_type(key->type) != EVP_PKEY_EC)
                return 0;
#endif

This happens because HAVE_EVP_PKEY_BASE_ID is not set:

checking for EVP_PKEY_base_id... no

AC_CHECK_FUNCS in configure.ac does not work for preprocessor macros, and EVP_PKEY_base_id is a preprocessor macro in OpenSSL 3.0.

Upstream Git appears to have a patch: https://github.com/NLnetLabs/ldns/commit/12ab6f7a408cd99e9b43b7db86724c2ee66bc36e

Comment 9 errata-xmlrpc 2022-05-17 13:21:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: ldns), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2497


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