Bug #103818 MySQL 8.0 is not compatible with OpenSSL 3.0
Submitted: 26 May 2021 17:16 Modified: 27 May 2021 5:42
Reporter: Honza Horak (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version:8.0.22 OS:Fedora
Assigned to: CPU Architecture:Any
Tags: hash, md5, openssl

[26 May 2021 17:16] Honza Horak
Description:
OpenSSL 3.0 is not yet released as GA, but we already experiment with the builds in Fedora (Copr repository available: https://copr.fedorainfracloud.org/coprs/saprasad/openssl-3.0/) or in CentOS Stream 9 (https://kojihub.stream.centos.org/koji/buildinfo?buildID=7571).

There are some documented changes in OpenSSL 3.0: https://wiki.openssl.org/index.php/OpenSSL_3.0 but there are also some changes that should not be visible. However, since other SW depends on some internals, the changes actually affect the compatibility more than documented.

MySQL 8.0.22 (expecting 8.0.25 behaves the same) fails to build with this upcoming OpenSSL 3.0.

The problem is mainly with md5 but also the FIPS handling (that is a bit specific in MySQL) will not work the same as it used to with OpenSSL 1.1.

How to repeat:
1. Install openssl 3.0 including header files from either copr mentioned above or using some other way
2. Build MySQL 8.0.x

Suggested fix:
A partial fix is proposed here:
https://gitlab.com/redhat/centos-stream/rpms/mysql/-/merge_requests/2/diffs
[26 May 2021 19:03] Terje Røsten
See also: https://bugs.mysql.com/bug.php?id=102405
[27 May 2021 5:42] MySQL Verification Team
Hello Honza,

Thank you for report and feedback!
Marking this as duplicate of Bug #102405, please see Bug #102405.

Thanks,
Umesh