Re: libc error on older Linux

Elmar Haneke via fpc-pascal <[email protected]> Wed, 3 Jun 2026 17:19:18 +0200
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============1228299869220950492==
Content-Type: multipart/alternative;
 boundary="------------0VQ5almLnMsbNk8SLtvpjSYp"
Content-Language: de-DE

This is a multi-part message in MIME format.
--------------0VQ5almLnMsbNk8SLtvpjSYp
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit


Am 03.06.26 um 14:00 schrieb Rainer Stratmann via fpc-pascal:
> Am Mittwoch, 3. Juni 2026, 11:53:05 CEST schrieb Elmar Haneke via fpc-pascal:
>> there was an incompatible update in GLIBC.
>>
>> You have to compile against old GLIBC to run on old Linux.
>>
>> Have a look at tools like "distrobox" to get a build-environment.
> This sounds complicated.
> I try to avoid anything that makes my work more complicated.

It is not that complicated as it sounds to be: An environment for 
"Debian 11" is created by a single command. Afterward you enter that 
environment and install FPC/Lazarus there. You can compile your source 
in the third step. The environment does share most of the host's file 
system - especially your /home.

As an alternative you can use an old machine to compile.

> On 32 Bit Linux Systems that worked perfectly for more than 20 years. The
> Software runs on more than 100 different Computers with different Linux
> versions.
>
> Now with 64 Bit there are these Problems.

It is caused by the incompatible change in GLIBC 2.34. The distros 
before and after are compatible again.

You always might run into unexpected trouble when running a binary 
compiled on modern distro when running it on old distro.


--------------0VQ5almLnMsbNk8SLtvpjSYp
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html data-lt-installed="true">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 03.06.26 um 14:00 schrieb Rainer
      Stratmann via fpc-pascal:<br>
    </div>
    <blockquote type="cite" cite="mid:2623047.eeyEu47dXS@debian1-3">
      <pre wrap="" class="moz-quote-pre">Am Mittwoch, 3. Juni 2026, 11:53:05 CEST schrieb Elmar Haneke via fpc-pascal:
</pre>
      <blockquote type="cite">
        <pre wrap="" class="moz-quote-pre">there was an incompatible update in GLIBC.

You have to compile against old GLIBC to run on old Linux.

Have a look at tools like "distrobox" to get a build-environment.
</pre>
      </blockquote>
      <pre wrap="" class="moz-quote-pre">
This sounds complicated.
I try to avoid anything that makes my work more complicated.</pre>
    </blockquote>
    <p>It is not that complicated as it sounds to be: An environment for
      "Debian 11" is created by a single command. Afterward you enter
      that environment and install FPC/Lazarus there. You can compile
      your source in the third step. The environment does share most of
      the host's file system - especially your /home.</p>
    <p>As an alternative you can use an old machine to compile.</p>
    <blockquote type="cite" cite="mid:2623047.eeyEu47dXS@debian1-3">
      <pre wrap="" class="moz-quote-pre">On 32 Bit Linux Systems that worked perfectly for more than 20 years. The 
Software runs on more than 100 different Computers with different Linux 
versions.

Now with 64 Bit there are these Problems.</pre>
    </blockquote>
    <p>It is caused by the incompatible change in GLIBC 2.34. The
      distros before and after are compatible again.</p>
    <p>You always might run into unexpected trouble when running a
      binary compiled on modern distro when running it on old distro.</p>
    <br>
  </body>
  <lt-container></lt-container>
</html>

--------------0VQ5almLnMsbNk8SLtvpjSYp--

--===============1228299869220950492==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

--===============1228299869220950492==--