http://bugs.winehq.org/show_bug.cgi?id=26177
Summary: Compilation of dlls/msxml3 fails on CentOS 3 Product: Wine Version: 1.3.14 Platform: x86 OS/Version: Linux Status: NEW Severity: blocker Priority: P2 Component: msxml3 AssignedTo: wine-bugs@winehq.org ReportedBy: arethusa26@gmail.com
When compiling Wine within a CentOS 3 virtual machine, make aborts with:
make[1]: Entering directory `/home/arethusa/wine-1.3.14/dlls/msxml3' gcc -c -I. -I. -I../../include -I../../include -I/usr/include/libxml2 -I/usr/include/libxml2 -D__WINESRC__ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -g -O2 -o attribute.o attribute.c In file included from attribute.c:32: msxml_private.h:221: syntax error before "xmlErrorLevel" msxml_private.h:221: warning: function declaration isn't a prototype msxml_private.h:222: syntax error before "xmlErrorPtr" msxml_private.h:222: warning: function declaration isn't a prototype make[1]: *** [attribute.o] Error 1 make[1]: Leaving directory `/home/arethusa/wine-1.3.14/dlls/msxml3' make: *** [dlls/msxml3] Error 2
yum reports the system installation of libxml2 as:
Name : libxml2 Arch : i386 Version: 2.5.10 Release: 15
http://bugs.winehq.org/show_bug.cgi?id=26177
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2011-02-20 05:12:26 CST --- Try to define xmlErrorLevel and xmlErrorPtr locally in msxml_private.h header to test if it's the only one stopper. Looks like we don't really need them to be from libxml2, cause they're used only for internal helpers. So if this old version support SAX error callback it could even work as is.
Anyway 2.5.10 is 7.5 years old, we need to build on it of course, but runtime behaviour could be disappointing.
http://bugs.winehq.org/show_bug.cgi?id=26177
--- Comment #2 from Andrew Nguyen arethusa26@gmail.com 2011-02-20 06:24:51 CST --- Created an attachment (id=33363) --> (http://bugs.winehq.org/attachment.cgi?id=33363) msxml3 build failure messages
There's a large slew of complaints related to the msxml3 SAX functions, which is attached. I wonder if it would be easier to dodge the compilation issue by checking for sufficiently new functionality.
http://bugs.winehq.org/show_bug.cgi?id=26177
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2011-02-20 06:38:50 CST --- I don't know if it's possible to make it usable on this version:
--- domdoc.c:53:28: libxml/xmlsave.h: No such file or directory domdoc.c:54:25: libxml/SAX2.h: No such file or directory ---
We rely on that to save (to stream or string xml) and SAX2 handler is what we're using now to mask some parsing issues and output error messages. I don't think it's reasonable to try to build on it at all, so my opinion is to skip build on systems without those headers - better to include this check to HAVE_LIBXML2 even, with readable messages to configure log.
http://bugs.winehq.org/show_bug.cgi?id=26177
--- Comment #4 from Andrew Nguyen arethusa26@gmail.com 2011-02-21 00:44:07 CST --- Created an attachment (id=33385) --> (http://bugs.winehq.org/attachment.cgi?id=33385) configure: Check for additional libxml2 headers to reject inadequate libxml2 versions.
Would something like this do the trick? I'll go ahead and send it in if there aren't any problems.
http://bugs.winehq.org/show_bug.cgi?id=26177
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com 2011-02-21 02:43:43 CST --- Yes, I think it's fine.
http://bugs.winehq.org/show_bug.cgi?id=26177
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com 2011-02-21 14:42:03 CST --- Fixed 6097f2faf174c30a6c3893d4a72ad7bfb9acbd70 ?
http://bugs.winehq.org/show_bug.cgi?id=26177
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #7 from Andrew Nguyen arethusa26@gmail.com 2011-02-21 14:44:08 CST --- Yes, I'll go ahead and mark this fixed.
http://bugs.winehq.org/show_bug.cgi?id=26177
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2011-03-04 12:35:21 CST --- Closing bugs fixed in 1.3.15.