Forum > Portuguese

erro: /lib64/libc.so.6: version `GLIBC_2.34' not found

<< < (2/3) > >>

dbannon:

--- Quote from: zeljko on February 09, 2023, 06:51:47 pm ---https://forum.lazarus.freepascal.org/index.php/topic,58888.msg460742.html#msg460742,
I think it's fixed in fixes_3_2, so you should try with fixes_3_2 or trunk fpc

--- End quote ---

zeljko, I am extremely interested in why you think it is fixed in trunk, the forum discussion you point lead me to believe it was not something fixable within FPC. Be fantastic if it could be.

I searched FPC commits messages for  "`GLIBC_2.34' not found" but did not find it, can you confirm you think the issue of Apps compiled in a glibc_2.34 system won't run in a system with an earlier glibc are fixed in FPC trunk and even fixes ?

Davo

zeljko:
Isn't this merge related to glibc problem ? https://gitlab.com/freepascal.org/fpc/source/-/commit/05480071e200e0454d6288c756490c493d695067

PascalDragon:

--- Quote from: dbannon on February 10, 2023, 11:35:39 am ---I searched FPC commits messages for  "`GLIBC_2.34' not found" but did not find it, can you confirm you think the issue of Apps compiled in a glibc_2.34 system won't run in a system with an earlier glibc are fixed in FPC trunk and even fixes ?
--- End quote ---

Searching for GLIBC_2.34 in the issues will show you this fixed bug.

PascalDragon:

--- Quote from: automacaosamos on February 09, 2023, 05:34:09 pm ---Eu tenho um problema com uma aplicacao compilada em Lazarus 2.2.4 para rodar no AlmaLinux 8.6

que usa glibc 2.28.

Estou recebendo o erro: "/lib64/libc.so.6: versão `GLIBC_2.34' não encontrada (exigida por ./aplicacao)".

Como posso atualizar o GLIBC para a versão 2.34 no AlmaLinux 8.6 ? Não encontrei nada que funcione na NET.

Quando usava a versão do lazarus 2.0.12 o problema não ocorria.

alguem pode ajudar que resolveu esse problema ??

--- End quote ---

If you want to support a system with an older C library you need to compile your application at least with that version of the C library or older. This is by design and how it works in the C world as well.

dbannon:

--- Quote from: PascalDragon on February 10, 2023, 05:16:43 pm ---
--- Quote from: dbannon on February 10, 2023, 11:35:39 am ---I searched FPC commits messages for  "`GLIBC_2.34' not found" but did not find it, can you confirm you think the issue of Apps compiled in a glibc_2.34 system won't run in a system with an earlier glibc are fixed in FPC trunk and even fixes ?
--- End quote ---

Searching for GLIBC_2.34 in the issues will show you this fixed bug.

--- End quote ---


--- Quote from: zeljko on February 10, 2023, 02:45:10 pm ---Isn't this merge related to glibc problem ? https://gitlab.com/freepascal.org/fpc/source/-/commit/05480071e200e0454d6288c756490c493d695067

--- End quote ---

That is not related to the problem that the original poster mentions. The OP is worried that his binaries, compiled on a glibc_2.34 system will not run on an older system. Its similar to 39295, similar symptoms and similar mechanism but its fixable (and fixed). The OP's problem is not fixable. Sadly.

> alguem pode ajudar que resolveu esse problema ??

As PD says, you must keep a pre glibc_2.34 system around so you can build on that, the binaries will always (?) run on a future system but the reverse is not (and never was apparently) guaranteed. I do my final release building on a VM dedicated for just that purpose, its an Ubuntu 20.04 but any distro with an earlier glibc_2.34 will do. We'll need to do that as long as there are still supported pre glibc_2.34 around.

And, as Pascal Dragon has said elsewhere, no reason to believe something like this will happen in future releases of glibc_2.34 ! And it is NOT just a FPC issue.

Davo

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version