Loading... (original) (raw)

An issue (https://github.com/AdoptOpenJDK/openjdk-build/issues/709) raised against AdoptOpenJDK jdk11 32-bit windows builds led us to the name decoration problem on built 32-bit dlls, specifically dt_socket.dll and dt_shmem.dll. Whereas 64-bit MSVC builds don't apply any name decorations on exported functions, 32-bit builds apply them which requires either def files or /export flags to be specified on the linker arguments.

Steps to reproduce:
Run jshell from JDK.

images/jdk> bin/jshell.exe
Launching JShell execution engine threw: ERROR: transport library missing onLoad entry: dt_socket
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_LOAD(509)
JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [debugInit.c:732]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)