Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4f11549c7da744b470d7a9917d9479a370d864fb
Ticket: 218130ffffffffffffffffffffffffffffffffff
TclpUnloadFile called, if initProc isn't found
User & Date: nobody on 2000-10-26 00:53:29
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2006 RFE
    Version: 8.1
    SubmitDate: '1999-05-07'
    LastModified: '2000-04-03'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: Linux
    OSVersion: debian-Linux 2.2.6
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-03'
    
    
    Name:
    Johannes Zellner
    
    Extensions:
    blt (frequently), expect, itcl & co (frequently), occasionally: tix, dp
    
    DesiredBehavior:
    in the new 8.1 generic/tclLoad.c the function TclpUnloadFile is called,
        if the initProc isn't found. This makes it impossible to load shared
        libs which were not intended to be used from tcl.
        Example: I use a small extension, which links the gnu readline to tcl.
        This needs of course the libreadline.so but also the libcurses.so or
        libtermcap.so to be loaded. (It worked pretty nice up to 8.0.5.)
    
    Patch:
    To solve this problem we'd need only to remove a single line from the
    generic/tclLoad.c. I've put a patch to
    http://www.zellner.org/tcl/tcl8.1-tclLoad.c.patch
    
    PatchFiles:
    generic/tclLoad.c
    
    
    
    This isn't a problem when I used the Tcl readline extension with
    8.3 (which still has that line of code).  The linker should
    make the proper associations at link-time, not relying on Tcl.
    
    There is another RFE to generically allow opening any sort of
    library, which is an interesting idea, but for another purpose. 
    -- 04/03/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "TclpUnloadFile called, if initProc isn't found"
  11. type changed to: "Bug"