Am Freitag, 5. August 2005 09:05 schrieben Sie:
current cvs does not compile for me. Im on SuSE 9.0
In Gentoo you need to create link: /usr/include/libxml -> /usr/include/libxml2/libxml
Please try the attached fix, and let me know if it works...
Also check your config.log is as follows:
bash-3.00$ grep ac_cv_lib_xml2_xmlReadIO config.log ac_cv_lib_xml2_xmlReadIO=yes
I guess it will be "no", as some older versions of libxml2 don't have xmlReadIO.
thanks,
Mike
Hello Mike, after removing the link /usr/include/libxml my config.log has ac_cv_lib_xml2_xmlReadIO=no the patch fixes the problem with the missing header but compiling fails still with: gcc -c -I. -I../../../wine/dlls/msxml3 -I../../include -I../../../wine/include -D__WINESRC__ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o element.o ../../../wine/dlls/msxml3/element.c ../../../wine/dlls/msxml3/element.c:45: error: parse error before "xmlDocPtr" ../../../wine/dlls/msxml3/element.c:45: Warnung: no semicolon at end of struct or union ../../../wine/dlls/msxml3/element.c:46: Warnung: type defaults to `int' in declaration of `domelem' ../../../wine/dlls/msxml3/element.c:46: Warnung: data definition has no type or storage class ../../../wine/dlls/msxml3/element.c:48: error: parse error before '*' token ../../../wine/dlls/msxml3/element.c:49: Warnung: return type defaults to `int' ../../../wine/dlls/msxml3/element.c: In function `impl_from_IXMLDOMElement': ../../../wine/dlls/msxml3/element.c:50: error: parse error before ')' token ../../../wine/dlls/msxml3/element.c:50: error: parse error before ')' token ../../../wine/dlls/msxml3/element.c: In function `domelem_AddRef': ../../../wine/dlls/msxml3/element.c:78: error: `This' undeclared (first use in this function) ../../../wine/dlls/msxml3/element.c:78: error: (Each undeclared identifier is reported only once ../../../wine/dlls/msxml3/element.c:78: error: for each function it appears in.) ../../../wine/dlls/msxml3/element.c: In function `domelem_Release': ../../../wine/dlls/msxml3/element.c:85: error: `This' undeclared (first use in this function) ../../../wine/dlls/msxml3/element.c: At top level: ../../../wine/dlls/msxml3/element.c:553: error: parse error before "xmlDocPtr" ../../../wine/dlls/msxml3/element.c: In function `DOMElement_create': ../../../wine/dlls/msxml3/element.c:555: error: `elem' undeclared (first use in this function) ../../../wine/dlls/msxml3/element.c:562: error: `xmldoc' undeclared (first use in this function) ../../../wine/dlls/msxml3/element.c:565: error: `DOMElement' undeclared (first use in this function) make[2]: *** [element.o] Fehler 1 make[2]: Leaving directory `/usr/src/wine/wine-build/dlls/msxml3' make[1]: *** [msxml3] Fehler 2 make[1]: Leaving directory `/usr/src/wine/wine-build/dlls' make: *** [dlls] Fehler 2 Bye Stefan
Hello. Stefan Leichter wrote:
Am Freitag, 5. August 2005 09:05 schrieben Sie:
Hello Mike,
after removing the link /usr/include/libxml
my config.log has ac_cv_lib_xml2_xmlReadIO=no
the patch fixes the problem with the missing header but compiling fails still with:
Attached patch is the correct solution. Changelog: Fixed msxml compilation when libxml is not available.
Jacek Caban wrote:
Hello.
Stefan Leichter wrote:
Am Freitag, 5. August 2005 09:05 schrieben Sie:
Hello Mike,
after removing the link /usr/include/libxml
my config.log has ac_cv_lib_xml2_xmlReadIO=no
the patch fixes the problem with the missing header but compiling fails still with:
Attached patch is the correct solution.
Changelog: Fixed msxml compilation when libxml is not available.
Ops, I forgot to attach the patch... Index: dlls/msxml3/element.c =================================================================== RCS file: /home/wine/wine/dlls/msxml3/element.c,v retrieving revision 1.1 diff -u -p -r1.1 element.c --- dlls/msxml3/element.c 3 Aug 2005 10:58:47 -0000 1.1 +++ dlls/msxml3/element.c 5 Aug 2005 07:32:04 -0000 @@ -38,6 +38,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml); +#ifdef HAVE_LIBXML2 + typedef struct _domelem { const struct IXMLDOMElementVtbl *lpVtbl; @@ -566,3 +568,5 @@ HRESULT DOMElement_create( IXMLDOMElemen return S_OK; } + +#endif Index: dlls/msxml3/msxml_private.h =================================================================== RCS file: /home/wine/wine/dlls/msxml3/msxml_private.h,v retrieving revision 1.2 diff -u -p -r1.2 msxml_private.h --- dlls/msxml3/msxml_private.h 3 Aug 2005 10:58:47 -0000 1.2 +++ dlls/msxml3/msxml_private.h 5 Aug 2005 07:32:04 -0000 @@ -21,7 +21,7 @@ #ifndef __MSXML_PRIVATE__ #define __MSXML_PRIVATE__ -#ifdef HAVE_LIBXML_PARSER_H +#ifdef HAVE_LIBXML2 #include <libxml/parser.h>
participants (2)
-
Jacek Caban -
Stefan Leichter