Skip to content
Tcl Source Code History Of Ticket 917c4a896a
Login

History Of Ticket 917c4a896a

Artifacts Associated With Ticket 917c4a896a

  1. Ticket change [a0fa9c6f26] (rid 217727) by mbwagner on 2023-09-05 12:55:18:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      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). 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.
      
    5. foundin initialized to: "8.6 and trunk"
    6. is_private initialized to: "0"
    7. login: "mbwagner"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8982a851333466c77485b64f16aa683016dd9fdc"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "mbwagner"
    14. subsystem initialized to: "81. Bundled Packages"
    15. title initialized to:
      Glibc detection broken on Linux for platform::identify
      
    16. type initialized to: "Bug"
  2. Ticket change [863c32ce5e] (rid 217736) by jan.nijtmans on 2023-09-05 15:07:53:

    1. assignee changed to: "aku"
    2. icomment:
      @aku. Andreas, you seem to be most knowledgeable on the "platform" package
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [c9dfaece90] (rid 220554) by mbwagner on 2023-11-24 10:14:04:

    1. comment changed to:
      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.
      
    2. login: "mbwagner"
    3. mimetype: "text/plain"
  4. Ticket change [7d84f1fb94] (rid 220555) by mbwagner on 2023-11-24 10:14:43:

    1. comment changed to:
      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.
      
    2. login: "mbwagner"
    3. mimetype: "text/plain"
  5. Ticket change [9c03026535] (rid 254771) by tomkiti on 2026-07-08 11:43:30:

    1. icomment:
      `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.
      
    2. login: "tomkiti"
    3. mimetype: "text/x-markdown"
    4. username: "tomkiti"
  6. Ticket change [bed28e46e7] (rid 254788) by jan.nijtmans on 2026-07-08 15:31:59:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Proposed fix [a1a9fbb461cb05be|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!
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "Fixed"
    6. status changed to: "Pending"
  7. Ticket change [4b3edd5193] (rid 254809) by jan.nijtmans on 2026-07-09 10:35:57:

    1. closedate changed to: "2461230.9416352776"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed [b1449b8027baf146|here]
      
      Thanks for the report, and for the fix suggestion.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"