Comment 6 for bug 1662813

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

By default the package install libjnidispatch under /usr/lib/s390x-linux-gnu/jni/libjnidispatch.system.so and as far as I can see there's no reason to have a file/link in /usr/lib/s390x-linux-gnu/libjnidispatch.so.

Still, I was able to reproduce the error which indicates that you might have a dangling file somewhere. To do that I simply copied the package's libjnidispatch.system.so to /usr/local/lib and ran ldconfig:

$ sudo cp /usr/lib/s390x-linux-gnu/jni/libjnidispatch.system.so \
          /usr/local/lib/
$ sudo ldconfig
/sbin/ldconfig.real: Can't link /usr/local/lib//build/libjna-java-Ln6YkD/libjna-java-4.5.1/build/native-linux-x86-64/libjnidispatch.system.so to libjnidispatch.system.so

Running with verbose shows more information:

$ sudo ldconfig --verbose
[other info]
/usr/local/lib:
 /build/libjna-java-Ln6YkD/libjna-java-4.5.1/build/native-linux-x86-64/libjnidispatch.system.so -> libjnidispatch.system.so/sbin/ldconfig.real: Can't link /usr/local/lib//build/libjna-java-Ln6YkD/libjna-java-4.5.1/build/native-linux-x86-64/libjnidispatch.system.so to libjnidispatch.system.so
 (SKIPPED)
[other info]

This should at least show you where to look for the dangling libjnidispatch.system.so (eg. /usr/local/lib in my case).