-
Bug
-
Resolution: Fixed
-
P3
-
21.0.2
-
b07
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8323375 | 21.0.3-oracle | Thomas Stuefe | P3 | Resolved | Fixed | b01 |
JDK-8324851 | 17.0.11 | Severin Gehwolf | P3 | Resolved | Fixed | b01 |
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
```
/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
- backported by
-
JDK-8323375 libCreationTimeHelper.so fails to link in JDK 21
- Resolved
-
JDK-8324851 libCreationTimeHelper.so fails to link in JDK 21
- Resolved
- relates to
-
JDK-8316304 (fs) Add support for BasicFileAttributes.creationTime() for Linux
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/0cdc070b
-
Commit openjdk/jdk21u/ccc2fd0c
-
Review openjdk/jdk17u-dev/2176
-
Review openjdk/jdk21u/351
(2 links to)