-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
openjdk8u
The system infos are the followings,
# uname -a
Linux cdd2342af377 5.4.119-19-0008 #1 SMP Fri Oct 22 11:00:26 CST 2021 aarch64 Linux
# cat /etc/alpine-release
3.15.6
# java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.352-b08, mixed mode)
Just run the below simple test,
public class LoadSunEC {
public static void main(String[] args) {
System.loadLibrary("sunec");
}
}
and then get the below error,
Exception in thread "main" java.lang.UnsatisfiedLinkError: /path/to/openjdk8/jre/lib/aarch64/libsunec.so: libgcc_s.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at LoadSunEC.main(LoadSunEC.java:4)
But, OpenJDK 11 and 17 have no this issue.
When just copied libsunec.so from OpenJDK 11 to OpenJDK 8, the test LoadSunEC passed.
# uname -a
Linux cdd2342af377 5.4.119-19-0008 #1 SMP Fri Oct 22 11:00:26 CST 2021 aarch64 Linux
# cat /etc/alpine-release
3.15.6
# java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.352-b08, mixed mode)
Just run the below simple test,
public class LoadSunEC {
public static void main(String[] args) {
System.loadLibrary("sunec");
}
}
and then get the below error,
Exception in thread "main" java.lang.UnsatisfiedLinkError: /path/to/openjdk8/jre/lib/aarch64/libsunec.so: libgcc_s.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at LoadSunEC.main(LoadSunEC.java:4)
But, OpenJDK 11 and 17 have no this issue.
When just copied libsunec.so from OpenJDK 11 to OpenJDK 8, the test LoadSunEC passed.