-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
5.0.42
-
None
-
S24-W32/33
Steps to reproduce:
- just build it using standard build script for Slackware Linux
Result:
make[3]: Entering directory '/tmp/SBo/zabbix-5.0.42/src/libs/zbxserver' cc -DHAVE_CONFIG_H -I. -I../../../include -I../../../src/libs/zbxdbcache -I/usr/include/libxml2 -O2 -fPIC -MT libzbxserver_a-evalfunc.o -MD -MP -MF .deps/lib zbxserver_a-evalfunc.Tpo -c -o libzbxserver_a-evalfunc.o `test -f 'evalfunc.c' || echo './'`evalfunc.c mv -f .deps/libzbxserver_a-evalfunc.Tpo .deps/libzbxserver_a-evalfunc.Po cc -DHAVE_CONFIG_H -I. -I../../../include -I../../../src/libs/zbxdbcache -I/usr/include/libxml2 -O2 -fPIC -MT libzbxserver_a-expression.o -MD -MP -MF .deps/l ibzbxserver_a-expression.Tpo -c -o libzbxserver_a-expression.o `test -f 'expression.c' || echo './'`expression.c expression.c: In function ‘substitute_macros_xml_impl’: expression.c:6386:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 6386 | if (NULL != (pErr = xmlGetLastError())) | ^ expression.c:6405:35: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 6405 | if (NULL != (pErr = xmlGetLastError())) | ^ expression.c: In function ‘xml_xpath_check’: expression.c:6489:41: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types] 6489 | xmlSetStructuredErrorFunc(&err, &libxml_handle_error); | ^~~~~~~~~~~~~~~~~~~~ | | | void (void *, xmlError *) {aka void (void *, struct _xmlError *)} In file included from /usr/include/libxml2/libxml/valid.h:16, from /usr/include/libxml2/libxml/parser.h:20, from expression.c:31: /usr/include/libxml2/libxml/xmlerror.h:905:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (void *, const struct _xmlError *)’} but argument is of type ‘void (void *, xmlError *)’ {aka ‘void (void *, struct _xmlError *)’} 905 | xmlStructuredErrorFunc handler); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
I'll be happy providing additional details. On Slackware 15.0 using gcc 11.2.0 there are no issues.