Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
The source package for OpenSSH 8.7 fails to build under CentOS9 Stream when the OpenSSL library install is openssl-libs 1:3.0.7-2.el9. It did build with openssl-libs 1:3.0.7-1.el9.
Version-Release number of selected component (if applicable): 8.7
How reproducible:
Consistently
Steps to Reproduce:
1. ensure that you are using openssl-libs 1:3.0.7-2.el9
2. rpmbuild -ba openssh.spec
Actual results:
[...]
gcc -o sshd sshd.o auth-rhosts.o auth-passwd.o audit.o audit-bsm.o audit-linux.o platform.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth2.o auth-options.o session.o auth2-chall.o groupaccess.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor.o monitor_wrap.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o srclimit.o sftp-server.o sftp-common.o sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o sandbox-seccomp-filter.o sandbox-capsicum.o sandbox-pledge.o sandbox-solaris.o uidswap.o ssh-sk-client.o -L. -Lopenbsd-compat/ -pie -z relro -z now -fstack-protector-strong -lssh -lopenbsd-compat -laudit -lpam -ldl -lsystemd -lcrypto -lz -lcrypt -lselinux -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
/usr/bin/ld: /tmp/ccx2rKSw.ltrans0.ltrans.o: in function `do_ssh2_kex':
/home/rapier/rpmbuild/BUILD/openssh-8.7p1/sshd.c:2543: undefined reference to `FIPS_mode'
/usr/bin/ld: /tmp/ccx2rKSw.ltrans0.ltrans.o: in function `main':
/home/rapier/rpmbuild/BUILD/openssh-8.7p1/sshd.c:1934: undefined reference to `FIPS_mode'
/usr/bin/ld: /home/rapier/rpmbuild/BUILD/openssh-8.7p1/sshd.c:2151: undefined reference to `FIPS_mode'
/usr/bin/ld: /tmp/ccx2rKSw.ltrans5.ltrans.o: in function `sshkey_read':
/home/rapier/rpmbuild/BUILD/openssh-8.7p1/sshkey.c:1546: undefined reference to `FIPS_mode'
/usr/bin/ld: /tmp/ccx2rKSw.ltrans7.ltrans.o: in function `choose_dh':
/home/rapier/rpmbuild/BUILD/openssh-8.7p1/dh.c:167: undefined reference to `FIPS_mode'
/usr/bin/ld: /tmp/ccx2rKSw.ltrans8.ltrans.o:/home/rapier/rpmbuild/BUILD/openssh-8.7p1/kexgen.c:318: more undefined references to `FIPS_mode' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:216: sshd] Error 1
[...]
Expected results:
Successful build
Additional info:
The FIPS_mode() calls from the openssh-7.7p1-fips.patch. I also know that OpenSSL removed FIPS_mode() from OpenSSL 3. So I'm guessing support for it had been forward ported until now. If you have a patch or update for this or simply plan on removing the fips patch please let me know.
Comment 1Dmitry Belyavskiy
2022-12-15 08:54:30 UTC
Yes, support for FIPS_mode is still here but we had to adjust the #include order to avoid cyclical dependencies. Will be fixed.
Dmitry,
Thanks for the update. Do you know when you'll be pushing out that fix? This problem is currently holding up a copr package distribution for Centos Stream 9. Which isn't a huge deal but I'm concerned about the 3.0.7-2 release propagating out to other RH/Fedora distros which would be a larger issue.
Thanks for your time,
Chris
Comment 5Dmitry Belyavskiy
2022-12-15 19:16:45 UTC
I'll try to do it tomorrow but don't promise.
Comment 6Dmitry Belyavskiy
2022-12-16 11:15:37 UTC
I'm seeing this problem cropping up again in the latest build of OpenSSL. I see that Fedora 38 and a number of other targets are using openssl-libs 1:3.0.8-1.fc39. Are you planning on forward porting FIPS mode to this release as well?
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 (openssh bug fix and enhancement update), 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-2023:2554