Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8214063

[AIX] Disable symbol visibility flags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 12
    • 12
    • core-libs
    • Platform: AIX

      OpenJDK Version: jdk/jdk (12)

      VM: Hotspot and OpenJ9

      Toolchain: xlc 13.1

    • b23
    • ppc
    • aix

        When building in the environment described below, we see this error:

        -----
        21:18:48 ld: 0711-407 ERROR: Symbol .sigaction
        21:18:48 Visibility is not allowed on a reference to an imported symbol.
        21:18:48 Lib-java.base.gmk:139: recipe for target '/home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/modules_libs/java.base/libjsig.so' failed
        -----

        After analysis, the belief is that this is caused by JNIEXPORT and JNIIMPORT not being defined. Without this, almost no symbols are exported from shared libraries due to use of -qvisibility=hidden as specified in make/lib/LibCommon.gmk.

        Note: One solution for this problem (from which the above quotation was borrowed) was laid out in the OpenJDK Extensions for OpenJ9 repository, here: https://github.com/ibmruntimes/openj9-openjdk-jdk/pull/27

              afarley Adam Farley
              afarley Adam Farley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified