--- old/src/jdk.hotspot.agent/solaris/native/libsaproc/saproc.cpp 2018-03-23 14:24:47.117157803 +0100 +++ new/src/jdk.hotspot.agent/solaris/native/libsaproc/saproc.cpp 2018-03-23 14:24:46.881157804 +0100 @@ -221,7 +221,8 @@ // implement as a pathmap style facility for the SA. If libproc // starts using other interfaces then this might have to extended to // cover other calls. -extern "C" int libsaproc_open(const char * name, int oflag, ...) { +extern "C" JNIEXPORT int JNICALL +libsaproc_open(const char * name, int oflag, ...) { if (oflag == O_RDONLY) { init_alt_root();