|
2026-07-14
| ||
| 08:22 | Backout fix for [917c4a896a]. Let the improved fix land on 9.1, it can always be backported later check-in: ba64662cf0 user: jan.nijtmans tags: core-9-0-branch | |
|
2026-07-09
| ||
| 10:35 | • Closed ticket [917c4a896a]: Glibc detection broken on Linux for platform::identi... artifact: 4b3edd5193 user: jan.nijtmans | |
| 10:34 | Fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in: b1449b8027 user: jan.nijtmans tags: trunk, main | |
| 10:31 | Fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in: 5265738a55 user: jan.nijtmans tags: core-9-0-branch | |
|
2026-07-08
| ||
| 15:31 | • Pending ticket [917c4a896a]: Glibc detection broken on Linux for platform::ident... artifact: bed28e46e7 user: jan.nijtmans | |
| 15:06 | Attempt to fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in: a1a9fbb461 user: jan.nijtmans tags: bug-917c4a896a | |
| 15:05 | Attempt to fix [917c4a896a]: Glibc detection broken on Linux for platform::identify closed check-in: 11a0e866f0 user: jan.nijtmans tags: mistake | |
| 11:43 | • Ticket [917c4a896a] Glibc detection broken on Linux for platform::identify s... artifact: 9c03026535 user: tomkiti | |
|
2023-11-24
| ||
| 10:14 | • Ticket [917c4a896a]: 3 changes artifact: 7d84f1fb94 user: mbwagner | |
| 10:14 | • Ticket [917c4a896a]: 3 changes artifact: c9dfaece90 user: mbwagner | |
|
2023-09-05
| ||
| 15:07 | • Ticket [917c4a896a]: 4 changes artifact: 863c32ce5e user: jan.nijtmans | |
| 12:55 | • New ticket [917c4a896a]. artifact: a0fa9c6f26 user: mbwagner | |
Glibc detection broken on Linux for platform::identify
The bundled platform package fails to find the version of glibc on the ubuntu:22.04 Docker image.
Steps to reproduce:
docker run -it ubuntu:22.04
apt-get update && apt-get install -y tcl
tclsh
package require platform
platform::identify
Output is:
linux-unknown-x86_64
Expected output:
linux-glibc2.35-x86_64
This problem also occurs with the latest trunk, and is probably also present in a non-Docker Ubuntu install (~~but I could not test that~~, edit: confirmed on non-Docker Ubuntu 22.04 as well). I looked at the code and the root cause seems to be missing execute permissions on libc.so.6. Currently the most popular way of finding the libc version seems to be to call ldd --version instead of the .so file directly. This outputs the libc version (among other stuff) on all Linux distros including MUSL-based ones, which would make it very easy to extend the code to detect MUSL versions too.
ba64662cf0Backout fix for [917c4a896a]. Let the improved fix land on 9.1, it can always be backported later check-in2026-07-14 08:22:09b1449b8027Fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in2026-07-09 10:34:475265738a55Fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in2026-07-09 10:31:38a1a9fbb461Attempt to fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in2026-07-08 15:06:5111a0e866f0Attempt to fix [917c4a896a]: Glibc detection broken on Linux for platform::identify check-in2026-07-08 15:05:00
@aku. Andreas, you seem to be most knowledgeable on the "platform" package
platform::identify is also broken on RHEL 9 and 10. ::platform::LibcVersion uses the glob pattern libc*, which on RHEL 9 and 10 returns libc.so first, which is a text file. Changing the pattern to libc.so.* fixes it on my systems.
Proposed fix [here], based on the idea of running "ldd --version". Can be simplified further, but it appears to work.
Please report whether this works for you.
Thanks!
Fixed [here]
Thanks for the report, and for the fix suggestion.