Skip to content

Update libjnidispatch.so for OpenBSD 7.8 #1709

Closed

Description

@catap

Since OpenBSD 7.8 release any attept to use libjnidispatch.so leads to undefined symbol '__sF' due to API/ABI changes, here an example sbt/sbt#8441

To fix it, you just need to rebuild it for OpenBSD 7.8

Activity

  1. dbwiddis commented on Jan 26, 2026

    @dbwiddis
    Contributor

    Also reproduced using 7.8 in a GitHub action vm (vmactions/openbsd-vm@v1)

  2. matthiasblaesing commented on May 10, 2026

    @matthiasblaesing
    Member

    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?!

  3. catap commented on May 10, 2026

    @catap
    Author

    @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.

  4. matthiasblaesing commented on May 11, 2026

    @matthiasblaesing
    Member

    @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.

    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.

    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.

  5. catap commented on May 11, 2026

    @catap
    Author

    I see, when rebuild for 7.9 which is planned to be released very soon seems like an easy win here.

  6. dbwiddis commented on May 22, 2026

    @dbwiddis
    Contributor

    From https://www.openbsd.org/faq/faq5.html#Flavors

    Only the two most recent OpenBSD releases receive security and reliability fixes for the base system.

    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.

  7. added 3 commits that reference this issue on May 26, 2026
    75d71c1
    2a4e7be
    eecab35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions