Bug #110808 | Contribution: sql/memory: Fix build on musl | ||
---|---|---|---|
Submitted: | 25 Apr 2023 21:48 | Modified: | 20 Dec 2023 11:31 |
Reporter: | OCA Admin (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[25 Apr 2023 21:48]
OCA Admin
[25 Apr 2023 21:48]
OCA Admin
Contribution submitted via Github - sql/memory: Fix build on musl (*) Contribution by Sam James (Github thesamesam, mysql-server/pull/455#issuecomment-1519788787): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: git_patch_1306642895.txt (text/plain), 744 bytes.
[26 Apr 2023 5:44]
MySQL Verification Team
Hello Sam James, Thank you for the report and contribution. regards, Umesh
[8 Nov 2023 13:31]
MySQL Verification Team
Also seen this: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/2019203 which is a slightly different patch.
[8 Nov 2023 14:22]
Daniël van Eeden
This fixes one of two issues that arise when building with musl. The other issue is that res_ninit, res_search and res_nclose are used in libmysql/dns_srv.cc for DNS SRV lookups but those are not available with musl.
[15 Nov 2023 8:56]
Terje Røsten
Duplicate bug: https://bugs.mysql.com/bug.php?id=112995
[15 Nov 2023 9:04]
Sam James
We have another patch for the res issue you mention too: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-db/mysql-connector-c/files/mysql-connec.... It's not perfect but I'm not really sure there's a great alternative to it.
[15 Nov 2023 9:16]
Daniël van Eeden
Sam, could you submit that patch via a github PR or some other way that Oracle can verify that this is under the OCA so they can use it?
[15 Nov 2023 9:21]
Sam James
Sure, thanks for the quick reply. Lemme do it now before I forget.
[15 Nov 2023 9:52]
Sam James
Done as https://github.com/mysql/mysql-server/pull/505.
[20 Dec 2023 11:31]
Jon Stephens
Documented fix as follows in the MySQL 8.0.36 and 8.4.0 changelogs: MySQL did not build correctly using musl libc. Our thanks to Sam James for the contribution. Closed.