4.0.0: libvirt-glib is not libxml 2.12.0 ready
Build fails with:
[1/16] Compiling C object libvirt-gconfig/libvirt-gconfig-1.0.so.0.4000.0.p/libvirt-gconfig-object.c.o
FAILED: libvirt-gconfig/libvirt-gconfig-1.0.so.0.4000.0.p/libvirt-gconfig-object.c.o
/usr/bin/gcc -Ilibvirt-gconfig/libvirt-gconfig-1.0.so.0.4000.0.p -Ilibvirt-gconfig -I../libvirt-gconfig -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC '-DLOCALEDIR="/usr/share/locale"' '-DDATADIR="/usr/share"' -DLIBVIRT_GLIB_BUILD -MD -MQ libvirt-gconfig/libvirt-gconfig-1.0.so.0.4000.0.p/libvirt-gconfig-object.c.o -MF libvirt-gconfig/libvirt-gconfig-1.0.so.0.4000.0.p/libvirt-gconfig-object.c.o.d -o libvirt-gconfig/libvirt-gconfig-1.0.so.0.4000.0.p/libvirt-gconfig-object.c.o -c ../libvirt-gconfig/libvirt-gconfig-object.c
In file included from ../libvirt-gconfig/libvirt-gconfig-object.c:28:
/usr/include/libxml2/libxml/relaxng.h:134:50: error: unknown type name ‘xmlDocPtr’; did you mean ‘xmlErrorPtr’?
134 | xmlRelaxNGNewDocParserCtxt (xmlDocPtr doc);
| ^~~~~~~~~
| xmlErrorPtr
/usr/include/libxml2/libxml/relaxng.h:163:50: error: unknown type name ‘FILE’
163 | xmlRelaxNGDump (FILE *output,
| ^~~~
/usr/include/libxml2/libxml/relaxng.h:16:1: note: ‘FILE’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
15 | #include <libxml/xmlstring.h>
+++ |+#include <stdio.h>
16 |
/usr/include/libxml2/libxml/relaxng.h:166:42: error: unknown type name ‘FILE’
166 | xmlRelaxNGDumpTree (FILE * output,
| ^~~~
/usr/include/libxml2/libxml/relaxng.h:166:42: note: ‘FILE’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
/usr/include/libxml2/libxml/relaxng.h:191:50: error: unknown type name ‘xmlDocPtr’; did you mean ‘xmlErrorPtr’?
191 | xmlDocPtr doc);
| ^~~~~~~~~
| xmlErrorPtr
/usr/include/libxml2/libxml/relaxng.h:197:42: error: unknown type name ‘xmlDocPtr’; did you mean ‘xmlErrorPtr’?
197 | xmlDocPtr doc,
| ^~~~~~~~~
| xmlErrorPtr
/usr/include/libxml2/libxml/relaxng.h:198:42: error: unknown type name ‘xmlNodePtr’
198 | xmlNodePtr elem);
| ^~~~~~~~~~
/usr/include/libxml2/libxml/relaxng.h:205:42: error: unknown type name ‘xmlDocPtr’; did you mean ‘xmlErrorPtr’?
205 | xmlDocPtr doc,
| ^~~~~~~~~
| xmlErrorPtr
/usr/include/libxml2/libxml/relaxng.h:206:42: error: unknown type name ‘xmlNodePtr’
206 | xmlNodePtr elem);
| ^~~~~~~~~~
/usr/include/libxml2/libxml/relaxng.h:209:42: error: unknown type name ‘xmlDocPtr’; did you mean ‘xmlErrorPtr’?
209 | xmlDocPtr doc,
| ^~~~~~~~~
| xmlErrorPtr
/usr/include/libxml2/libxml/relaxng.h:210:42: error: unknown type name ‘xmlNodePtr’
210 | xmlNodePtr elem);
| ^~~~~~~~~~
../libvirt-gconfig/libvirt-gconfig-object.c: In function ‘gvir_config_object_validate’:
../libvirt-gconfig/libvirt-gconfig-object.c:200:37: warning: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]
200 | xmlSetStructuredErrorFunc(NULL, gvir_xml_structured_error_nop);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
In file included from /usr/include/libxml2/libxml/relaxng.h:14:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../libvirt-gconfig/libvirt-gconfig-object.c:251:9: warning: implicit declaration of function ‘xmlRelaxNGValidateDoc’; did you mean ‘xmlRelaxNGValidatePushCData’? [-Wimplicit-function-declaration]
251 | if (xmlRelaxNGValidateDoc(rngValid, priv->node->doc) != 0) {
| ^~~~~~~~~~~~~~~~~~~~~
| xmlRelaxNGValidatePushCData
../libvirt-gconfig/libvirt-gconfig-object.c: In function ‘gvir_config_object_set_node_content’:
../libvirt-gconfig/libvirt-gconfig-object.c:575:20: warning: implicit declaration of function ‘xmlEncodeEntitiesReentrant’ [-Wimplicit-function-declaration]
575 | encoded_data = xmlEncodeEntitiesReentrant(node->priv->node->doc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../libvirt-gconfig/libvirt-gconfig-object.c:575:18: warning: assignment to ‘xmlChar *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
575 | encoded_data = xmlEncodeEntitiesReentrant(node->priv->node->doc,
| ^
ninja: build stopped: cannot make progress due to previous errors.
Edited by wuch-g2v1