Bug #80322 | mysql 5.7 fails to build with musl libc due to not finding SIGEV_THREAD_ID | ||
---|---|---|---|
Submitted: | 9 Feb 2016 16:13 | Modified: | 27 Apr 2017 16:05 |
Reporter: | Natanael Copa | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.7.10 | OS: | Linux (Alpine linux (musl libc)) |
Assigned to: | CPU Architecture: | Any |
[9 Feb 2016 16:13]
Natanael Copa
[6 Feb 2017 16:08]
Kamil Dziedzic
Any plans for fixing this or any known workaround?
[19 Apr 2017 13:40]
Tor Didriksen
OK, I gave it a try for our current developer version, 8.0.2 $uname -a Linux vide21 4.4.59 #1-Alpine SMP Tue Apr 4 08:13:08 GMT 2017 x86_64 Linux I get 'Invalid argument' from timer_create. Not surprising really. This is what I see for struct sigevent: /usr/include/asm-generic/siginfo.h typedef struct sigevent { sigval_t sigev_value; int sigev_signo; int sigev_notify; union { int _pad[SIGEV_PAD_SIZE]; int _tid; struct { void (*_function)(sigval_t); void *_attribute; /* really pthread_attr_t */ } _sigev_thread; } _sigev_un; } sigevent_t; /usr/include/signal.h truct sigevent { union sigval sigev_value; int sigev_signo; int sigev_notify; void (*sigev_notify_function)(union sigval); pthread_attr_t *sigev_notify_attributes; char __pad[56-3*sizeof(long)]; };
[27 Apr 2017 16:05]
Paul DuBois
Posted by developer: Noted in 8.0.2 changelog. MySQL now compiles on Alpine Linux.
[19 Oct 2018 14:55]
Stijn Tintel
Can the fix be backported to MySQL 5.7? Thanks.
[6 Nov 2018 8:06]
Tor Didriksen
Posted by developer: We have about a dozen patches on top of this one, in order to make mysql actually *work* on Alpine Linux, so a backport is not trivial.
[1 Feb 2019 9:55]
Terje Røsten
Patch to add MySQL 8 to Alpine Linux aports
Attachment: 0001-Add-MySQL-package.patch (text/x-patch), 17.31 KiB.
[1 Feb 2019 9:57]
Terje Røsten
Hi Natanael! Congrats with release of Alpine Linux 3.9! Attached is patch to add MySQL 8 to aports. It builds and runs fine on my local Alpine Linux 3.9 VM.
[28 Jun 2019 10:10]
Terje Røsten
Patch to add MySQL 8.0 to Alpine Linux aports
Attachment: 0001-Add-MySQL-8.0-package.patch (text/x-patch), 15.64 KiB.
[28 Jun 2019 10:11]
Terje Røsten
Hi Natanael! Congrats with release of Alpine Linux 3.10! Attached is patch to add MySQL 8.0.16 to aports. It builds and runs fine on my local Alpine Linux 3.10 VM.
[2 Feb 2022 23:38]
Andy Syam
did anyone make this patch in mysql-5.7? i applied mysql-8.0.2 patch but its not working in mysql-5.7