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

Make file-local functions static in src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-svc
    • None
    • b12
    • generic
    • generic

      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.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: