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:
- tcl_stub_checker.c [download] added by mdejong on 2002-07-20 12:58:48. [details]
- empty.patch [download] added by mdejong on 2002-07-20 12:57:37. [details]