RFR: 8305935: Resolve multiple definition of 'jmm_<interface|version>' when statically linking with JDK native libraries
David Holmes
dholmes at openjdk.org
Thu Apr 13 06:59:33 UTC 2023
On Wed, 12 Apr 2023 23:35:02 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
> Rename 'jmm_<interface|version>' to 'jmm_<interface|version>_management_ext' in libmanagement_ext to resolve related linker errors when statically linking with both libmanagement and libmanagement_ext.
src/jdk.management/share/native/libmanagement_ext/management_ext.c line 36:
> 34: const JmmInterface* jmm_interface_management_ext = NULL;
> 35: static JavaVM* jvm = NULL;
> 36: jint jmm_version_management_ext = 0;
Is there not a way to stop these from being exported from the library, as I assume they are not actually intended for external use. ??
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13451#discussion_r1165084734
More information about the serviceability-dev
mailing list