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

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found #2136

Closed
siyilingting opened this issue Nov 29, 2023 · 4 comments
Closed

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found #2136

siyilingting opened this issue Nov 29, 2023 · 4 comments

Comments

@siyilingting
Copy link

In order to avoid the impact of the libwebp vulnerability, I had to upgrade javacv-platform from version 1.5.7 (containing opencv-platform 4.7.0-1.5.9) to version 1.5.10-SNAPSHOT (containing opencv-platform 4.8.1-1.5 .10-SNAPSHOT). However, when I ran the program, the following error occurred:

java.lang.UnsatisfiedLinkError: no jniopenblas_nolapack in java.library.path   
...
Caused by: java.lang.UnsatisfiedLinkError: /home/walle/.javacpp/cache/openblas-0.3.24-1.5.10-SNAPSHOT-linux-x86_64.jar/org/bytedeco/openblas/linux-x86_64/libjniopenblas_nolapack.so: /lib/x86_64-linux-gnu/libm.so.6: version ‘GLIBC_2.29' not found (required by /home/walle/.javacpp/cache/openblas-0.3.24-1.5.10-SNAPSHOT-linux-x86_64.jar/org/bytedeco/openblas/linux-x86_64/libopenblas_nolapack.so.0)
...
java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.opencv.opencv_core.Mat

One solution is to update the GLIBC, but it is high risk. So do you have any good suggestions on this issue?

@saudet
Copy link
Member

saudet commented Nov 29, 2023

You can build from source: https://github.com/bytedeco/javacpp-presets#build-instructions

@saudet
Copy link
Member

saudet commented Nov 29, 2023

Duplicate of bytedeco/javacpp-presets#1379

@saudet saudet marked this as a duplicate of bytedeco/javacpp-presets#1379 Nov 29, 2023
@saudet saudet closed this as completed Nov 29, 2023
@siyilingting
Copy link
Author

You can build from source: https://github.com/bytedeco/javacpp-presets#build-instructions

Thanks. I don't know much about maven compilation but I'm trying.
By the way, the Build Environments recommends Centos7(for the Linux-x86_64 platform) and provides a docker image because

it relies on an old enough version of glibc, which nevertheless works for all the libraries found in the JavaCPP Presets, and since newer versions of glibc are backward compatible, all recent distributions of Linux should support the binaries generated.

So will the release versions of javacv-platform:1.5.10 and opencv-platform:4.8.1-1.5.10 be compiled based on Centos7 and old version of gblic?

@saudet
Copy link
Member

saudet commented Dec 4, 2023

So will the release versions of javacv-platform:1.5.10 and opencv-platform:4.8.1-1.5.10 be compiled based on Centos7 and old version of gblic?

No, CentOS 7 will reach EOL next June

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants