Forum > Unix
Glibc 2.34 and compiled binary
(1/1)
OH1KH:
Hi!
Running here Fedora35 with Lazarus 2.0.12 I have now faced a problem with compiled binary files.
I have been lazy to issue Fedora updates, but now when done so I started to receive reports that program compiled with my system does not start any more with other systems giving a "/usr/lib/libc.so.6: version `GLIBC_2.34' not found "
I found one fedora and glbc related thread from here, but it seems to be problem with compile using Lazarus, not with the produced binary.
This problem affects both GTK2 and QT5 binaries.
GTK3 can not be tested as it has had long time an unfixed error with LCLNet that stops compiler.
If program binary is compiled with system having older GLIBC this binary will run OK with version having GLIBC 2.34. But not other way round.
This drops out users that have systems where GLIBC is not updated to 2.34 (and there are many of them)
Any suggestions (than using old enough system to compile) ?
Jonas Maebe:
--- Quote from: OH1KH on January 04, 2022, 05:59:39 pm ---Any suggestions (than using old enough system to compile) ?
--- End quote ---
Either that, or build a custom sysroot with the desired glibc version (e.g. with https://github.com/crosstool-ng/crosstool-ng) and pass that sysroot location to FPC with the -XR command line parameter.
PascalDragon:
--- Quote from: OH1KH on January 04, 2022, 05:59:39 pm ---GTK3 can not be tested as it has had long time an unfixed error with LCLNet that stops compiler.
--- End quote ---
Not related to your problem, but was this error reported?
OH1KH:
I do not know!
At least I haven't. It has been there for long (years now).
Navigation
[0] Message Index