Skip to content
Tcl Source Code Artifact [733e36f2d4]
Login

Artifact [733e36f2d4]

Artifact 733e36f2d4387514f64f5c256895d96cd78d8797:

Ticket change [733e36f2d4] - Ticket [3565485fffffffff|3565485fff] <i>Building vfs with latest Tcl 8.6 and 8.5.12 fails on MinGW</i> status still Closed with 4 other changes by zoro2 on 2012-09-07 20:34:48.
D 2012-09-07T20:34:48
J icomment I\sam\snot\ssure\sthat\sthe\sissue\sis\sclosed.\sI\salso\sread\s#3474726\sand\sit\salso\sseems\srelated.\sMy\ssolution\sdoes\snot\sseem\sgood,\sbut\sI\sthink\scurrent\sstate\sof\sthings\sis\salso\swrong.\n\nTcl\sitself\scompiles\sfine\sbecause\sof\stclWinPort.h\ssetting\s_USE_32BIT_TIME_T\s-\sI\sthink\sit\sshould\seither\snot\scompile\sin\sthe\ssame\sway\sor\sthe\sdefining\sof\s_USE_32BIT_TIME_T\swhen\s#ifndef\s_WIN64\sshould\sbe\sput\sin\stcl.h\sor\sother\spublic\sheader\sfile.\s_USE_32BIT_TIME_T\swas\salso\snot\screated\sfor\smy\stclConfig.sh\n\nPerhaps\sconfigure\sscript\sshould\sdetect\ssuch\scase\s(i.e.\swhich\sexact\sstructure\sshould\sbe\sused\sfor\sTcl_StatBuf)\sand\sadd\san\sappropriate\s-D\sflag\s-\sboth\sto\sTcl\scompilation\sand\sto\stclConfig.sh?\sThen\sextensions\swould\spick\sit\sup\sautomatically.\n\nAlso,\seven\swith\slatest\sMinGW,\s_stat32i64\sis\sonly\sdefined\sif\s#if\s__MSVCRT_VERSION__\s>=\s0x0800.\sBy\sdefault,\sMinGW\sis\scompiled\swith\s__MSVCRT_VERSION__\sset\sto\s0600\s-\sfrom\s_mingw.h:\n\n#ifndef\s__MSVCRT_VERSION__\n/*\s\sHigh\sbyte\sis\sthe\smajor\sversion,\slow\sbyte\sis\sthe\sminor.\s*/\n#\sdefine\s__MSVCRT_VERSION__\s0x0600\n#endif\s\n\nIt\sseems\sweird\sto\sassume\sTcl\scan\sonly\scompile\swith\s__MSVCRT_VERSION__\sset\sto\s0800\s(hence\srequiring\smsvcrt80)\sonly\sto\ssupport\sTcl_StatBuf.\n\nIs\sthere\sa\sreason\swhy\s_USE_32BIT_TIME_T\swhen\s#ifndef\s_WIN64\s(or\ssome\sother\sdefine)\sis\snot\sput\sin\sTcl's\spublic\sheaders?\sThis\swould\sprevent\srequiring\sextensions\sto\smodify\stheir\sconfigure\sscripts\sto\scorrectly\shandle\sTcl_StatBuf.\n\n
J login zoro2
J mimetype text/plain
J username zoro2
K 3565485fffffffffffffffffffffffffffffffff
U zoro2
Z c77f7e6b2951d9b60d8a14f98f2c7cf4