Bug#1028374: libjna-java: JNA HelloWorld fails on aarch64 (and probably armhf, ppc64el)
Alexandre Rossi
niol at zincube.net
Tue Jan 10 08:33:26 GMT 2023
Package: libjna-java
Version: 5.12.1-1
Severity: important
Dear Maintainer,
When trying the JNA tutorial Helloworld on aarch64, it fails with the following
error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-aarch64/libjnidispatch.so) not found in resource path (debian/tests:/usr/share/java/jna.jar)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1042)
at com.sun.jna.Native.<clinit>(Native.java:221)
at HelloWorld$CLibrary.<clinit>(HelloWorld.java:8)
at HelloWorld.main(HelloWorld.java:14)
The testcase has been proposed as an autopkgtest:
https://salsa.debian.org/java-team/libjna-java/-/merge_requests/1
Reading autpkgtest results for davmail[1], it also fails with the same error
on armhf and ppc64el.
I have reproduced in a qemu arm64 image, although reporting this on amd64.
I have tried with -Djava.library.path=/usr/lib/jni but it is not better.
I can rebuild, and test and maybe look into this but would appreciate some guidance.
Thank you,
Alex
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libjna-java depends on:
ii libjna-jni 5.12.1-1
libjna-java recommends no packages.
libjna-java suggests no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list