-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 16
-
Component/s: core-libs
-
Environment:
OS: Alpine Linux 3.11.6
libc: musl (x86_64) version 1.1.24
-
b14
-
other
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8287029 | 11.0.17-oracle | David Buck | P4 | Resolved | Fixed | b01 |
| JDK-8282940 | 11.0.16 | Aleksei Voitylov | P4 | Resolved | Fixed | b01 |
| JDK-8287066 | 8u351 | David Buck | P4 | Resolved | Fixed | b01 |
Building JDK with musl libc gives the error:
---------------------
src/java.base/linux/native/libnet/linux_close.c:63:25: error: '__SIGRTMAX' undeclared here (not in a function); did you mean 'SIGRTMAX'?
63 | static int sigWakeup = (__SIGRTMAX - 2);
| ^~~~~~~~~~
| SIGRTMAX
---------------------
This is because musl libc does not define __SIGRTMAX constant.
Simple replacing __SIGRTMAX to SIGRTMAX does not work either because SIGRTMAX is defined as function and not as a constant:
https://git.musl-libc.org/cgit/musl/tree/include/signal.h#n196
---------------------
src/java.base/linux/native/libnet/linux_close.c:63:25: error: '__SIGRTMAX' undeclared here (not in a function); did you mean 'SIGRTMAX'?
63 | static int sigWakeup = (__SIGRTMAX - 2);
| ^~~~~~~~~~
| SIGRTMAX
---------------------
This is because musl libc does not define __SIGRTMAX constant.
Simple replacing __SIGRTMAX to SIGRTMAX does not work either because SIGRTMAX is defined as function and not as a constant:
https://git.musl-libc.org/cgit/musl/tree/include/signal.h#n196
- backported by
-
JDK-8282940 __SIGRTMAX is not declared in musl libc
-
- Resolved
-
-
JDK-8287029 __SIGRTMAX is not declared in musl libc
-
- Resolved
-
-
JDK-8287066 __SIGRTMAX is not declared in musl libc
-
- Resolved
-