JDK-8255003 : Build failures on Solaris
  • Type: Bug
  • Component: core-libs
  • Affected Version: openjdk8u272
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • Submitted: 2020-10-19
  • Updated: 2020-11-16
  • Resolved: 2020-10-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjdk8u282 b01Fixed
Related Reports
Relates :  
Relates :  
Description
Solaris builds fail after following fixes included into openjdk 8u272:

8250627: Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics

https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/edb84bd2f10f

This fix updates the map file with symbol, which does not exist in Solaris builds:
Java_jdk_internal_platform_cgroupv1_Metrics_isUseContainerSupport

Build failures:
Undefined                       first referenced
 symbol                             in file
Java_jdk_internal_platform_cgroupv1_Metrics_isUseContainerSupport
jdk/make/mapfiles/libjava/mapfile-vers
ld: fatal: symbol referencing errors. No output written to
build/solaris-x86_64-normal-server-release/jdk/lib/amd64/libjava.so
Comments
URL: https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/0815a27d5095 User: andrew Date: 2020-11-16 13:38:04 +0000
16-11-2020

URL: https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/0815a27d5095 User: sgehwolf Date: 2020-10-22 16:36:20 +0000
22-10-2020

I'm happy to have you listed as reviewer too.
22-10-2020

Peter Tribble isn't an OpenJDK 8u reviewer (or even on the census as far as I can see). I have reviewed this here: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012828.html
22-10-2020

Taking over from Andrew Brygin. Thanks for your help on this! Fix request (OpenJDK 8u): Please approve this JDK 8u only fix as it breaks the solaris build. The patch has been reviewed and tested by Andrew Brygin (8u Reviewer) and Peter Tribble. Risk should be minimal as it's a build-only change and it has been tested on Solaris, Linux, Windows and Mac OS X. Together with the fix for JDK-8251840 this unbreaks the solaris build of 8u. webrev: https://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8255003/01/webrev/ RFR: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012832.html RFR (approval): http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012838.html
22-10-2020

Replacing jdk8u-fix-request with jdk8u-needs-review. jdk8u-fix-request is only for changes that have been successfully reviewed by one or more 8u reviewers and are ready for approval by an 8u maintainer.
21-10-2020

Fix request (8u): The build failure on solars needs to be fixed. RFR: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012810.html
20-10-2020

[~sgehwolf] ok, I will remove the change for jdk/make/mapfiles/libawt_xawt/mapfile-vers from the fix.
20-10-2020

[~bae] We should keep the fixes separate. JDK-8251840 tracks missing removal of Java_sun_awt_X11_XToolkit_getDefaultScreenData. Lets use this one only for Java_jdk_internal_platform_cgroupv1_Metrics_isUseContainerSupport.
20-10-2020