Artifacts Associated With Ticket 217893
Ticket change [ca61af88e8] (rid 95336) by nobody on 2000-10-26 00:45:32:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2489 RFE Version: 8.2b1 SubmitDate: '1999-08-03' LastModified: '1999-12-09' Severity: SER Status: Closed Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 2517 OS: Windows NT OSVersion: 4.0 sp5 Machine: X86 FixedDate: '2000-10-25' ClosedDate: '1999-12-09' Name: David Gravereaux Comments: Create a Stubs table for your own extension. Then make another extension based from the first using it's Stub table. Then make a shell for that one and look closely at the architecture. Stubs falls to pieces at level 2. Removing the implicit link to tclxx.dll for the shell will solve this completely. DesiredBehavior: The use of Stubs tables in extensions has a limited growth. I recently worked on [incr Tcl] giving it's own Stubs table so I could use it in 8.1+ and discovered a very bad architecure problem that needs attention. When using a custom Stubs table to create a second extension, a shell cannot be created because of a circular dependency around Tcl_PkgRequireEx. The shell itself is linked to the tclXX.dll as an import for implicit linking at load-time. The problem is that the <pkg>StubsLib.c (of the first extension) was properly compiled with -DUSE_TCL_STUBS so the second extension could use it's functions. Yet, when linking a shell, there is no tclStubsPtr variable that the redefine of Tcl_PkgRequireEx can resolve to. Nor is it shown in tclAppInit.c (the shell template) how this situation is supposed to be managed. If shells are not supposed to use custom Stubs tables and link as an import, then ALL extensions will have to reside in Tcl's bin directory. If shells are to use custom Stubs tables (and they sure should for the benifits), then a solution to the circularity problem of how to handle the Tcl_PkgRequireEx call for the extension's <pkg>stubs.lib should be looked into. Compiling the first's <pkg>StubLib.c without the USE_TCL_STUBS define just for the shell link would work, but this still leads back to method that shells are connected to tcl as being incorrect for growth. Personally, I'm in favor of a dynamic loading mechanism so that tclsh uses the Tcl Stubs table. - foundin initialized to: "obsolete: 8.2b1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "shells and custom Stubs tables"
- type initialized to: "Bug"
Ticket change [134cd7bfe8] (rid 124189) by welch on 2000-10-26 08:09:11:
- closedate changed to: "2000-10-26T01:09:11"
- closer changed to: "welch"
- priority changed to: "3 Low"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [1fa4010225] (rid 91182) by dgp on 2001-04-14 02:02:55:
- closedate changed to: "2001-04-13T19:02:55"
- closer changed to: "dgp"
- subsystem changed to: "39. Package Manager"