Skip to content
Tcl Source Code History Of Ticket 217893
Login

History Of Ticket 217893

Artifacts Associated With Ticket 217893

  1. Ticket change [ca61af88e8] (rid 95336) by nobody on 2000-10-26 00:45:32:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.2b1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "shells and custom Stubs tables"
    11. type initialized to: "Bug"
  2. Ticket change [134cd7bfe8] (rid 124189) by welch on 2000-10-26 08:09:11:

    1. closedate changed to: "2000-10-26T01:09:11"
    2. closer changed to: "welch"
    3. priority changed to: "3 Low"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [1fa4010225] (rid 91182) by dgp on 2001-04-14 02:02:55:

    1. closedate changed to: "2001-04-13T19:02:55"
    2. closer changed to: "dgp"
    3. subsystem changed to: "39. Package Manager"