Artifacts Associated With Ticket 219394
Ticket change [d3597e9b6c] (rid 123277) by nobody on 2000-10-26 05:12:19:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "obsolete: 8.3.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "56. LibTomMath"
- title initialized to:
tcl_findLibrary doesn't look in arch specific directory
- type initialized to: "RFE"
Ticket change [af9dcb5f9a] (rid 97847) by dgp on 2001-02-08 08:12:36:
- assignee changed to: "dgp"
- subsystem changed to: "38. Init - Library - Autoload"
Ticket change [26db40ae41] (rid 88420) by dgp on 2001-04-04 04:57:49:
- subsystem changed to: "38. Init - Library - Autoload"
Ticket change [330b955d84] (rid 106516) by dgp on 2001-08-28 07:09:20:
- closedate changed to: "2001-08-28T00:09:20"
- closer changed to: "dgp"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dgp"