Skip to content
Tcl Source Code History Of Ticket 3474726
Login

History Of Ticket 3474726

Artifacts Associated With Ticket 3474726

  1. Ticket change [424199338c] (rid 116339) by jeffrw on 2012-01-17 06:36:53:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Windows Vista
      minGW 5.1.4
      
      configure correctly detects that struct _stat32i64 is not available, and compiles tcl and tk properly, because in the relevant windows code, tclWinPort.h is included with flag HAVE_NO_STRUCT_STAT32I64
      
      But when attempting to compile freewrap, in tcl.h, Tcl_StatBuf is defined to be _stat32i64, and this leads to an error.
      
      I can fix this by including tclWinPort.h and adding a define for HAVE_NO_STRUCT_STAT32I64, but since tclWinPort.h is not a member of the installed include directory, I infer this is not the intended solution.
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "jeffrw"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to: "minGW Tcl_StatBuf not defined correctly in tcl.h"
    12. type initialized to: "Bug"
  2. Ticket change [f3da62b2f8] (rid 129795) by nijtmans on 2012-01-18 15:15:35:

    1. assignee changed to: "nijtmans"
    2. closedate changed to: "2012-01-18T08:15:35"
    3. closer changed to: "nijtmans"
    4. icomment:
      
      
      allow_comments - 1
      
      _stat32i64 is supposed to be defined in stat.h, since VS2005, See:
          http://msdn.microsoft.com/en-us/library/14h5k7ff%28v=vs.80%29.aspx
      Before that, this structure was named _stati64, but since VS2005
      the _stati64 definition became dependent on the _USE_32BIT_TIME_T
      macro. We cannot force extensions to set _USE_32BIT_TIME_T,
      therefore the workaround to include the _stat32i64 structure
      in tclWinPort.h if not available elsewhere.
      
      The real solution is to use a mingw version which has a _stat32i64
      definition in sys/stat.h. Another workaround for freewrap could
      be to use the fact that if _USE_32BIT_TIME_T is defined
      that then _stati64 is the same as _stat32i64. So, freewrap
      could use something like (untested!!!):
      
      #define _USE_32BIT_TIME_T
      #include <sys/stat.h>
      #ifndef _stat32i64
      #   define _stat32i64 _stati64
      #endif
      #include <tcl.h>
      
      See bug 3288345 for more details where this problem come from.
      Anyway, it's up to mingw to provide a _stat32i64 definition, or
      up to freewrap to provide a workaround when it wants to support
      a mingw version which lacks _stat32i64
      
      
    5. login: "nijtmans"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "nijtmans"
  3. Ticket change [e70a0d0a7a] (rid 104387) by nijtmans on 2012-01-18 22:33:37:

    1. icomment:
      
      
      File Added - 433380: freewrap.patch
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  4. Add attachment "freewrap.patch" [a4ca6bc845] (rid 110262) by nijtmans on 2012-01-18 22:33:37.

  5. Ticket change [a66957907f] (rid 98596) by nijtmans on 2012-01-18 22:35:24:

    1. icomment:
      Tried the workaround for freewrap, and it works. See attached "freewrap.patch".
      
      At least generic/zvfs.c compiles on win32 with this change, it should not affect other
      platforms.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  6. Ticket change [b1f1adf8e9] (rid 98251) by nijtmans on 2012-01-18 22:35:35:

    1. icomment:
      
      
      allow_comments - 0
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  7. Ticket change [b3b8f3bab5] (rid 124902) by nijtmans on 2012-01-19 19:54:11:

    1. icomment:
      Even though this is not Tcl's fault, there is something we can do to
      make it easier for extensions  to support older mingw versions.
      
      Proposal: change the tcl.h line:
      #         elif (defined(_MSC_VER) && (_MSC_VER < 1400))
      to
      #         elif (defined(_MSC_VER) && (_MSC_VER < 1400)) || defined(_USE_32BIT_TIME_T)
      
      Then extension can simply define _USE_32BIT_TIME_T,
      which makes Tcl use _stati64, which is available in all
      mingw versions. Then the _stat32i64 definition in
      tclWinPort.h is only necessary for cygwin, which makes
      the detection logic unnecessary. It's much simpler,
      both for Tcl and for extensions
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Accepted"
    5. status changed to: "Open"
    6. username: "nijtmans"
  8. Ticket change [fb3fe3209f] (rid 92023) by nijtmans on 2012-01-21 15:36:26:

    1. closedate changed to: "2012-01-21T08:36:26"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      Done as proposed in all open branches.
      
      Extensions which suffer from a mingw version without
      _stat32i64 just have to compile with -D_USE_32BIT_TIME_T,
      then everything will be fine. Then Tcl will use _stati64 in
      stead of _stat32i64, while keeping full binary
      compatibility with VC6.0
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"