-
Bug
-
Resolution: Fixed
-
P4
-
None
-
None
-
b09
-
generic
-
generic
We ran into following linker error when statically linking JDK/hotspot native libraries with user natives:
ld: error: duplicate symbol: start_timer
>>> defined at awt_ImagingLib.c:190 (/t.../src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:190)
>>> libawt_relocatable.o:(start_timer) in archive .../jdk/jdk11-k8/lib_static/libawt.a
>>> defined at timing.c
>>> .../timing.o:(.text+0x0)
https://gitlab.com/graphviz/graphviz/-/blob/main/lib/common/timing.c is an example of the code defines 'start_timer'.
ld: error: duplicate symbol: start_timer
>>> defined at awt_ImagingLib.c:190 (/t.../src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:190)
>>> libawt_relocatable.o:(start_timer) in archive .../jdk/jdk11-k8/lib_static/libawt.a
>>> defined at timing.c
>>> .../timing.o:(.text+0x0)
https://gitlab.com/graphviz/graphviz/-/blob/main/lib/common/timing.c is an example of the code defines 'start_timer'.
- relates to
-
JDK-8303796 Optionally build fully statically linked JDK image
-
- Open
-