.
D 2023-04-27T04:37:05.544
J comment To\swhat\sextent\sdoes/should\sTcl\s9.0\sassume/require/enforce\s64-bit\s<tt>time_t</tt>?\r\n\r\nCurrently,\swhen\sI\sbuild\sTcl\s9.0\son\sia32\s(32-bit\sx86)\sLinux,\sit\suses\s32-bit\s<tt>time_t</tt>,\sbut\sthe\stests\scmdAH-24.20.1\sand\scmdAH-24.20.2\sfail\s(rather\sthan\sskip\sas\swith\s8.7;\stimestamp\s3155760000\soverflows\sto\s-1139207296).\sI\scan\salso\sreproduce\sthe\sissue\sin\s[fa128568a597].\s(Maybe\sthe\ssame\swould\shappen\sfor\s32-bit\sARM.)\r\n\r\nI\sread\selsewhere\sthat\sglibc\s2.34\sand\sLinux\skernel\s5.6\ssupport\s64-bit\s<tt>time_t</tt>\son\s32-bit\ssystems\sby\scompiling\swith\s<tt>_FILE_OFFSET_BITS=64</tt>\sand\s<tt>_TIME_BITS=64</tt>\sdefined,\sand\sthat\sfuture\sglibc\smay\seven\sdefine\sthese\sby\sdefault.\sI\stried\sbuilding\sTcl\s9.0\sagain\swith\sthese\sdefined,\sand\sconfirmed\sthat\sdoing\sso\savoids\sthe\soverflow\sissues.\sThis\sapproach\sreportedly\ssupersedes<s>/conflicts</s>\swith\sthe\sapproach\sof\sdefining\s<tt>_LARGEFILE64_SOURCE</tt>,\sas\s<s>proposed</s>\sremoved\sin\sthe\sbug-02b58d5d04\sbranch.\sWould\sit\sbe\sappropriate\sfor\sTcl/Tk\sto\sinstead\sdefine\s<tt>_FILE_OFFSET_BITS=64</tt>\sand\s<tt>_TIME_BITS=64</tt>\sby\sdefault\s(possibly\sbefore\spackage\smanagers\sall\sbegin\sseparately\strying\sto\sdo\sso\sthemselves)?
J login chrstphrchvz
J mimetype text/plain
K d40b9c8503eb4deeaeb01352b2d0937f77624e49
U chrstphrchvz
Z 198238344cce2281cb511967bc1906f6