On 7/29/12, Kai Tietz <[email protected]> wrote: > 2012/7/29 Ruben Van Boxem <[email protected]>: >> 2012/7/29 Kai Tietz <[email protected]> >>> >>> 2012/7/29 Ruben Van Boxem <[email protected]>: >>> > Hi, >>> > >>> > Since last week I have a XP64 VM laying around for ... fun. And >>> > compatibility checking and bug hunting obviously. >>> > >>> > I built Clang on Windows 7 x64, and tried running the resultant >>> > executable >>> > from a shared folder in the VM. It failed with the error in the email >>> > subject. >>> > >>> > Is this MinGW-w64's fault? >>> > >>> > Thanks, >>> > >>> > Ruben >>> >>> Well, it isn't mingw-w64's fault IMHO. The issue is that function >>> _chsize_s isn't present in XP's msvcrt. In Vista's and Win7's it is. >>> So it is a failure to use _chsize_s symbol together with >>> msvcrt-runtime on XP. >>> To work-a-round this you can either link against a different >>> runtime-version (but of course you have then to make sure this DLL is >>> present on the Windows host), or you avoid the _chsize_s function. >> >> >> OK. This kind of sucks, but this is MS's fault. LLVM checks for the >> function's presence, and my toolchain has secure crt, so it's present. >> Hmm... Would it be a good idea to just keep using _chsize on MinGW >> platforms >> in this case in the LLVM code? (ie I would submit a patch to that effect) >> >> Ruben > > Well, we could emulate _chsize_s in libmingwex, so that on startup
<rant>Well, I find not just all the use but also the existence of the *_s api to be the paramount of dumbness</rant>, but since they do exist and I don't have godly powers yet, ... > with msvcrt without that symbol an alternative implementation is used > (eg via _chsize). ... then yes we should do something about this one and the likes of it. > Ozkan, JonY? > > Kai > -- O.S. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
