http://bugs.winehq.org/show_bug.cgi?id=28519
--- Comment #8 from Carlo Bramini carlo.bramix@libero.it 2011-11-02 10:02:52 CDT --- I confirm that the bug is fixed in current git repository.
However, I must say that I got this problem during compilation:
PATH="../../libs/wine:$PATH" ../../tools/wrc/wrc.exe --nostdinc --po-dir=../../po -I../../../wine-da6363e/dlls/advapi32 -I. -I../../../wine-da6363e/include -I../../include -D__WINESRC__ -D_ADVAPI32_ -o version.res ../../../wine-da6363e/dlls/advapi32/version.rc ../../tools/winegcc/winegcc -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ../../../wine-da6363e/dlls/advapi32/advapi32.spec advapi.o cred.o crypt.o crypt_arc4.o crypt_des.o crypt_lmhash.o crypt_md4.o crypt_md5.o crypt_sha.o eventlog.o lsa.o registry.o security.o service.o svcctl_c.o version.res -o advapi32.dll -lrpcrt4 -Wb,-drpcrt4 ../../libs/port/libwine_port.a /usr/bin/windres: unexpected version string length 68 != 32 + 8 winebuild: /usr/bin/windres.exe failed with status 256 winegcc: ../../tools/winebuild/winebuild.exe failed make[1]: *** [advapi32.dll] Error 2 make[1]: Leaving directory `/home/Carlo/wine/dlls/advapi32' make: *** [dlls/advapi32] Error 2
It seems there is an only solution for compiling successfully WINE: you must uninstall binutils-2.22.51-1 and install the older binutils-2.21.53-2 instead. Don't ask me why. Perhaps this is an useful remark for all people who wants to try compilation in CYGWIN.