RE: [xml] Compiling 2.3.7
- From: Igor Zlatkovic <izlatkovic daenet de>
- To: xml gnome org
- Subject: RE: [xml] Compiling 2.3.7
- Date: Fri, 27 Apr 2001 16:01:40 +0200
Hello there.
1) Occurrences of "xmlXPathFreeNodeSetList" that are undefined when
"LIBXML_XPATH_ENABLED" on debugxml.c
[...]
Nilo
The offending function was called in debugXML.c few times without checking
if XPath was enabled. If XPath happened to be disabled, you get unresolved
externals at link time. Here is a patch against debugXML.c from 2.3.7.
Cheers
Igor
-----------------------------------
*** libxml2-2.3.7.orig\debugxml.c Sun Apr 22 2001 04:35:06 AM
--- libxml2-2.3.7\debugxml.c Fri Apr 27 2001 03:29:03 PM
***************
*** 1722,1729 ****
--- 1723,1731 ----
"%s is an XSLT value tree\n", arg);
break;
+ #ifdef LIBXML_XPATH_ENABLED
xmlXPathFreeNodeSetList(list);
+ #endif
} else {
xmlGenericError(xmlGenericErrorContext,
"%s: no such node\n", arg);
***************
*** 1786,1793 ****
--- 1789,1797 ----
"%s is an XSLT value tree\n", arg);
break;
+ #ifdef LIBXML_XPATH_ENABLED
xmlXPathFreeNodeSetList(list);
+ #endif
} else {
xmlGenericError(xmlGenericErrorContext,
"%s: no such node\n", arg);
***************
*** 1854,1861 ****
--- 1859,1867 ----
"%s is an XSLT value tree\n", arg);
break;
+ #ifdef LIBXML_XPATH_ENABLED
xmlXPathFreeNodeSetList(list);
+ #endif
} else {
xmlGenericError(xmlGenericErrorContext,
"%s: no such node\n", arg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]