Bug#734599: native library loading failure

Olivier Sallou olivier.sallou at irisa.fr
Fri Aug 29 07:08:43 UTC 2014


The following patch modifies the native library loading to use debian
native /usr/lib/libsnappy.so file if no specific system property is used.


This fixes the native loading, however, using latest code there are
pending issues. Using previous example, it seems that Java library does
not match native library:

osallou at debiansid:~$ java -cp
/home/osallou/snappy-java-1.0.4.1~dfsg/target/snappy-java-1.0.4.1.jar:. 
SnappyTests Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.xerial.snappy.SnappyNative.maxCompressedLength(I)I
    at org.xerial.snappy.SnappyNative.maxCompressedLength(Native Method)
    at org.xerial.snappy.Snappy.maxCompressedLength(Snappy.java:316)
    at org.xerial.snappy.Snappy.rawCompress(Snappy.java:329)
    at org.xerial.snappy.Snappy.compress(Snappy.java:88)
    at SnappyTests.main(SnappyTests.java:12)





Olivier

gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4
6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
-------------- next part --------------
A non-text attachment was scrubbed...
Name: native.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20140829/866f433e/attachment.bin>


More information about the pkg-java-maintainers mailing list