Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 11 Compatibility #1289

Closed
dbwiddis opened this issue Jul 6, 2020 · 0 comments · Fixed by #1299
Closed

macOS 11 Compatibility #1289

dbwiddis opened this issue Jul 6, 2020 · 0 comments · Fixed by #1299
Assignees
Labels
compatibility Extending OSHI compatibility to OSs or versions external dependency Bug/error in another project OSHI depends on

Comments

@dbwiddis
Copy link
Member

dbwiddis commented Jul 6, 2020

The library loading framework for macOS on JNA 5.5.0 and earlier is not compatible with the new macOS Big Sur. From the macOS 11 beta release notes:

New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

The result of this will be an UnsatisfiedLinkError attempting to load a macOS library.

Library loading compatibility with macOS 11 was fixed in JNA 5.6.0.

OSHI versions 3.13.6, 4.9.1, and 5.2.1 all now require this minimum version of JNA.

While it is not necessary to update OSHI to get the latest JNA version, developers are strongly recommended to update to the latest version of the 3.X, 4.X, or 5.X branches. The latest OSHI versions incorporate multiple performance improvements, new features, and bug fixes.

@dbwiddis dbwiddis added confirmed bug Confirmed bugs. Highest priority to fix. external dependency Bug/error in another project OSHI depends on labels Jul 6, 2020
@dbwiddis dbwiddis self-assigned this Jul 6, 2020
@dbwiddis dbwiddis pinned this issue Jul 6, 2020
@dbwiddis dbwiddis added the compatibility Extending OSHI compatibility to OSs or versions label Jul 6, 2020
@dbwiddis dbwiddis removed the confirmed bug Confirmed bugs. Highest priority to fix. label Jul 15, 2020
@dbwiddis dbwiddis unpinned this issue Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Extending OSHI compatibility to OSs or versions external dependency Bug/error in another project OSHI depends on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant