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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: