RFR: JDK-8308110: Resolve multiple definition of 'JNI_OnLoad_jsound' linking error

Alan Bateman alanb at openjdk.org
Tue May 16 05:43:43 UTC 2023


On Mon, 15 May 2023 17:41:18 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

> Remove DEF_STATIC_JNI_OnLoad from src/java.desktop/linux/native/libjsound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c. src/java.desktop/share/native/libjsound/Platform.c defines DEF_STATIC_JNI_OnLoad for libjsound.

Probably should wait for someone in the client libs area to review too but I think this is okay. It would require digging into the history to know how the duplicate came about when it is already defined in Platform.c.

-------------

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/13994#pullrequestreview-1427754182



More information about the client-libs-dev mailing list