FTBFS due to an upstream bug
Description:
xml.c: In function ‘zbx_xml_to_json’:
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))
| ^~~~~~~~~~~~~~~~~~
xml.c:743:44: note: each undeclared identifier is reported only once for each function it appears in
xml.c: In function ‘zbx_json_to_xml’:
xml.c:955:47: error: ‘XML_DEFAULT_VERSION’ undeclared (first use in this function)
955 | if (NULL == (doc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION)))
| ^~~~~~~~~~~~~~~~~~~
xml.c:957:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
957 | if (NULL != (pErr = xmlGetLastError()))
| ^
It is a bug in zabbix, and seems to still exist in v6.4.9. Same issue and solution here.
Additional info:
- package version(s): 6.4.8-2
- link to upstream bug report, if any: https://support.zabbix.com/browse/ZBX-23738
Steps to reproduce:
extra-x86_64-build