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

libCreationTimeHelper.so fails to link in JDK 21

XMLWordPrintable

    • b07
    • linux

        Fails to build in JDK 21 because the -ldl option appears before the module that requires dlsym.

        ```
        /usr/bin/ld: /shared/projects/openjdk/jdk-jdk21u-dev/output-fastdebug/support/test/jdk/jtreg/native/support/libCreationTimeHelper/libCreationTimeHelper.o: in function `Java_CreationTimeHelper_linuxIsCreationTimeSupported':
        /shared/projects/openjdk/jdk-jdk21u-dev/source/test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c:33: undefined reference to `dlsym'
        collect2: error: ld returned 1 exit status
        ```

        I have no idea why this only fails for me.

        Seen on Ubuntu 20.04, g++ 10, glibc 2.31

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: