You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@matthiasblaesing yep, and I think it is a common issue for prebuild .so file which is expected to be universal between different version of OS.
No it is not common. Windows for all of its faults manages to keep a stable ABI, for Linux as long as you built against an old enough glibc, it will support your library on later versions.
I think using system installed .so is the right way.
I reconsidered that, but in the end that does not scale. The native part is considered an integral part of JNA and the native and java part are hard dependencies. I try to keep the native interface stable, but if necessary I'm willing to rebuild and when that happens, people will have a problem with the system wide installation. The native system library will not be loadable by the java part or to be precise the java part will reject the native library as version miss matches.
So now that 7.9 is released, only 7.9 and 7.8 are supported. That tends to support the idea of a "breaking native build" that won't work with 7.7 and earlier.
Activity
dbwiddis commentedon Jan 26, 2026
Also reproduced using 7.8 in a GitHub action vm (vmactions/openbsd-vm@v1)
matthiasblaesing commentedon May 10, 2026
So the question is: shouldn't jna remove the bundled library? I mean I can rebuild, but that will probably break the library on OpenBSD < 7.8?!
catap commentedon May 10, 2026
@matthiasblaesing yep, and I think it is a common issue for prebuild .so file which is expected to be universal between different version of OS.
Bright side that OpenBSD ships JNA in ports: https://codeberg.org/openbsd/ports/src/branch/master/java/jna
I think using system installed .so is the right way.
matthiasblaesing commentedon May 11, 2026
No it is not common. Windows for all of its faults manages to keep a stable ABI, for Linux as long as you built against an old enough glibc, it will support your library on later versions.
I reconsidered that, but in the end that does not scale. The native part is considered an integral part of JNA and the native and java part are hard dependencies. I try to keep the native interface stable, but if necessary I'm willing to rebuild and when that happens, people will have a problem with the system wide installation. The native system library will not be loadable by the java part or to be precise the java part will reject the native library as version miss matches.
I'll see if I can rebuild.
catap commentedon May 11, 2026
I see, when rebuild for 7.9 which is planned to be released very soon seems like an easy win here.
dbwiddis commentedon May 22, 2026
From https://www.openbsd.org/faq/faq5.html#Flavors
So now that 7.9 is released, only 7.9 and 7.8 are supported. That tends to support the idea of a "breaking native build" that won't work with 7.7 and earlier.
Update native built for OpenBSD 7.9 (x86-64 only)
Update native built for OpenBSD 7.9 (x86-64 only)
Update native built for OpenBSD 7.9 (x86-64 only)
Update dependency net.java.dev.jna:jna to v5.19.1 (#1820)
Update dependency net.java.dev.jna:jna to v5.19.1 (#1820)