Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74e36d9d0cfd9f9869da3503f7b8d87d51a9fb4b
Ticket: 219140ffffffffffffffffffffffffffffffffff
patch for dynamic linking /HPUX / TCL8.0.3
User & Date: kennykb on 2001-02-16 04:30:15
Changes

  1. icomment:
    I question whether this patch goes quite far enough.
    
    Assume for the sake of argument that the user does "load foo.sl".
    
    We certainly want to add DYNAMIC_PATH to the flags so that the SHLIB_PATH is used to search for libraries that are referenced from within "foo.sl".  That's what the patch does (once we merge the changes so that the flags are BIND_DEFERRED | BIND_VERBOSE | DYNAMIC_PATH).
    
    But do we really want to search the SHLIB_PATH for the original "foo.sl" ?  The documentation of the "load" command says that it accepts a filename, and the "filename" man page is pretty clear about what Tcl's conventions are for filenames.  I'd think that rather than searching SHLIB_PATH, the initial load should go only after the working directory if the path name is relative.  We could achieve this by prepending the working directory name to any relative path that gets passed to TclpLoadFile before handing it off to shl_load.
    
    Otherwise, I think it's practically certain that somewhere down the road, some user will do "load foo.sl" with a "foo.sl" in the working directory, but a SHLIB_PATH that doesn't contain '.', and submit a bug that it didn't load or loaded the wrong version.
    
    Any comments from the HPUX users?
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"