After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 608716 - relaxng.c operands have incompatible types
relaxng.c operands have incompatible types
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: relaxng
2.7.6
Other Solaris
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2010-02-01 19:24 UTC by Kevin Braun
Modified: 2019-01-30 11:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kevin Braun 2010-02-01 19:24:15 UTC
I ran into this building on Solaris 10:

cc -D_GNU_SOURCE -errtags=yes  -O  -DXML_STATIC -DHAVE_LIBXML2_CONFIG_H -DXML_NS
 -o relaxng.o -DHAVE_STDINT_H  -I../../libxml2src -I../../libxml2src/include  -c
 -I../../libxml2src -I../../libxml2src/include  ../../libxml2src/relaxng.c
"../../libxml2src/relaxng.c", line 5372: operands have incompatible types:
         pointer to char ":" pointer to const unsigned char
"../../libxml2src/relaxng.c", line 5372: warning: argument #5 is incompatible wi
th prototype:
        prototype: pointer to const unsigned char : "../../libxml2src/relaxng.c"
, line 510
        argument : pointer to char (E_ARG_INCOMPATIBLE_WITH_ARG)
"../../libxml2src/relaxng.c", line 9462: warning: argument #3 is incompatible wi
th prototype:
        prototype: pointer to const unsigned char : "../../libxml2src/relaxng.c"
, line 2347
        argument : pointer to char (E_ARG_INCOMPATIBLE_WITH_ARG)
cc: acomp failed for ../../libxml2src/relaxng.c


I fixed it as follows:
5372,5373c5370
<                    (node == NULL ? "nothing" : node->name), NULL);
<         return (NULL);
---
>                    (node == NULL ? BAD_CAST "nothing" : node->name), NULL); return (NULL);
9462,9464c9459,9460
<                     VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, "noname");
<                 } else {
<                     VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, cur->name);
---
>                     VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, BAD_CAST "noname");
>                 } else { VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, cur->name);
Comment 1 Nick Wellnhofer 2019-01-30 11:14:41 UTC
This was fixed in 2010 with:

https://gitlab.gnome.org/GNOME/libxml2/commit/a7a6a4b2f39b6bc2973eed8b0fb7cf917a171487