[Bug 52606] New: build on Cygwin fails: error: ‘CP_UTF8’ undeclared (in libs/xml2)

WineHQ Bugzilla wine-bugs at winehq.org
Mon Feb 28 17:05:29 CST 2022


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 at winehq.org
          Reporter: saulius2 at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list