JDK-8326433 : Make file-local functions static in src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-02-21
  • Updated: 2024-03-05
  • Resolved: 2024-02-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23 b12Fixed
Related Reports
Relates :  
Relates :  
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.
Comments
Changeset: 0901dede Author: Jiangli Zhou <jiangli@openjdk.org> Date: 2024-02-27 01:34:19 +0000 URL: https://git.openjdk.org/jdk/commit/0901dedefe16afa3f7222723b3fec7a22d9df675
27-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18013 Date: 2024-02-26 20:20:31 +0000
26-02-2024