This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2235354 - implicit declaration of function ‘EVP_default_properties_enable_fips’
Summary: implicit declaration of function ‘EVP_default_properties_enable_fips’
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: openssl
Version: 9.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Dmitry Belyavskiy
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-28 14:37 UTC by Gerd Hoffmann
Modified: 2023-09-16 18:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-29 16:26:48 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CRYPTO-11651 0 None None None 2023-08-29 09:46:13 UTC
Red Hat Issue Tracker   RHEL-1780 0 None Migrated None 2023-08-29 16:25:58 UTC
Red Hat Issue Tracker RHELPLAN-166700 0 None None None 2023-08-28 15:51:52 UTC

Description Gerd Hoffmann 2023-08-28 14:37:19 UTC
Description of problem:
Compiling the rhel-9-main openssl code in edk2 context fails due to warnings
and edk2 building the openssl with -Werror.

Version-Release number of selected component (if applicable):
git://pkgs.devel.redhat.com/rpms/openssl rhel-9-main
commit d30c497ed1125a1e780be4cf1c713041353bc88a

How reproducible:
100%

Steps to Reproduce:
1. compile rhel openssl rpm with -Werror enabled.

Actual results:
/vmdisk/nvme/tmp/rpmbuild/build/edk2-819cfc6b42a6/CryptoPkg/Library/OpensslLib/openssl/crypto/provider_conf.c: In function ‘provider_conf_init’:
/vmdisk/nvme/tmp/rpmbuild/build/edk2-819cfc6b42a6/CryptoPkg/Library/OpensslLib/openssl/crypto/provider_conf.c:341:13: error: implicit declaration of function ‘EVP_default_properties_enable_fips’ [-Werror=implicit-function-declaration]
  341 |         if (EVP_default_properties_enable_fips(libctx, 1) != 1)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Additional info:
Seems to be a missing '#include <openssl/evp.h>'

Comment 1 Dmitry Belyavskiy 2023-08-28 15:50:25 UTC
Thank you for the report! As -Werror is not among the compilation options (and not a production option, I think), we missed it in our code.

You are correct, '#include <openssl/evp.h>' is missing. We will fix it on some future respin, I think.

Comment 2 Gerd Hoffmann 2023-08-29 07:32:11 UTC
(In reply to Dmitry Belyavskiy from comment #1)
> You are correct, '#include <openssl/evp.h>' is missing. We will fix it on
> some future respin, I think.

Can this be fixed ASAP please?  It blocks building latest edk2 which
(finally) switched from openssl-1.1.1 to openssl-3.0.

Committing to rhel-9-main is enough because we build from source for edk2.

FYI: The process uses a script which effectively runs "rpmbuid prep" to
get the rhel-patched openssl source tree, which is tar'ed up and added
to the edk2 src rpm.

Comment 3 Dmitry Belyavskiy 2023-08-29 09:44:13 UTC
Well. -Werror is not a production option, and there are a lot of warnings compiling OpenSSL, especially with lto. We will add this fix to the respin but we don't plan any respin just now.

Comment 5 RHEL Program Management 2023-08-29 16:22:58 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 6 RHEL Program Management 2023-08-29 16:26:48 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues.


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