Skip to content
Tcl Source Code History Of Ticket 219394
Login

History Of Ticket 219394

Artifacts Associated With Ticket 219394

  1. Ticket change [d3597e9b6c] (rid 123277) by nobody on 2000-10-26 05:12:19:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 6180 Bug
      Version: 8.3.2
      SubmitDate: '2000-08-29'
      LastModified: '2000-08-29'
      Severity: LOW
      Status: UnAssn
      Submitter: usman
      ChangedBy: usman
      OS: Linux-Red Hat
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      The tcl_findLibrary procedure looks for a library in positions
      relative to the executable. One of these positions is relative
      to the Tcl library ([info library]). The others are relative to
      the executable itself. The search path relative to the 
      Tcl library does not consider an architecture specific library.
      
      This means that if the executable is copied or linked to a different
      location , extensions will fail to load.
      
      So if Tcl library is here:
      mypath/lib/tcl8.3
      
      The system checks this:
      mypath/lib/<package>
      
      but not this:
      mypath/<arch>/lib/<package>
      
      Symptom is errors that show that tcl_findLibrary failed (but not
      a "can't find package" error):
      
      % ln -s <BUILD>/wish8.3 /tmp/wish
      % /tmp/wish
      % package require vu
      Can't find a usable vu.tcl in the following directories: 
          <BUILD>/lib/vu2.0 /lib/vu2.0 /lib/vu2.0 /library /library /vu2.0/library /vu2.0/library
      
      This probably means that vu wasn't installed properly.
      
      Work around: use aliases instead of symlinks, or set the <EXTENSION>_LIBRARY
      environment variable, which tcl_findLibrary can use.
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "56. LibTomMath"
    10. title initialized to:
      tcl_findLibrary doesn't look in arch specific directory
      
    11. type initialized to: "RFE"
  2. Ticket change [af9dcb5f9a] (rid 97847) by dgp on 2001-02-08 08:12:36:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "38. Init - Library - Autoload"
  3. Ticket change [26db40ae41] (rid 88420) by dgp on 2001-04-04 04:57:49:

    1. subsystem changed to: "38. Init - Library - Autoload"
  4. Ticket change [330b955d84] (rid 106516) by dgp on 2001-08-28 07:09:20:

    1. closedate changed to: "2001-08-28T00:09:20"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      [tcl_findLibrary] exists to serve the extensions that
      are written partly in C and partly in Tcl, such as Tk,
      [incr Tcl], and vu.  The Tcl-coded portion of an
      extension is called the "script library" of that extension.
      [tcl_findLibrary] is intended to find and [source] one
      master file of that script library to load the Tcl-coded
      portion of the extension in the interp.
      
      Notice that the code sought and evaluated by
      [tcl_findLibrary] is architecture-independent Tcl code.
      It makes no sense for [tcl_findLibrary] to go looking
      for Tcl scripts in an architecture-dependent directory.
      They should be installed under the arch-independent
      $prefix, not under $exec_prefix.  For that reason, the
      feature request is rejected.
      
      The problem reported with the "vu" package above
      is a bug in the installation procedures of that package
      installing its script library under exec_prefix
      instead of prefix:
      
      http://sf.net/tracker/index.php?func=detail&aid=455943&group_id=11464&atid=111464
      
      As observed in this request, the workaround for the end
      user of a buggy package like vu in this example is the
      setting of the VU_LIBRARY environment variable.
      
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
    8. username: "dgp"