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

[AIX] Disable symbol visibility flags

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: core-libs
    • Environment:

      Platform: AIX

      OpenJDK Version: jdk/jdk (12)

      VM: Hotspot and OpenJ9

      Toolchain: xlc 13.1

    • Resolved In Build:
      b23
    • CPU:
      ppc
    • OS:
      aix

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

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