#1 2023-02-10 06:04:40

Registered: 2014-10-20
Posts: 101

when uses mormot.core.os ,can not run on Linux

a blank project ,if it uses mormot.core.base, mormot.core.os units,

cross compile it with windows lazarus , it works on windows target .

but can NOT work on Linux 64 Target , error info :
/lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./project)

/lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./project)

if just uses the mormot.core.base, then it works fine.

there is topic about this  https://forum.lazarus.freepascal.org/in … ic=58888.0

maybe the problem comes from  mormot.core.os

laz ver :2.3.0 fpc ver:3.3.1 target os : x64 centos 7.9

Last edited by keinn (2023-02-10 06:12:20)


#2 2023-02-10 07:31:47

From: France
Registered: 2010-06-21
Posts: 14,323

Re: when uses mormot.core.os ,can not run on Linux

This is not a mormot.core.os problem, this is a linking issue.

Change the cross-compiler libc with another one, which fits your target system.

I use mormot.core.os on Linux on a daily basic since years. smile
My primary system is a Debian, and deployed mORMot servers on several Linux production servers. CentOS is tricky about its libc version for sure.


Board footer

Powered by FluxBB