Subject: bug#31961: closed (java-libsnappy and java-libsnappy-1 have test failures (java.lang.UnsatisfiedLinkError))

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 03 Jul 2018 12:24:02 +0000

Your bug report

#31961: java-libsnappy and java-libsnappy-1  have test failures (java.lang.UnsatisfiedLinkError)

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
31961: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31961
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: java-libsnappy and java-libsnappy-1 have test failures (java.lang.UnsatisfiedLinkError)
From: Gábor Boskovits <[email-masked]>
To: [email-masked]
Date: Tue, 3 Jul 2018 14:23:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed on master in commit 673135df30d48a7099c62adb1b452425e2eda3c8.
Thanks for reporting!

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