Bug#1029908: libjna-java: JNA HelloWorld fails on armhf

Alexandre Rossi niol at zincube.net
Sat Jan 28 22:03:14 GMT 2023


Package: libjna-java
Version: 5.13.0-1
Severity: normal
Tags: patch

Dear Maintainer,

When trying the JNA tutorial Helloworld on aarch64, it fails with the following
error message:

    autopkgtest [12:34:07]: test helloworld: [-----------------------
Jan 28, 2023 12:34:09 PM com.sun.jna.Native loadNativeDispatchLibrary
INFO: Looking in /usr/lib/jni/libjnidispatch.system.so
Jan 28, 2023 12:34:09 PM com.sun.jna.Native loadNativeDispatchLibrary
INFO: Looking in /usr/lib/arm-linux-gnueabi/jni/libjnidispatch.system.so
Jan 28, 2023 12:34:09 PM com.sun.jna.Native extractFromResourcePath
INFO: Looking in classpath from jdk.internal.loader.ClassLoaders$AppClassLoader at 19e0bfd for /com/sun/jna/linux-arm/libjnidispatch.so
Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path (debian/tests:/usr/share/java/jna.jar)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1062)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1018)
	at com.sun.jna.Native.<clinit>(Native.java:221)
	at HelloWorld$CLibrary.<clinit>(HelloWorld.java:8)
	at HelloWorld.main(HelloWorld.java:14)
autopkgtest [12:34:09]: test helloworld: -----------------------]

I succesfully tested a fix.

https://salsa.debian.org/niol/libjna-java/-/commit/c69675faa352652e95439f528d6a3e1fda0d90ed

Feel free to come back to me for a ready to upload package.

Cheers,

Alex

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-2-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.13.0-1

libjna-java recommends no packages.

libjna-java suggests no packages.

-- no debconf information



More information about the pkg-java-maintainers mailing list