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

GLIBC version for linux? #13

Open
openaudible opened this issue Apr 3, 2023 · 3 comments
Open

GLIBC version for linux? #13

openaudible opened this issue Apr 3, 2023 · 3 comments

Comments

@openaudible
Copy link

This is such a cool project. I used it to build binaries, but got a report from centos 8 user with the following error launching:

/lib64/libm.so.6 version 'GLIBC_2.29' not found, required by /test/ffprobe.

Here is a test to reproduce using your binaries (which is supposed to print the ffmpeg -version message)
(put ffmpeg binary in same directory as dockerfile) :

Dockerfile

from centos:8
workdir /test
copy ffmpeg /test/
run ./ffmpeg -version

then build the above docker file, which should fail with the above error:

docker build .

I am working on a fix, but thought I'd give you a heads up.

It appears that the correct thing to do is download an earlier version of glibc and link against that.. but not sure, as I'm not a C guy.

Also, your donate page is 404 on your web page, which is linked on this github page under Sponsor this project.

And a feature request would be to build a fat binary mac aarch_64/arm64.

@wdlkmpx
Copy link

wdlkmpx commented Apr 4, 2023

When compiling a (somewhat) portable program you must use the oldest possible distro

If ffmpeg compiles OK with Centos 7 then you should use centos 7

Otherwise you'll see errors like that, it just means that compiled apps require a newer glibc version than the one installed

@lalinsky
Copy link
Member

lalinsky commented Apr 4, 2023

You need to build on the oldest possible distro.

For my use case, I used to build on Ubuntu 18.04, which has a very old glibc and I've not heard of any problems running fpcalc. I've upgraded to Ubuntu 20.04 last year, essentially removing support for CentOS 7/8, but that's OK for me.

@openaudible
Copy link
Author

Ah. Thanks for the quick reply. Will try that approach and will reply with whatever solution we come up with. Thanks!

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

No branches or pull requests

3 participants