On Thu, May 04, 2006 at 01:08:26PM +0200, Trond Hasle Amundsen wrote:
> 
> 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:

Hi,

I had the same problem on solaris, and was about to submit the attached
patch.  I think it fixes the problem without changing the intent of the
code.

cheers,

Graham

-- 
Graham Bennett
--- libxml2-2.6.24-orig/relaxng.c       2006-04-28 11:34:13.000000000 -0400
+++ libxml2-2.6.24/relaxng.c    2006-05-03 10:16:00.000000000 -0400
@@ -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 ? ctxt->URL : BAD_CAST "schemas"), NULL);
        
         xmlFreeDoc(ctxt->document);
         ctxt->document = NULL;
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to