https://bugs.winehq.org/show_bug.cgi?id=52606
Bug ID: 52606 Summary: build on Cygwin fails: error: ‘CP_UTF8’ undeclared (in libs/xml2) Product: Wine Version: 7.3 Hardware: x86-64 OS: Windows Status: UNCONFIRMED Severity: blocker Priority: P2 Component: msxml3 Assignee: wine-bugs@winehq.org Reporter: saulius2@gmail.com
(This is continuation from the bug 52374)
After faking l3codeca.acm, make then fails in libs/xml2.
MB_ERR_INVALID_CHARS is undeclared here too. Also declaration of MultiByteToWideChar() is implicit:
--- snip --- gcc -c -o libs/xml2/xmlIO.o libs/xml2/xmlIO.c -Ilibs/xml2 -Iinclude -Iinclude/msvcrt -I./libs/xml2/include \ -DLIBXML_STATIC -DHAVE_VA_COPY -D_UCRT -D__WINE_PE_BUILD -pipe -fcf-protection=none \ -fno-stack-protector -fno-strict-aliasing -Wno-packed-not-aligned -gdwarf-4 \ -fno-omit-frame-pointer -fasynchronous-unwind-tables -D_WIN32 -fno-builtin -fshort-wchar \ -Wno-format -g -O2 libs/xml2/xmlIO.c: In function ‘__xmlIOWin32UTF8ToWChar’: libs/xml2/xmlIO.c:207:13: warning: implicit declaration of function ‘MultiByteToWideChar’ [-Wimplicit-function-declaration] 207 | MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, u8String, | ^~~~~~~~~~~~~~~~~~~ libs/xml2/xmlIO.c:207:33: error: ‘CP_UTF8’ undeclared (first use in this function) 207 | MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, u8String, | ^~~~~~~ libs/xml2/xmlIO.c:207:33: note: each undeclared identifier is reported only once for each function it appears in libs/xml2/xmlIO.c:207:42: error: ‘MB_ERR_INVALID_CHARS’ undeclared (first use in this function); did you mean ‘XML_ERR_INVALID_CHAR’? 207 | MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, u8String, | ^~~~~~~~~~~~~~~~~~~~ | XML_ERR_INVALID_CHAR make: *** [Makefile:154168: libs/xml2/xmlIO.o] Error 1 --- snip ---
If I fake this object file, it leads to dlls/msxml3/msxml3.dll build failure.
https://bugs.winehq.org/show_bug.cgi?id=52606
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P4
https://bugs.winehq.org/show_bug.cgi?id=52606
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|build on Cygwin fails: |build on Cygwin fails, |error: ‘CP_UTF8’ undeclared |error: ‘CP_UTF8’ undeclared |(in libs/xml2) |(in libs/xml2)