Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 202e2a87d02cd049a9fd3aee347a1c2442c4078c
Ticket: 611108ffffffffffffffffffffffffffffffffff
LD_LIBRARY_PATH no longer used
User & Date: jkbonfield on 2002-09-18 14:11:38
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. 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).
    
    
    
  4. foundin changed to: "obsolete: 8.4.0"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jkbonfield"
  9. subsystem changed to: "40. Dynamic Loading"
  10. title changed to: "LD_LIBRARY_PATH no longer used"
  11. type changed to: "Bug"