From rainerstratmann at t-online.de Wed Jun 3 11:36:57 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 11:36:57 +0200 Subject: [fpc-pascal] libc error on older Linux Message-ID: <3310278.XIfvXXk0ta@debian1-3> The freepascal program is compiled on Debian 13. Lazarus: 4.0 Freepascal Version: I can not found. Trying to run the program on Debian 11 shows the error [prgname]: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found (required by [prgname]) ? ? ? From charlie at scenergy.dfmk.hu Wed Jun 3 12:10:11 2026 From: charlie at scenergy.dfmk.hu (Karoly Balogh) Date: Wed, 3 Jun 2026 12:10:11 +0200 (CEST) Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <3310278.XIfvXXk0ta@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> Message-ID: <2a1b1c31-993b-ee5e-c26f-91c3533e11c7@scenergy.dfmk.hu> Hi, On Wed, 3 Jun 2026, Rainer Stratmann via fpc-pascal wrote: > The freepascal program is compiled on Debian 13. > Lazarus: 4.0 > Freepascal Version: I can not found. > > Trying to run the program on Debian 11 shows the error > > [prgname]: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found > (required by [prgname]) > > ? ? ? This isn't a Free Pascal issue, this is a "welcome to Linux" issue. Your code, or code that gets included in your software either by Lazarus or Free Pascal as part of their respective libraries, uses functionality that are only available in glibc 2.34 or newer. It won't work on Debian 11, that shipped with glibc 2.31. Without knowing more about what your project tries to do, it's not really possible to tell, if there are any easy solutions to get around this, apart from upgrading the target system... Charlie From elmar at haneke.de Wed Jun 3 11:53:05 2026 From: elmar at haneke.de (Elmar Haneke) Date: Wed, 3 Jun 2026 11:53:05 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <3310278.XIfvXXk0ta@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> Message-ID: 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. Am 03.06.26 um 11:36 schrieb Rainer Stratmann via fpc-pascal: > The freepascal program is compiled on Debian 13. > Lazarus: 4.0 > Freepascal Version: I can not found. > > Trying to run the program on Debian 11 shows the error > > [prgname]: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found > (required by [prgname]) > > ? ? ? > > > _______________________________________________ > fpc-pascal maillist -fpc-pascal at lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal -- Mit freundlichen Gr??en Elmar Haneke =========================================================== |Dr. Elmar Haneke Tel: +49-2241-39749-0 | | Fax: +49-2241-39749-30| |Haneke Software WWW:www.haneke.de | |Dr. Elmar und Hubertus Haneke Mail:elmar at haneke.de | |Johannesstra?e 41 | |53721 Siegburg USt-IdNr. DE 123387209| =========================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From XHajT03 at hajny.biz Wed Jun 3 12:47:42 2026 From: XHajT03 at hajny.biz (Tomas Hajny) Date: Wed, 03 Jun 2026 12:47:42 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <2a1b1c31-993b-ee5e-c26f-91c3533e11c7@scenergy.dfmk.hu> References: <3310278.XIfvXXk0ta@debian1-3> <2a1b1c31-993b-ee5e-c26f-91c3533e11c7@scenergy.dfmk.hu> Message-ID: On 2026-06-03 12:10, Karoly Balogh via fpc-pascal wrote: > Hi, > > On Wed, 3 Jun 2026, Rainer Stratmann via fpc-pascal wrote: > >> The freepascal program is compiled on Debian 13. >> Lazarus: 4.0 >> Freepascal Version: I can not found. >> >> Trying to run the program on Debian 11 shows the error >> >> [prgname]: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not >> found >> (required by [prgname]) >> >> ? ? ? > > This isn't a Free Pascal issue, this is a "welcome to Linux" issue. > > Your code, or code that gets included in your software either by > Lazarus > or Free Pascal as part of their respective libraries, uses > functionality > that are only available in glibc 2.34 or newer. It won't work on Debian > 11, that shipped with glibc 2.31. > > Without knowing more about what your project tries to do, it's not > really > possible to tell, if there are any easy solutions to get around this, > apart from upgrading the target system... ...or compiling on the lowest version you intend to support, or creating programs not using libc (which is possible with FPC even when targetting Linux, but with limitations which make this theoretical option impossible for Lazarus applications). Tomas From rainerstratmann at t-online.de Wed Jun 3 14:00:45 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 14:00:45 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: References: <3310278.XIfvXXk0ta@debian1-3> Message-ID: <2623047.eeyEu47dXS@debian1-3> 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. 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. > Am 03.06.26 um 11:36 schrieb Rainer Stratmann via fpc-pascal: > > The freepascal program is compiled on Debian 13. > > Lazarus: 4.0 > > Freepascal Version: I can not found. > > > > Trying to run the program on Debian 11 shows the error > > > > [prgname]: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found > > (required by [prgname]) > > > > ? ? ? > > > > > > _______________________________________________ > > fpc-pascal maillist -fpc-pascal at lists.freepascal.org > > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > > -- > Mit freundlichen Gr??en > > Elmar Haneke > > =========================================================== > > |Dr. Elmar Haneke Tel: +49-2241-39749-0 | > | > | Fax: +49-2241-39749-30| > | > |Haneke Software WWW:www.haneke.de | > |Dr. Elmar und Hubertus Haneke Mail:elmar at haneke.de | > |Johannesstra?e 41 | > |53721 Siegburg USt-IdNr. DE 123387209| > > =========================================================== From XHajT03 at hajny.biz Wed Jun 3 14:23:51 2026 From: XHajT03 at hajny.biz (Tomas Hajny) Date: Wed, 03 Jun 2026 14:23:51 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <2623047.eeyEu47dXS@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <2623047.eeyEu47dXS@debian1-3> Message-ID: <893a4f12f4f3667254383dd006b8a4de@hajny.biz> On 2026-06-03 14:00, Rainer Stratmann via fpc-pascal wrote: > 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. > > 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. What kind of application is that - is it a Lazarus (GUI) application, or you just use Lazarus as your IDE? Is it a multi-threaded application? Tomas > >> Am 03.06.26 um 11:36 schrieb Rainer Stratmann via fpc-pascal: >> > The freepascal program is compiled on Debian 13. >> > Lazarus: 4.0 >> > Freepascal Version: I can not found. >> > >> > Trying to run the program on Debian 11 shows the error >> > >> > [prgname]: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found >> > (required by [prgname]) >> > >> > ? ? ? From rainerstratmann at t-online.de Wed Jun 3 14:59:11 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 14:59:11 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <893a4f12f4f3667254383dd006b8a4de@hajny.biz> References: <3310278.XIfvXXk0ta@debian1-3> <2623047.eeyEu47dXS@debian1-3> <893a4f12f4f3667254383dd006b8a4de@hajny.biz> Message-ID: <1992428.o13VeqxpG7@debian1-3> > What kind of application is that - is it a Lazarus (GUI) application, or > you just use Lazarus as your IDE? Is it a multi-threaded application? > > Tomas No GUI on more than 100 Computers (except on the compiling Computer, which runs fine), I use the Framebuffer to set the Pixel directly. 800 x 600 Pixel Screen. No multi-threaded application. Just use Lazarus as the IDE. On the compiling Computer on KDE the 800 x 600 screen is copied frequently into an X Window. There the X Libraries are load at runtime dynamically. It runs all fine. When there is no KDE (more than 100 computers outside) then there is a simple, plain Linux without any GUI. I use the openssl and libcrypto library load at runtime dynamically. I think that should be ok and has nothing to do with this issue. Compiled on Debian 13 in a KDE environment, runs fine. Debian 13 (without KDE) runs fine Debian 11 (without KDE) does not work as already described. Debian 12 (without KDE) works. Can I put an older libc.so.6 somewhere and say fpc that it should use that library for compiling? From XHajT03 at hajny.biz Wed Jun 3 15:53:18 2026 From: XHajT03 at hajny.biz (Tomas Hajny) Date: Wed, 03 Jun 2026 15:53:18 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <1992428.o13VeqxpG7@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <2623047.eeyEu47dXS@debian1-3> <893a4f12f4f3667254383dd006b8a4de@hajny.biz> <1992428.o13VeqxpG7@debian1-3> Message-ID: On 2026-06-03 14:59, Rainer Stratmann via fpc-pascal wrote: >> What kind of application is that - is it a Lazarus (GUI) application, >> or >> you just use Lazarus as your IDE? Is it a multi-threaded application? >> >> Tomas > > No GUI on more than 100 Computers (except on the compiling Computer, > which > runs fine), I use the Framebuffer to set the Pixel directly. 800 x 600 > Pixel > Screen. > No multi-threaded application. > Just use Lazarus as the IDE. > > On the compiling Computer on KDE the 800 x 600 screen is copied > frequently > into an X Window. There the X Libraries are load at runtime > dynamically. It > runs all fine. > > When there is no KDE (more than 100 computers outside) then there is a > simple, > plain Linux without any GUI. > > I use the openssl and libcrypto library load at runtime dynamically. > I think that should be ok and has nothing to do with this issue. > > Compiled on Debian 13 in a KDE environment, runs fine. > Debian 13 (without KDE) runs fine > Debian 11 (without KDE) does not work as already described. > Debian 12 (without KDE) works. > > Can I put an older libc.so.6 somewhere and say fpc that it should use > that > library for compiling? The question is - do you really need to use libc at all then? Tomas From rainerstratmann at t-online.de Wed Jun 3 15:57:04 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 15:57:04 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <893a4f12f4f3667254383dd006b8a4de@hajny.biz> References: <3310278.XIfvXXk0ta@debian1-3> <2623047.eeyEu47dXS@debian1-3> <893a4f12f4f3667254383dd006b8a4de@hajny.biz> Message-ID: <1793873.t8KioaNaBV@debian1-3> > What kind of application is that - is it a Lazarus (GUI) application, or > you just use Lazarus as your IDE? Is it a multi-threaded application? > > Tomas A very simple writeln( 'hello' ); works! I have to search what causes the error in my (huge) software. https://forum.lazarus.freepascal.org/index.php?topic=38069.0 Comment: August 26, 2017, 07:18:24 pm Library libc usage and unit libc usage are totally different subjects. Unit libc is deprecated for a long time (since it is basically an one off header for a 15+ old libc), library libc not. May be this is the issue. From XHajT03 at hajny.biz Wed Jun 3 16:42:08 2026 From: XHajT03 at hajny.biz (Tomas Hajny) Date: Wed, 03 Jun 2026 16:42:08 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <1793873.t8KioaNaBV@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <2623047.eeyEu47dXS@debian1-3> <893a4f12f4f3667254383dd006b8a4de@hajny.biz> <1793873.t8KioaNaBV@debian1-3> Message-ID: On 2026-06-03 15:57, Rainer Stratmann via fpc-pascal wrote: >> What kind of application is that - is it a Lazarus (GUI) application, >> or >> you just use Lazarus as your IDE? Is it a multi-threaded application? >> >> Tomas > > A very simple > > writeln( 'hello' ); > > works! > > I have to search what causes the error in my (huge) software. > > > https://forum.lazarus.freepascal.org/index.php?topic=38069.0 > > Comment: August 26, 2017, 07:18:24 pm > > Library libc usage and unit libc usage are totally different subjects. > Unit > libc is deprecated for a long time (since it is basically an one off > header for > a 15+ old libc), library libc not. > > May be this is the issue. I assume that you don't use this deprecated unit libc, do you? However, AFAIK, Lazarus adds a couple of units like cwstrings, cthreads, etc., to applications automatically, and these imply use of libc.so even without using unit libc. Unit cwstrings may be relevant for working with UnicodeStrings - does your application use UnicodeStrings / WideStrings? If not, you might be able to remove that dependency. If you use them, you might still try using unit fpwidestring instead. Tomas From rainerstratmann at t-online.de Wed Jun 3 16:52:02 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 16:52:02 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: References: <3310278.XIfvXXk0ta@debian1-3> <1793873.t8KioaNaBV@debian1-3> Message-ID: <2484088.yOcIigHTQD@debian1-3> > I assume that you don't use this deprecated unit libc, do you? However, > AFAIK, Lazarus adds a couple of units like cwstrings, cthreads, etc., to > applications automatically, and these imply use of libc.so even without > using unit libc. Unit cwstrings may be relevant for working with > UnicodeStrings - does your application use UnicodeStrings / WideStrings? > If not, you might be able to remove that dependency. If you use them, > you might still try using unit fpwidestring instead. > > Tomas By now unit libc I can not find on the fly. Units cwstrings, cthreads, UnicodeStrings, etc. I don't use. Most things I write by myself, except the ssl library and the crypto library. I have to test step by step what causes the issue. The same huge (more than 100 units, mostly self written) Program in 32 Bit works perfect as I mentioned already. From warren.postma at gmail.com Wed Jun 3 16:55:39 2026 From: warren.postma at gmail.com (Warren Postma) Date: Wed, 3 Jun 2026 07:55:39 -0700 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <2484088.yOcIigHTQD@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <1793873.t8KioaNaBV@debian1-3> <2484088.yOcIigHTQD@debian1-3> Message-ID: Obvious question was Debian 11, version 'GLIBC_2.34' could be compiled from source or installed via a backports repo for debian 11, did OP try that? On Wed, Jun 3, 2026 at 7:52?AM Rainer Stratmann via fpc-pascal < fpc-pascal at lists.freepascal.org> wrote: > > I assume that you don't use this deprecated unit libc, do you? However, > > AFAIK, Lazarus adds a couple of units like cwstrings, cthreads, etc., to > > applications automatically, and these imply use of libc.so even without > > using unit libc. Unit cwstrings may be relevant for working with > > UnicodeStrings - does your application use UnicodeStrings / WideStrings? > > If not, you might be able to remove that dependency. If you use them, > > you might still try using unit fpwidestring instead. > > > > Tomas > > By now unit libc I can not find on the fly. > > Units cwstrings, cthreads, UnicodeStrings, etc. I don't use. > > Most things I write by myself, except the ssl library and the crypto > library. > > I have to test step by step what causes the issue. > > The same huge (more than 100 units, mostly self written) Program in 32 Bit > works perfect as I mentioned already. > > > _______________________________________________ > fpc-pascal maillist - fpc-pascal at lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -------------- next part -------------- An HTML attachment was scrubbed... URL: From XHajT03 at hajny.biz Wed Jun 3 17:04:54 2026 From: XHajT03 at hajny.biz (Tomas Hajny) Date: Wed, 03 Jun 2026 17:04:54 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: References: <3310278.XIfvXXk0ta@debian1-3> <1793873.t8KioaNaBV@debian1-3> <2484088.yOcIigHTQD@debian1-3> Message-ID: <5d9558c5013d9c3631402868de7155f8@hajny.biz> On 2026-06-03 16:55, Warren Postma via fpc-pascal wrote: > Obvious question was Debian 11, > version 'GLIBC_2.34' could be compiled from source or installed via a > backports repo for debian 11, did OP try that? That potential solution isn't very practical if the issue appears on a machine owned by someone else than the OP (in particular someone using the program provided by OP)... Tomas From rainerstratmann at t-online.de Wed Jun 3 17:10:02 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 17:10:02 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: References: <3310278.XIfvXXk0ta@debian1-3> <2484088.yOcIigHTQD@debian1-3> Message-ID: <8948060.tgxHHm8MSg@debian1-3> Am Mittwoch, 3. Juni 2026, 16:55:39 CEST schrieb Warren Postma via fpc-pascal: > Obvious question was Debian 11, > version 'GLIBC_2.34' could be compiled from source or installed via a > backports repo for debian 11, did OP try that? No, how does it work exactly? I think this is not easy. Searching for "debian 11 backports glibc_2.34" gives no easy solution, but a bunch of sites with the same problem. > > > On Wed, Jun 3, 2026 at 7:52?AM Rainer Stratmann via fpc-pascal < > > fpc-pascal at lists.freepascal.org> wrote: > > > I assume that you don't use this deprecated unit libc, do you? However, > > > AFAIK, Lazarus adds a couple of units like cwstrings, cthreads, etc., to > > > applications automatically, and these imply use of libc.so even without > > > using unit libc. Unit cwstrings may be relevant for working with > > > UnicodeStrings - does your application use UnicodeStrings / WideStrings? > > > If not, you might be able to remove that dependency. If you use them, > > > you might still try using unit fpwidestring instead. > > > > > > Tomas > > > > By now unit libc I can not find on the fly. > > > > Units cwstrings, cthreads, UnicodeStrings, etc. I don't use. > > > > Most things I write by myself, except the ssl library and the crypto > > library. > > > > I have to test step by step what causes the issue. > > > > The same huge (more than 100 units, mostly self written) Program in 32 Bit > > works perfect as I mentioned already. > > > > > > _______________________________________________ > > fpc-pascal maillist - fpc-pascal at lists.freepascal.org > > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal From rainerstratmann at t-online.de Wed Jun 3 17:13:47 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 17:13:47 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <5d9558c5013d9c3631402868de7155f8@hajny.biz> References: <3310278.XIfvXXk0ta@debian1-3> <5d9558c5013d9c3631402868de7155f8@hajny.biz> Message-ID: <8948061.j6TGfFzxZp@debian1-3> > That potential solution isn't very practical if the issue appears on a > machine owned by someone else than the OP (in particular someone using > the program provided by OP)... > > Tomas The software runs in root mode. It is more or less the only user software that runs on the computer. Nevertheless, it is probably not practicable. From warren.postma at gmail.com Wed Jun 3 17:16:24 2026 From: warren.postma at gmail.com (Warren Postma) Date: Wed, 3 Jun 2026 08:16:24 -0700 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <5d9558c5013d9c3631402868de7155f8@hajny.biz> References: <3310278.XIfvXXk0ta@debian1-3> <1793873.t8KioaNaBV@debian1-3> <2484088.yOcIigHTQD@debian1-3> <5d9558c5013d9c3631402868de7155f8@hajny.biz> Message-ID: On Wed, Jun 3, 2026 at 8:05?AM Tomas Hajny via fpc-pascal < fpc-pascal at lists.freepascal.org> wrote: > > > That potential solution isn't very practical if the issue appears on a > machine owned by someone else than the OP (in particular someone using > the program provided by OP)... Welcome to linux. Google ?containers? and ?snaps? and ?flatpaks? > > Tomas > _______________________________________________ > fpc-pascal maillist - fpc-pascal at lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elmar at haneke.de Wed Jun 3 17:19:18 2026 From: elmar at haneke.de (Elmar Haneke) Date: Wed, 3 Jun 2026 17:19:18 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <2623047.eeyEu47dXS@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <2623047.eeyEu47dXS@debian1-3> Message-ID: <1fbf20ab-f6d0-4ca0-9994-f79b90c81758@haneke.de> 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainerstratmann at t-online.de Wed Jun 3 19:57:05 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Wed, 03 Jun 2026 19:57:05 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: References: <3310278.XIfvXXk0ta@debian1-3> <1992428.o13VeqxpG7@debian1-3> Message-ID: <1830744.MQdroKqPJe@debian1-3> > > Compiled on Debian 13 in a KDE environment, runs fine. > > Debian 13 (without KDE) runs fine > > Debian 11 (without KDE) does not work as already described. > > Debian 12 (without KDE) works. > > > > Can I put an older libc.so.6 somewhere and say fpc that it should use > > that > > library for compiling? > > The question is - do you really need to use libc at all then? > > Tomas I made a little writeln( 'Hello' ); Testprogram with all units from the big Program. The unit dynlibs causes the issue. If I compile it without dynlibs then it runs. From michael at freepascal.org Wed Jun 3 20:54:13 2026 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 3 Jun 2026 20:54:13 +0200 (CEST) Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <1830744.MQdroKqPJe@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <1992428.o13VeqxpG7@debian1-3> <1830744.MQdroKqPJe@debian1-3> Message-ID: <7279f090-a976-d44e-b799-af2bb0cb6be3@freepascal.org> On Wed, 3 Jun 2026, Rainer Stratmann via fpc-pascal wrote: >>> Compiled on Debian 13 in a KDE environment, runs fine. >>> Debian 13 (without KDE) runs fine >>> Debian 11 (without KDE) does not work as already described. >>> Debian 12 (without KDE) works. >>> >>> Can I put an older libc.so.6 somewhere and say fpc that it should use >>> that >>> library for compiling? >> >> The question is - do you really need to use libc at all then? >> >> Tomas > > I made a little writeln( 'Hello' ); Testprogram with all units from the big > Program. > > The unit dynlibs causes the issue. > > If I compile it without dynlibs then it runs. That's not a surprise. Using dynlibs links your program to the C library, which is needed to load other C dynamic libraries. So as soon as you use it, your program depends on the C library, and you need to deal with C library versions. Michael. From rainerstratmann at t-online.de Thu Jun 4 22:52:46 2026 From: rainerstratmann at t-online.de (Rainer Stratmann) Date: Thu, 04 Jun 2026 22:52:46 +0200 Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <7279f090-a976-d44e-b799-af2bb0cb6be3@freepascal.org> References: <3310278.XIfvXXk0ta@debian1-3> <1830744.MQdroKqPJe@debian1-3> <7279f090-a976-d44e-b799-af2bb0cb6be3@freepascal.org> Message-ID: <4879204.VILWOVtXDM@debian1-3> > Using dynlibs links your program to the C library, which is needed to load > other C dynamic libraries. > > So as soon as you use it, your program depends on the C library, and you > need to deal with C library versions. > > Michael. Is it possible to put an older libc in an own directory and tell the compiler to link to it? From michael at freepascal.org Mon Jun 8 21:18:03 2026 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 8 Jun 2026 21:18:03 +0200 (CEST) Subject: [fpc-pascal] libc error on older Linux In-Reply-To: <4879204.VILWOVtXDM@debian1-3> References: <3310278.XIfvXXk0ta@debian1-3> <1830744.MQdroKqPJe@debian1-3> <7279f090-a976-d44e-b799-af2bb0cb6be3@freepascal.org> <4879204.VILWOVtXDM@debian1-3> Message-ID: On Thu, 4 Jun 2026, Rainer Stratmann via fpc-pascal wrote: >> Using dynlibs links your program to the C library, which is needed to load >> other C dynamic libraries. >> >> So as soon as you use it, your program depends on the C library, and you >> need to deal with C library versions. >> >> Michael. > > Is it possible to put an older libc in an own directory and tell the compiler > to link to it? I suppose that by manipulating the linker search path to an older version, you can do it. We do it with Delphi at work, no reason why FPC would not be able to do it. Michael. From nc-gaertnma at netcologne.de Thu Jun 11 08:00:34 2026 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 11 Jun 2026 08:00:34 +0200 Subject: [fpc-pascal] Lazarus Release 4.8 Message-ID: The Lazarus team is glad to announce the release of Lazarus 4.8. This is a bugfix release and was built with FPC 3.2.2, and FPC 3.2.4RC1 for macOS. Here is the list of changes for Lazarus and Free Pascal: https://wiki.lazarus.freepascal.org/Lazarus_4.0_release_notes https://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 4.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_4/ The release is available for download here: https://download.lazarus-ide.org/ Choose your CPU, OS, distro and then the "Lazarus 4.8" directory. Checksums for the files: https://www.lazarus-ide.org/index.php?page=checksums#4_8 Minimum requirements: Windows: 2k, 32 or 64bit, Qt, Qt5, Qt6 (64bit only) FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, Qt6.2 for qt6, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, Qt and Qt5 (32 or 64bit), Qt6 (64bit only). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_4_8 Download mirrors: https://sourceforge.net/projects/lazarus/files/ ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias From adriaan at adriaan.biz Thu Jun 11 08:57:43 2026 From: adriaan at adriaan.biz (Adriaan van Os) Date: Thu, 11 Jun 2026 06:57:43 +0000 (UTC) Subject: [fpc-pascal] Non blocking file IO Message-ID: <0f0b833b-34c1-41ff-8dfb-0efc3bfe2c0d@adriaan.biz> How do I know, without blocking, if there are characters available on text input ? The text input was opened with AssignStream (and exists aside the calling program's standard input). Regards, Adriaan van Os -------------- next part -------------- An HTML attachment was scrubbed... URL: