Description
We noticed following error when statically linking launcher executable with libjdwp.a and libjava.a.
ld: error: duplicate symbol: closeDescriptors
>>> defined at path_util.c
>>> libjava_relocatable.o:(closeDescriptors) in archive /tmp/jdkbuild/build/images/static-libs/lib/libjava.a
>>> defined at util.c
>>> libjdwp_relocatable.o:(.text+0x18C70) in archive /tmp/jdkbuild/build/images/static-libs/lib/libjdwp.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
closeDescriptors() was recently added in libjdwp.
ld: error: duplicate symbol: closeDescriptors
>>> defined at path_util.c
>>> libjava_relocatable.o:(closeDescriptors) in archive /tmp/jdkbuild/build/images/static-libs/lib/libjava.a
>>> defined at util.c
>>> libjdwp_relocatable.o:(.text+0x18C70) in archive /tmp/jdkbuild/build/images/static-libs/lib/libjdwp.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
closeDescriptors() was recently added in libjdwp.
Attachments
Issue Links
- relates to
-
JDK-8326714 Make file-local functions static in src/java.base/unix/native/libjava/childproc.c
-
- Resolved
-
-
JDK-8324668 JDWP process management needs more efficient file descriptor handling
-
- Resolved
-
-
JDK-8303796 Optionally build fully statically linked JDK image
-
- Open
-