Overview
| Artifact ID: | 202e2a87d02cd049a9fd3aee347a1c2442c4078c |
|---|---|
| Ticket: | 611108ffffffffffffffffffffffffffffffffff
LD_LIBRARY_PATH no longer used |
| User & Date: | jkbonfield on 2002-09-18 14:11:38 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- comment changed to:
With 8.4.0 (compared to 8.3.1) "load libfred.so" no longer works unless libfred.so is in the current directory. Previously this searched the LD_LIBRARY_PATH on Unix, or PATH on Windows. (The searching is really done by dlopen().) Since the inclusion of Tcl_FS* in 8.4 load now always calls dlopen() with a full pathname, thus preventing the system from searching LD_LIBRARY_PATH. The cause is in TclpDlopen: native = Tcl_FSGetNativePath(pathPtr); handle = dlopen(native, RTLD_NOW | RTLD_GLOBAL); Tcl_GetString(pathPtr) returns "libfred.so", but native is now /some/dir/libfred.so. So removing the Tcl_FSGetNativePath cures this bug (at the extent of breaking much more). I do not know what the proper solution is, but perhaps one way would be to extend load with a -native switch to accept the argument given to it as a native name already (and so it will not need to call Tcl_FSGetNativePath). - foundin changed to: "obsolete: 8.4.0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jkbonfield"
- subsystem changed to: "40. Dynamic Loading"
- title changed to: "LD_LIBRARY_PATH no longer used"
- type changed to: "Bug"