[Lazarus] version `GLIBC_2.34' not found error when running app on different PC

Bo Berglund bo.berglund at gmail.com
Fri Mar 17 00:36:17 CET 2023

I have used Lazarus 2.2.6 with fpc 3.2.2 on an Ubuntu 22.04 PC (recently
dist-upgraded from 20.04) to modify a video handling command line utility I
started back in 2018.
It uses calls to ffmpeg to do the actual video stuff and it was originally built
using earlier versions of Lazarus (2.0.12) and FPC (3.0.4), but now I fixed a
few issues using an updated installation with the latest versions.

The program I have built runs fine on that PC (an HP Elitebook w8440) but when I
move the executable from this machine to my Ubuntu 20.04 server PC I get this
when I try to run it:

videosplitcmb: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
(required by videosplitcmb)

So it seems like somehow the program uses some underlying function in the Linux
system which I have no control over...

What can I do in order to make the executable portable to other linux machines
with the same CPU architecture???

I do not know what the library libc.so.6 even does....

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list