Skip to content
Tcl Source Code History Of Ticket 180810acbe
Login

History Of Ticket 180810acbe

Artifacts Associated With Ticket 180810acbe

  1. Ticket change [eef285105a] (rid 135534) by anonymous on 2013-11-09 16:28:58:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The macro EXCEPTION_REGISTRATION has to be replaced by TCL_EXCEPTION_REGISTRATION in the files tclWin32Dll.c, tclWinChan.c and tclWinFCmd.c
      
      Otherwise make stops with an error.
      
      Alexey Pavlov has created an appropriate patch for Tcl 8.6.1
      
      https://github.com/Alexpux/mingw-builds/blob/master/patches/tcl/tcl-8.6.1-mingwexcept.patch
      
      For a 8.5.15 patch see the lines below:
      
      --- tclWin32Dll.c.orig	2013-08-30 17:58:40.000000000 +0200
      +++ tclWin32Dll.c	2013-11-08 08:55:00.742333794 +0100
      @@ -53,14 +53,14 @@ static int platformId;		/* Running under
        * them by creating an EXCEPTION_REGISTRATION within the activation record.
        */
       
      -typedef struct EXCEPTION_REGISTRATION {
      -    struct EXCEPTION_REGISTRATION *link;
      +typedef struct TCL_EXCEPTION_REGISTRATION {
      +    struct TCL_EXCEPTION_REGISTRATION *link;
           EXCEPTION_DISPOSITION (*handler)(
       	    struct _EXCEPTION_RECORD*, void*, struct _CONTEXT*, void*);
           void *ebp;
           void *esp;
           int status;
      -} EXCEPTION_REGISTRATION;
      +} TCL_EXCEPTION_REGISTRATION;
       #endif
       
       /*
      @@ -1086,7 +1086,7 @@ TclWinCPUID(
       
       #   else
       
      -    EXCEPTION_REGISTRATION registration;
      +    TCL_EXCEPTION_REGISTRATION registration;
       
           /*
            * Execute the CPUID instruction with the given index, and store results
      --- tclWinChan.c.orig	2013-08-30 17:58:40.000000000 +0200
      +++ tclWinChan.c	2013-11-08 09:05:57.237807102 +0100
      @@ -127,14 +127,14 @@ static Tcl_ChannelType fileChannelType =
        * them by creating an EXCEPTION_REGISTRATION within the activation record.
        */
       
      -typedef struct EXCEPTION_REGISTRATION {
      -    struct EXCEPTION_REGISTRATION* link;
      +typedef struct TCL_EXCEPTION_REGISTRATION {
      +    struct TCL_EXCEPTION_REGISTRATION *link;
           EXCEPTION_DISPOSITION (*handler)(
       	    struct _EXCEPTION_RECORD*, void*, struct _CONTEXT*, void*);
           void* ebp;
           void* esp;
           int status;
      -} EXCEPTION_REGISTRATION;
      +} TCL_EXCEPTION_REGISTRATION;
       #endif
       
       /*
      @@ -1027,7 +1027,7 @@ Tcl_MakeFileChannel(
       				 * TCL_WRITABLE to indicate file mode. */
       {
       #if defined(HAVE_NO_SEH) && !defined(_WIN64)
      -    EXCEPTION_REGISTRATION registration;
      +    TCL_EXCEPTION_REGISTRATION registration;
       #endif
           char channelName[16 + TCL_INTEGER_SPACE];
           Tcl_Channel channel = NULL;
      --- tclWinFCmd.c.orig	2013-08-30 17:58:40.000000000 +0200
      +++ tclWinFCmd.c	2013-11-08 09:09:19.541771741 +0100
      @@ -72,17 +72,17 @@ CONST TclFileAttrProcs tclpFileAttrProcs
       /*
        * Unlike Borland and Microsoft, we don't register exception handlers by
        * pushing registration records onto the runtime stack. Instead, we register
      - * them by creating an EXCEPTION_REGISTRATION within the activation record.
      + * them by creating an TCL_EXCEPTION_REGISTRATION within the activation record.
        */
       
      -typedef struct EXCEPTION_REGISTRATION {
      -    struct EXCEPTION_REGISTRATION *link;
      +typedef struct TCL_EXCEPTION_REGISTRATION {
      +    struct TCL_EXCEPTION_REGISTRATION *link;
           EXCEPTION_DISPOSITION (*handler)(
       	    struct _EXCEPTION_RECORD *, void *, struct _CONTEXT *, void *);
           void *ebp;
           void *esp;
           int status;
      -} EXCEPTION_REGISTRATION;
      +} TCL_EXCEPTION_REGISTRATION;
       
       #endif
       
      @@ -176,7 +176,7 @@ DoRenameFile(
       				 * (native). */
       {
       #if defined(HAVE_NO_SEH) && !defined(_WIN64)
      -    EXCEPTION_REGISTRATION registration;
      +    TCL_EXCEPTION_REGISTRATION registration;
       #endif
           DWORD srcAttr, dstAttr;
           int retval = -1;
      @@ -568,7 +568,7 @@ DoCopyFile(
           CONST TCHAR *nativeDst)	/* Pathname of file to copy to (native). */
       {
       #if defined(HAVE_NO_SEH) && !defined(_WIN64)
      -    EXCEPTION_REGISTRATION registration;
      +    TCL_EXCEPTION_REGISTRATION registration;
       #endif
           int retval = -1;
      
    5. foundin initialized to: "8.5.15"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "98c5a4b8c6c847840eea2e9bf0d223f33d217646"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "53. Configure and Build Tools"
    15. title initialized to: "Tcl compile error for win build"
    16. type initialized to: "Bug"
  2. Ticket change [80bb81796e] (rid 135536) by dkf on 2013-11-10 20:31:06:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Assigning to someone able to review. (Seems sane to me, but I don't build those files.)
      
    3. login: "dkf"
    4. mimetype: "text/html"
    5. username: "dkf"
  3. Ticket change [bc69978ff3] (rid 135540) by jan.nijtmans on 2013-11-11 12:09:18:

    1. closedate changed to: "2456608.00646216"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Already fixed 5 weeks ago in core-8-5-branch [93a144a3be] and trunk [7488de4f4b]
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"