-
Bug
-
Resolution: Fixed
-
P4
-
14
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8245386 | 14u-cpu | Yasumasa Suenaga | P4 | Resolved | Fixed | master |
JDK-8245190 | 14.0.2 | Yasumasa Suenaga | P4 | Resolved | Fixed | b07 |
I tried to build jdk/jdk on Fedora 31 x64, but I saw C++ compiler error as below:
```
In file included from /home/ysuenaga/OpenJDK/jdk/src/jdk.incubator.jpackage/unix/native/libapplauncher/PosixPlatform.cpp:36:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
|
```
sysctl.h provides `sysctl()` and some macros, but they are not used in PosixPlatform.cpp .
```
In file included from /home/ysuenaga/OpenJDK/jdk/src/jdk.incubator.jpackage/unix/native/libapplauncher/PosixPlatform.cpp:36:
/usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
|
```
sysctl.h provides `sysctl()` and some macros, but they are not used in PosixPlatform.cpp .
- backported by
-
JDK-8245190 PosixPlatform.cpp should not include sysctl.h
-
- Resolved
-
-
JDK-8245386 PosixPlatform.cpp should not include sysctl.h
-
- Resolved
-