Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1b182154cdd79b0674d3729cfcb578869ca59d17
Ticket: 584123ffffffffffffffffffffffffffffffffff
Patch to fully stub enable Thread packag
User & Date: mdejong on 2002-07-20 05:57:37
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here is a patch that gets rids of the only
    undefined symbol in the Thread package.
    This is important since the undefined symbol
    makes it *very* difficult to load the Thread
    package into another executable that has
    also loaded Tcl dynamically.
    
    I ran into this problem while testing out
    Tcl Blend. The error message I was seeing
    looked like this:
    
    Exception in thread "main" tcl.lang.TclException:
    couldn't load file
    "/share/tcljava/build/thread/libthread2.4g.so":
    /share/tcljava/build/thread/libthread2.4g.so: undefined
    symbol: tclEmptyStringRep
    
    
    After much poking around and reading of man
    pages for dlopen, I found the problem. The
    Thread package must be self contained in
    order to work correctly. The package already
    takes care of this with a little hack for
    Windows. Thing is, this same hack is also
    needed under Linux. My patch makes that
    change. I am also going to include a testing
    program that I created to test shared lib
    loading using dlopen.
    
  4. foundin changed to: "None"
  5. priority changed to: "9 Immediate"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mdejong"
  9. subsystem changed to: "80. Thread Package"
  10. title changed to: "Patch to fully stub enable Thread packag"
  11. type changed to: "Patch"