-
Notifications
You must be signed in to change notification settings - Fork 25k
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
JNA 4.4.0 requires glibc 2.14 #23640
Comments
A few more options:
|
I considered all three of those options, and I do not think that we should pursue them.
I don't think that we should get into this business, it complicates our build and will not be as battle-tested as the actual JNA distributions.
I think that this is a non-option for an OS that we support.
I would love for this to be possible but I have my doubts about whether or not it is. |
We are going to proceed with this option after all. 😄 |
This new version of jna is rebuilt from the official release of jna, but with native libs linked against older glibc in order to support all platforms elasticsearch supports. closes #23640
This new version of jna is rebuilt from the official release of jna, but with native libs linked against older glibc in order to support all platforms elasticsearch supports. closes #23640
This new version of jna is rebuilt from the official release of jna, but with native libs linked against older glibc in order to support all platforms elasticsearch supports. closes #23640
This commit switches to the latest version of JNA. We previously built our own JNA jar with native libraries that supported glibc 2.7 due to a change by JNA that required glibc 2.14. JNA changed the minimum version of glibc back to 2.7 in the 4.5 release, so we should not need to build or use a custom jar we build. Relates elastic#23640
Nothing is ever simple. In #23636, JNA was upgraded from version 4.2.2 to version 4.4.0. Unfortunately, JNA 4.4.0 is linked against glibc 2.14 which is not available on all platforms that we support (e.g., CentOS 6). JNA is not required for Elasticsearch to function, but it not being available means:
The last point is technically not true; the first three are damning anyway. On stable platforms like CentOS 6, glibc 2.14 will never safely be available, and these OS will be around for awhile (we might not support them for their entire life, but we are not retiring them anytime soon). We do not want to be tied to JNA 4.2.2 forever, so this issue is a placeholder for finding a solution to this problem. One idea would be to ship both and set the classpath based on the version of glibc that is available.
The text was updated successfully, but these errors were encountered: