Skip to content
Tcl Source Code History Of Ticket 874302
Login

History Of Ticket 874302

Artifacts Associated With Ticket 874302

  1. Ticket change [f0590dc4b8] (rid 109178) by rcalmbac on 2004-01-10 06:00:58:

    1. assignee initialized to: "stwo"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Ok, this is a tricky one. For Tcl 8.4.5, when building
      the static lib (configure --disable-shared) on Digital
      OSF/1 V4.0, it can happen that a libtcl8.4.so file in a
      system library directory (e.g., from a previous
      installation of an earlier patch release) is picked up
      when linking tclsh and tcltest, instead of the intended
      libtcl8.4.a in the present working directory. This is
      due to the search algorithm used by the OSF/1 link
      editor (quote from "man ld"):
      
        When linking [...], ld searches all library
      directories for the
        shared object library (libx.so). If it cannot find
      the shared object
        library, it again searches all library directories
      for the archive library
        (libx.a).
      
      This is different from the search algorithm of ld on
      Solaris, for instance. In order to ensure that the
      intended library is picked up on OSF/1 not only during
      shared but also during static build, I propose to
      change line 1349 in unix/tcl.m4 from
      
                  LDFLAGS=""
      
      to
      
                  LDFLAGS="-oldstyle_liblookup"
      
      The man page for ld says:
      
        -oldstyle_liblookup
            Cause ld to search each library directory, first
      for the shared object
            library (libx.so) and then for the archive
      library (libx.a).
      
      So, that would be like the search algorithm of ld on
      Solaris.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "rcalmbac"
    9. subsystem initialized to: "53. Configure and Build Tools"
    10. title initialized to:
      prevent picking up wrong lib during static build on OSF/1
      
    11. type initialized to: "Patch"
  2. Ticket change [09d02e98ed] (rid 148529) by dkf on 2016-09-01 16:08:30:

    1. closer changed to: "nobody"
    2. comment changed to:
      Ok, this is a tricky one. For Tcl 8.4.5, when building
      the static lib (configure --disable-shared) on Digital
      OSF/1 V4.0, it can happen that a libtcl8.4.so file in a
      system library directory (e.g., from a previous
      installation of an earlier patch release) is picked up
      when linking tclsh and tcltest, instead of the intended
      libtcl8.4.a in the present working directory. This is
      due to the search algorithm used by the OSF/1 link
      editor (quote from "man ld"):
      
        When linking [...], ld searches all library
      directories for the
        shared object library (libx.so). If it cannot find
      the shared object
        library, it again searches all library directories
      for the archive library
        (libx.a).
      
      This is different from the search algorithm of ld on
      Solaris, for instance. In order to ensure that the
      intended library is picked up on OSF/1 not only during
      shared but also during static build, I propose to
      change line 1349 in unix/tcl.m4 from
      
                  LDFLAGS=""
      
      to
      
                  LDFLAGS="-oldstyle_liblookup"
      
      The man page for ld says:
      
        -oldstyle_liblookup
            Cause ld to search each library directory, first
      for the shared object
            library (libx.so) and then for the archive
      library (libx.a).
      
      So, that would be like the search algorithm of ld on
      Solaris.
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. severity changed to: "Minor"
    6. subsystem changed to: "53. Configuration and Build Tools"