http://bugs.winehq.org/show_bug.cgi?id=30980
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com
--- Comment #4 from François Gouget fgouget@codeweavers.com 2012-07-28 02:22:30 CDT --- Just in case anyone is interested...
I have built updated mingw-w64-i686-dev and mingw-w64-x86-64-dev packages for Debian with the fix for bug 30980.
These are the packages one would use to cross-compile Wine to Windows PE executables, typically to produce 32 and 64 bit Windows Winetest binaries.
Note that I had to add a couple of patches to get Wine to compile: * crtdefs.h uses wchar_t but does not define it which was causing trouble depending on the order of the includes in the source. * One of the _mingw.h includes was causing trouble. Replacing it with a crtdefs.h include like the others fixed the issue. There is still a ton of these so I'm not sure these packages are a full fix. But Wine compiles at least.
You'll find the modified packages there: * http://fgouget.free.fr/tmp/mingw-w64/mingw-w64-i686-dev_2.0.3-2_all.deb http://fgouget.free.fr/tmp/mingw-w64/mingw-w64-x86-64-dev_2.0.3-2_all.deb
Packages to generate 32 and 64 bit PE binaries respectively. The other packages in the suite are unmodified so grab them from your usual Debian repository.
* http://fgouget.free.fr/tmp/mingw-w64/mingw-w64_2.0.3-2.debian.tar.gz http://fgouget.free.fr/tmp/mingw-w64/mingw-w64_2.0.3.orig.tar.gz
The package source in case you need to rebuild them.
* http://fgouget.free.fr/tmp/mingw-w64/wine1.patch http://fgouget.free.fr/tmp/mingw-w64/wine2.patch
The two extra patches I applied, the first one based on Jacek's r5227 SVN MinGW commit.