Skip to content
Tcl Source Code History Of Ticket 219174
Login

History Of Ticket 219174

Artifacts Associated With Ticket 219174

  1. Ticket change [7bef42d039] (rid 96990) by nobody on 2000-10-26 05:02:50:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1841 Bug
      Version: 8.1b3
      SubmitDate: '1999-04-15'
      LastModified: '1999-04-21'
      Severity: LOW
      Status: Assigned
      Submitter: pat
      ChangedBy: redman
      RelatedBugIDs: 1842
      OS: Windows NT
      OSVersion: 4.0 SP3
      Machine: X86
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Jan Nijtmans
      
      
      
      Comments:
      
      The supplied patch does 3 things:
      
          - Change the TCL_STORAGE_CLASS of Tcl_InitStubs to be empty,
      
            in exactly the same was as for Tcl_AppInit(). This prevents
      
            the Tcl_InitStubs function to be exported from tcl81.dll
      
          - Remove the Tcl_InitStubs() call from tclBasic.c (Windows only)
      
          - Remove tclStubLib.obj from the object list.
      
          The result of this is that tcl81.dll is somewhat smaller, and
      
          doesn't export Tcl_InitStubs() any more.
      
      
      
      ReproducibleScript:
      
      Build an extension with -DUSE_TCL_STUBS, and link it with tcl81.lib.
      
          This results in a few unresolved symbols, because on Windows
      
          global variables cannot be exported (without hacking the def-file)
      
      
      
      ObservedBehavior:
      
      Although this is really a bug in Windows, exporting the function
      
          Tcl_StubInit() suggests that linking against the lib-file works.
      
          Therefore I suggest to remove the Tcl_StubInit() function from
      
          tcl81.dll: it doesn't serve any function, except confusing some
      
          users why it is there anyway.
      
      
      
      Patch:
      
      *** generic/tcl.h.origWed Apr 14 22:17:41 1999
      
      --- generic/tcl.hWed Apr 14 22:21:10 1999
      
      ***************
      
      *** 1465,1493 ****
      
        #define TCL_STUB_MAGIC 0xFCA3BACF
      
        
      
        /*
      
      -  * The following function is required to be defined in all stubs aware
      
      -  * extensions.  The function is actually implemented in the stub
      
      -  * library, not the main Tcl library, although there is a trivial
      
      -  * implementation in the main library in case an extension is statically
      
      -  * linked into an application.
      
      -  */
      
      - 
      
      - EXTERN char *Tcl_InitStubs _ANSI_ARGS_((Tcl_Interp *interp,
      
      -     char *version, int exact));
      
      - 
      
      - #ifndef USE_TCL_STUBS
      
      - 
      
      - /*
      
      -  * When not using stubs, make it a macro.
      
      -  */
      
      - 
      
      - #define Tcl_InitStubs(interp, version, exact) \
      
      -     Tcl_PkgRequire(interp, "Tcl", version, exact)
      
      - 
      
      - #endif
      
      - 
      
      - 
      
      - /*
      
         * Include the public function declarations that are accessible via
      
         * the stubs table.
      
         */
      
      --- 1465,1470 ----
      
      ***************
      
      *** 1511,1516 ****
      
      --- 1488,1506 ----
      
        #define TCL_STORAGE_CLASS
      
        
      
        EXTERN intTcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp));
      
      + EXTERN char *Tcl_InitStubs _ANSI_ARGS_((Tcl_Interp *interp,
      
      +     char *version, int exact));
      
      + 
      
      + #ifndef USE_TCL_STUBS
      
      + 
      
      + /*
      
      +  * When not using stubs, make it a macro.
      
      +  */
      
      + 
      
      + #define Tcl_InitStubs(interp, version, exact) \
      
      +     Tcl_PkgRequire(interp, "Tcl", version, exact)
      
      + 
      
      + #endif
      
        
      
        #endif /* RESOURCE_INCLUDED */
      
        
      
      *** generic/tclBasic.c.origWed Apr 14 22:15:47 1999
      
      --- generic/tclBasic.cWed Apr 14 22:17:30 1999
      
      ***************
      
      *** 539,549 ****
      
             */
      
        
      
            Tcl_PkgProvideEx(interp, "Tcl", TCL_VERSION, (ClientData) &tclStubs);
      
      !     
      
        #ifdef Tcl_InitStubs
      
        #undef Tcl_InitStubs
      
        #endif
      
            Tcl_InitStubs(interp, TCL_VERSION, 1);
      
        
      
            return interp;
      
        }
      
      --- 539,551 ----
      
             */
      
        
      
            Tcl_PkgProvideEx(interp, "Tcl", TCL_VERSION, (ClientData) &tclStubs);
      
      ! 
      
      ! #ifndef __WIN32__    
      
        #ifdef Tcl_InitStubs
      
        #undef Tcl_InitStubs
      
        #endif
      
            Tcl_InitStubs(interp, TCL_VERSION, 1);
      
      + #endif
      
        
      
            return interp;
      
        }
      
      *** win/makefile.vc.origWed Apr 14 22:21:20 1999
      
      --- win/makefile.vcWed Apr 14 22:22:47 1999
      
      ***************
      
      *** 183,189 ****
      
        $(TMPDIR)\tclScan.obj \
      
        $(TMPDIR)\tclStringObj.obj \
      
        $(TMPDIR)\tclStubInit.obj \
      
      - $(TMPDIR)\tclStubLib.obj \
      
        $(TMPDIR)\tclThread.obj \
      
        $(TMPDIR)\tclTimer.obj \
      
        $(TMPDIR)\tclUtf.obj \
      
      --- 183,188 ----
      
      
      
      PatchFiles:
      
      tcl.h tclBasic.c makefile.vc
      
      
      
      
      
      4/22/99 - redman - After talking with Scott S., we're going to try another scheme to work around the problem described (exporting the symbols in question and removing the need to use -DUSE_TCL_STUBS).  This really isn't a critical issue and can wait.
      
      
      
    4. foundin initialized to: "obsolete: 8.1b3"
    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: "Tcl_InitStubs() not usable in tcl81.dll"
    11. type initialized to: "Bug"
  2. Ticket change [6a2b8e687f] (rid 128096) by dkf on 2000-11-19 18:45:47:

    1. subsystem changed to: "90. FAQs"
  3. Ticket change [56d843058d] (rid 94393) by dkf on 2001-02-08 21:59:43:

    1. subsystem changed to: "53. Configuration and Build Tools"
  4. Ticket change [1375007976] (rid 124223) by andreas_kupries on 2001-09-08 06:13:41:

    1. assignee changed to: "mdejong"
  5. Ticket change [d55285c75f] (rid 123599) by hobbs on 2002-03-23 04:53:23:

    1. closedate changed to: "2002-03-22T21:53:23"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      I believe this is just way out of date, because things are 
      working ok since 8.2.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"
    8. username: "hobbs"