Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-07-21
01:30 • Ticket [584123ffff] Patch to fully stub enable Thread packag status still Cl... artifact: 3c279e9ae5 user: mdejong
2002-07-20
18:43 • Ticket [584123ffff]: 6 changes artifact: c5ab8d6c9f user: vasiljevic
18:28 • Ticket [584123ffff]: 6 changes artifact: 3989e06d2e user: mdejong
18:12 • Closed ticket [584123ffff]. artifact: 39cc7ed426 user: vasiljevic
12:58 • Ticket [584123ffff]: 4 changes artifact: a0e023ca02 user: mdejong
12:58 • Add attachment tcl_stub_checker.c to ticket [584123ffffffffff|584123fff... artifact: bfec10e171 user: mdejong
12:57 • Ticket [584123ffff] Patch to fully stub enable Thread packag status still Op... artifact: 50c39c25e7 user: mdejong
12:57 • Add attachment empty.patch to ticket [584123ffff] artifact: 4dd777e122 user: mdejong
05:57 • New ticket [584123ffff] Patch to fully stub enable Thread packag. artifact: 1b182154cd user: mdejong

Patch to fully stub enable Thread packag

Closed584123ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-20 05:57:37
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.
mdejongplain2002-07-20 12:57:37
File Added - 27431: empty.patch
mdejongplain2002-07-20 12:58:48
File Added - 27432: tcl_stub_checker.c
vasiljevicplain2002-07-20 18:12:35
Logged In: YES 
user_id=95086

Updated in HEAD. 
Thanks!
mdejongplain2002-07-20 18:28:27
Logged In: YES 
user_id=90858

Humm, you did not use the ChangeLog entry
I sent in. Since mine was more descriptive,
I went ahead and put it into the ChangeLog.
vasiljevicplain2002-07-20 18:43:34
Logged In: YES 
user_id=95086

Oh, sorry, I somehow missed that. 
But where did you leave the ChangeLog message?
I was not able to find it. Or am I really blind?
mdejongplain2002-07-21 01:30:18
Logged In: YES 
user_id=90858

ChangeLog entries are typically included in the
patch file, right at the top.
Log in (anonymous is fine) to add a comment.

Attachments: