Bug #112209 | The warning of deprecated function in openssl3 not be supressed | ||
---|---|---|---|
Submitted: | 29 Aug 2023 8:16 | Modified: | 13 Nov 2023 23:17 |
Reporter: | karry zhang (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | MySQL8.0,5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[29 Aug 2023 8:16]
karry zhang
[29 Aug 2023 8:37]
karry zhang
Make sure to use openssl3, and compile the code.
[29 Aug 2023 9:03]
MySQL Verification Team
Hello karry zhang, Thank you for the report and feedback. IMHO this is duplicate of Bug #102405, please see Bug #102405. regards, Umesh Shastry
[29 Aug 2023 11:26]
karry zhang
I think it's not the same with Bug #102405. The problem I found was introduced in the latest relese code for 5.7. The problem was introduced in WL#15614 OpenSSL 3.0 support in Cluster v7.5, 7.6/MySQL 5.7. This issue will affect the latest version of 5.7 and I see the same problem will affect the latest version of 8.0. But for Bug #102405, it has been fixed in 8.0. The essential of the problem is the compile flag -Wno-error=deprecated-declarations is invalid. You can try statically compiling openssl into mysql and you will see the warnings.
[29 Aug 2023 12:59]
MySQL Verification Team
Thank you for the feedback. Can you please re-send the patch via contribution tab of this bug? Thank you. regards, Umesh Shastry
[30 Aug 2023 1:19]
karry zhang
Supress compiling warnings introduced by using deprecated functions in openssl3 (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: fix.txt (text/plain), 512 bytes.
[31 Aug 2023 10:49]
Tor Didriksen
Posted by developer: We implemented this to explicitly show those warnings for our own code, as a reminder that it should be fixed. For 3rd pary code though, it should be silenced.
[13 Nov 2023 23:17]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Server 8.0.36 and 8.3.0 releases, and here's the proposed changelog entry from the documentation team: For compiling on Linux, changed the "no-error=deprecated-declarations" flag to "no-deprecated-declarations" for the OpenSSL 3 library. Our thanks to karry zhang for the contribution. Thank you for the bug report.