Subject: java-libsnappy and java-libsnappy-1 have test failures (java.lang.UnsatisfiedLinkError)
From: Björn Höfling <[email-masked]>
To: <[email-masked]>
Date: Mon, 25 Jun 2018 00:11:08 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

I'm on master (02e2d18297c9352d5f12abe128a82e579d9be278) with the
ant-buildsystem-patch fixed to raise exceptions instead of returning #f
(i.e. i cherry-picked commit d7ee90fe906aacb7f0bb1513195a1457970fd19d).

Failed test report:

/tmp/guix-build-java-snappy-1.1.7.drv-3/snappy-java-1.1.7/src/test/test-reports/TEST-org.xerial.snappy.BitShuffleTest.txt

Here is the report for java-snappy-1:

Testsuite: org.xerial.snappy.CalgaryTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.181 sec

Testcase: stream took 0.135 sec
	Caused an ERROR
java.lang.UnsatisfiedLinkError: /tmp/snappy-unknown-libsnappyjava.so: /gnu/store/4ixlfq2baw24ihqx3058vcbq5sq9q5y3-gcc-4.9.4-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /gnu/store/4amdzkqix0grksrgw3h5wcv2azvz6pkd-snappy-1.1.7/lib/libsnappy.so.1)
org.xerial.snappy.SnappyError: java.lang.UnsatisfiedLinkError: /tmp/snappy-unknown-libsnappyjava.so: /gnu/store/4ixlfq2baw24ihqx3058vcbq5sq9q5y3-gcc-4.9.4-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /gnu/store/4amdzkqix0grksrgw3h5wcv2azvz6pkd-snappy-1.1.7/lib/libsnappy.so.1)
	at org.xerial.snappy.LoadSnappy.loadNativeLibrary(Unknown Source)
	at org.xerial.snappy.LoadSnappy.extractAndLoadLibraryFile(Unknown Source)
	at org.xerial.snappy.LoadSnappy.loadSnappyNativeLibrary(Unknown Source)
	at org.xerial.snappy.LoadSnappy.load(Unknown Source)
	at org.xerial.snappy.Snappy.<clinit>(Unknown Source)
	at org.xerial.snappy.SnappyOutputStream.<init>(Unknown Source)
	at org.xerial.snappy.SnappyOutputStream.<init>(Unknown Source)
	at org.xerial.snappy.CalgaryTest.stream(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/snappy-unknown-libsnappyjava.so: /gnu/store/4ixlfq2baw24ihqx3058vcbq5sq9q5y3-gcc-4.9.4-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /gnu/store/4amdzkqix0grksrgw3h5wcv2azvz6pkd-snappy-1.1.7/lib/libsnappy.so.1)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1968)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1893)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
	at java.lang.Runtime.load0(Runtime.java:795)
	at java.lang.System.load(System.java:1062)

Testcase: block took 0.001 sec
	Caused an ERROR
Could not initialize class org.xerial.snappy.Snappy
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at org.xerial.snappy.CalgaryTest.block(Unknown Source)

Björn