Ticket UUID: | 584123 | |||
Title: | Patch to fully stub enable Thread packag | |||
Type: | Patch | Version: | None | |
Submitter: | mdejong | Created on: | 2002-07-20 05:57:37 | |
Subsystem: | 80. Thread Package | Assigned To: | vasiljevic | |
Priority: | 9 Immediate | Severity: | ||
Status: | Closed | Last Modified: | 2002-07-21 01:30:18 | |
Resolution: | None | Closed By: | mdejong | |
Closed on: | 2002-07-20 18:30:18 | |||
Description: |
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. | |||
User Comments: |
mdejong added on 2002-07-21 01:30:18:
Logged In: YES user_id=90858 ChangeLog entries are typically included in the patch file, right at the top. vasiljevic added on 2002-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? mdejong added on 2002-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. vasiljevic added on 2002-07-20 18:12:35: Logged In: YES user_id=95086 Updated in HEAD. Thanks! mdejong added on 2002-07-20 12:58:48: File Added - 27432: tcl_stub_checker.c mdejong added on 2002-07-20 12:57:37: File Added - 27431: empty.patch |