Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsnappyjava.so can't load on alpine image #579

Open
coderzc opened this issue May 29, 2024 · 1 comment
Open

libsnappyjava.so can't load on alpine image #579

coderzc opened this issue May 29, 2024 · 1 comment

Comments

@coderzc
Copy link

coderzc commented May 29, 2024

Hello, when I try to use snappy-java on alpine image, I get the following error, do we have some ideas?

java.lang.UnsatisfiedLinkError: /tmp/snappy-1.1.10-82d62aa6-8497-418b-a504-c335a58c9f0e-libsnappyjava.so: Error relocating /lib/ld-linux-x86-64.so.2: unsupported relocation type 37
	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source) ~[?:?]
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) ~[?:?]
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source) ~[?:?]
	at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source) ~[?:?]
	at java.base/java.lang.Runtime.load0(Unknown Source) ~[?:?]
	at java.base/java.lang.System.load(Unknown Source) ~[?:?]
	at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:182) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
	at org.xerial.snappy.SnappyLoader.loadSnappyApi(SnappyLoader.java:157) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
	at org.xerial.snappy.Snappy.init(Snappy.java:70) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
	at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
	at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:103) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
	at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:92) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
	at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:82) ~[org.xerial.snappy-snappy-java-1.1.10.5.jar:1.1.10.5]
@Hc747
Copy link

Hc747 commented Jul 5, 2024

What version of Alpine are you using? It's not available (maintained) on versions > 3.18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants