-
Problem report
-
Resolution: Fixed
-
Major
-
6.4.8
-
None
-
Linux x86/64
-
Sprint 106 (Nov 2023), Sprint 107 (Dec 2023)
-
2
Bud fails on:
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/zabbix-6.4.8/x86_64-redhat-linux-gnu-mysql/src/libs/zbxxml' /usr/bin/gcc -DHAVE_CONFIG_H -I../../../../include/common -I../../../../include -I../../../../include -I../../../include/common -I/usr/include/libxml2 -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 -c -o libzbxxml_a-xml.o `test -f 'xml.c' || echo '../../../../src/libs/zbxxml/'`xml.c ../../../../src/libs/zbxxml/xml.c: In function ‘zbx_query_xpath’: ../../../../src/libs/zbxxml/xml.c:288:28: warning: implicit declaration of function ‘xmlReadMemory’; did you mean ‘xmlInitMemory’? [-Wimplicit-function-declaration] 288 | if (NULL == (doc = xmlReadMemory(value->data.str, strlen(value->data.str), "noname.xml", NULL, 0))) | ^~~~~~~~~~~~~ | xmlInitMemory ../../../../src/libs/zbxxml/xml.c:288:26: warning: assignment to ‘xmlDoc *’ {aka ‘struct _xmlDoc *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 288 | if (NULL == (doc = xmlReadMemory(value->data.str, strlen(value->data.str), "noname.xml", NULL, 0))) | ^ ../../../../src/libs/zbxxml/xml.c:290:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 290 | if (NULL != (pErr = xmlGetLastError())) | ^ ../../../../src/libs/zbxxml/xml.c:301:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 301 | if (NULL != (pErr = xmlGetLastError())) | ^ ../../../../src/libs/zbxxml/xml.c: In function ‘zbx_open_xml’: ../../../../src/libs/zbxxml/xml.c:643:31: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 643 | if (NULL == (*xml_doc = xmlReadMemory(data, strlen(data), "noname.xml", NULL, options))) | ^ ../../../../src/libs/zbxxml/xml.c:645:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 645 | if (NULL != (pErr = xmlGetLastError())) | ^ ../../../../src/libs/zbxxml/xml.c: In function ‘zbx_check_xml_memory’: ../../../../src/libs/zbxxml/xml.c:701:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 701 | if (NULL != (pErr = xmlGetLastError())) | ^ ../../../../src/libs/zbxxml/xml.c: In function ‘zbx_xml_to_json’: ../../../../src/libs/zbxxml/xml.c:743:44: error: ‘XML_PARSE_NOBLANKS’ undeclared (first use in this function) 743 | if (FAIL == zbx_open_xml(xml_data, XML_PARSE_NOBLANKS, -1, (void **)&doc, (void **)&node, errmsg)) | ^~~~~~~~~~~~~~~~~~ ../../../../src/libs/zbxxml/xml.c:743:44: note: each undeclared identifier is reported only once for each function it appears in ../../../../src/libs/zbxxml/xml.c: In function ‘zbx_json_to_xml’: ../../../../src/libs/zbxxml/xml.c:955:47: error: ‘XML_DEFAULT_VERSION’ undeclared (first use in this function) 955 | if (NULL == (doc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION))) | ^~~~~~~~~~~~~~~~~~~ ../../../../src/libs/zbxxml/xml.c:957:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 957 | if (NULL != (pErr = xmlGetLastError())) | ^ ../../../../src/libs/zbxxml/xml.c: In function ‘zbx_xml_xpath_check’: ../../../../src/libs/zbxxml/xml.c:1057:41: warning: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types] 1057 | xmlSetStructuredErrorFunc(&err, &libxml_handle_error_xpath_check); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)} In file included from /usr/include/libxml2/libxml/xpath.h:26, from ../../../../src/libs/zbxxml/xml.c:29: /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); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ make[3]: *** [Makefile:516: libzbxxml_a-xml.o] Error 1