Artifacts Associated With Ticket 3474726fffffffff
Ticket change [424199338c] (rid 116339) by jeffrw on 2012-01-17 06:36:53:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.5.11"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jeffrw"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "minGW Tcl_StatBuf not defined correctly in tcl.h"
- type initialized to: "Bug"
Ticket change [f3da62b2f8] (rid 129795) by nijtmans on 2012-01-18 15:15:35:
- assignee changed to: "nijtmans"
- closedate changed to: "2012-01-18T08:15:35"
- closer changed to: "nijtmans"
- 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 - login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "nijtmans"
Ticket change [e70a0d0a7a] (rid 104387) by nijtmans on 2012-01-18 22:33:37:
- icomment:
File Added - 433380: freewrap.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Add attachment "freewrap.patch" [a4ca6bc845] (rid 110262) by nijtmans on 2012-01-18 22:33:37.
Ticket change [a66957907f] (rid 98596) by nijtmans on 2012-01-18 22:35:24:
- 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.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [b1f1adf8e9] (rid 98251) by nijtmans on 2012-01-18 22:35:35:
- icomment:
allow_comments - 0
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [b3b8f3bab5] (rid 124902) by nijtmans on 2012-01-19 19:54:11:
- 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
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Open"
- username: "nijtmans"
- icomment:
Ticket change [fb3fe3209f] (rid 92023) by nijtmans on 2012-01-21 15:36:26:
- closedate changed to: "2012-01-21T08:36:26"
- closer changed to: "nijtmans"
- 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
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"