[xml] Compile error libxml2 2.6.24
- From: Trond Hasle Amundsen <t h amundsen usit uio no>
- To: xml gnome org
- Subject: [xml] Compile error libxml2 2.6.24
- Date: Thu, 04 May 2006 13:08:26 +0200
Hi,
Your newest release has an error in it. When compiling on non-Linux
systems using the OS's native compiler, we get this error:
cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -I/local/include -g -c relaxng.c -KPIC
-DPIC -o .libs/relaxng.o
"relaxng.c", line 7397: operands have incompatible types:
pointer to unsigned char ":" pointer to char
cc: acomp failed for relaxng.c
I've tested on Solaris 8 (sparc), Solaris 10 (i386) and HP-UX 11.23
(Intel Itanium). Same compile error. The following patch fixes this,
but is probably not what you want for a real fix, since it reverts the
function call to that of the previous libxml2 release:
diff -ru src-2.6.24/relaxng.c src-2.6.24-local/relaxng.c
--- src-2.6.24/relaxng.c 2006-04-28 17:34:13.000000000 +0200
+++ src-2.6.24-local/relaxng.c 2006-05-04 12:52:54.000000000 +0200
@@ -7394,7 +7394,7 @@
if (root == NULL) {
xmlRngPErr(ctxt, (xmlNodePtr) doc,
XML_RNGP_EMPTY, "xmlRelaxNGParse: %s is empty\n",
- (ctxt->URL ? ctxt->URL : "schemas"), NULL);
+ ctxt->URL, NULL);
xmlFreeDoc(ctxt->document);
ctxt->document = NULL;
Just a heads up..
Cheers,
--
Trond H. Amundsen <t h amundsen usit uio no>
Center for Information Technology Services, University of Oslo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]