Recent

Author Topic: GLIBC_2.34 and pas2js  (Read 301 times)

benohb

  • Full Member
  • ***
  • Posts: 218
GLIBC_2.34 and pas2js
« on: October 05, 2024, 10:44:03 pm »
Code: Pascal  [Select][+][-]
  1. /pas2js: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./pas2js)
Without mentioning what you know
I  running pas2js  (bin) on Ubuntu 20.04

There are many stable versions of Linux that are still supported for years
that have not reached this version of glibc library
I thought that building the executable on free Pascal would be based on the oldest possible library !!

TRon

  • Hero Member
  • *****
  • Posts: 3510
Re: GLIBC_2.34 and pas2js
« Reply #1 on: October 05, 2024, 10:48:38 pm »
I thought that building the executable on free Pascal would be based on the oldest possible library !!
It depends on the system where the executable was build. You can blame linux devs for that. Nuf said about that topic in these forums already (you can search for that).
This tagline is powered by AI

Fred vS

  • Hero Member
  • *****
  • Posts: 3407
    • StrumPract is the musicians best friend
Re: GLIBC_2.34 and pas2js
« Reply #2 on: October 05, 2024, 11:30:46 pm »
I thought that building the executable on free Pascal would be based on the oldest possible library !!
Free Pascal prefers to let the linker choose the signed symbol table to assign to each glibc method. So it depends on the system that linked the program. And hopefully this table is compatible with the original glib2.5.5 table used by fpc.
In your case the table glibc.2.34 was not yet part of your libc.so.6.
If fpc assigned each glibc methods with the table it has been using since the beginning (glibc.2.5.5.) this would not be a problem.
So far fpc has been lucky, the glibc.2.34 table assigned by the linker is still compatible with table glibc.2.5.5.
But what's next?
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

benohb

  • Full Member
  • ***
  • Posts: 218
Re: GLIBC_2.34 and pas2js
« Reply #3 on: October 06, 2024, 10:48:29 pm »
It's getting annoying... even script-based programs like Python are having problems.
Thank you all

Fred vS

  • Hero Member
  • *****
  • Posts: 3407
    • StrumPract is the musicians best friend
Re: GLIBC_2.34 and pas2js
« Reply #4 on: October 06, 2024, 11:07:09 pm »
Yes, it is indeed very sad, few devs know how to deal with glibc signed tables.

If you want to use a pas2js binary from fpc 3.2.2 (or 3.2.4) compiled with glibc2.2.5 table, you may use the one in /tools/ from there (after unzipped it of course).

 

« Last Edit: October 06, 2024, 11:17:46 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018