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

Resolve multiple definition of 'jvm' when statically linking with JDK native libraries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-libs
    • None
    • b18
    • generic
    • generic

      When statically link a set of JDK native libraries and libjvm with the launcher executable (see JDK-8303796 for more details), the linker reports failure due to multiple definitions of 'jvm' symbols, e.g.:

      .../libmanagement_ext.a(management_ext.o):(.bss.jvm+0x0): multiple definition of `jvm'; /.../lib/libawt.a(awt_LoadLibrary.o):(.bss.jvm+0x0): first defined here

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

              Created:
              Updated:
              Resolved: