Overview
| Artifact ID: | d4ee0e602aa0c0c34d556f0a6079ba79c9f5fedc |
|---|---|
| Ticket: | 3571241fffffffffffffffffffffffffffffffff
_USE_32BIT_TIME_T wrong for 32bit __MINGW32__ |
| User & Date: | earnie on 2013-05-19 22:58:37 |
Changes
- icomment:
The issue is the version of MSVCRT.DLL on the users system. The _USE_32BIT_TIME_T should be set based on the version of MSVCRT.DLL. In other words on XP OS version the time structures for time_t and the stat structures do not work with _USE_32BIT_TIME_T is defined. I'm working to develop some means of an autoconf m4 macro that can be used to determined which MSVCRT.DLL version we have so we know the supporting structures at build time. It will set something like MSVCRT_VERSION to the value of the MSVCRT.DLL version based on MajorLinkerVersion and MinorLinkerVersion obtained from $WINDIR/system32/msvcrt.dll via objdump. The _USE_32BIT_TIME_T will then be obsoleted and replaced by MSVCRT_VERSION. I will default to XP OS for MSVCRT_VERSION when it is not defined. I sent a query to the mingw-users list to find the values represented by the OSes available. The following is the list of values for (MajorLinkerVersion * 100) + MinorLinkerVersion: ME - 600 XP - 710 Vista - ??? Win7 - 900 Win8 - 1010 I'm guessing Vista has the 32bit time_t structures but I don't know yet. I hope to get a VM built soon to find out. Note, that this will cause a backward incompatibility of a binary built on those OS supporting 32bit time_t versus those who do not. The work around for those who do not would be to find the MSVCR##.DLL where ## is >= 80 and copy it to MSVCRT.DLL in a non-standard location and add the non-standard location to the PATH before the Windows directories or copy it into the directories with the TCL binaries. Blame MS for this PITA we feel but they have every right to update the MSVCRT.DLL for each new OS.
- login: "earnie"
- mimetype: "text/plain"
- username: "earnie"