[ZBX-24755] 5.0.42 build error using GCC 14.1.0 Created: 2024 Jun 29 Updated: 2024 Aug 06 Resolved: 2024 Aug 06 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 5.0.42 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Janis Eisaks | Assignee: | Sergejs Boidenko |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() |
Sprint: | S24-W32/33 |
Description |
Steps to reproduce:
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. |
Comments |
Comment by Edgars Melveris [ 2024 Jun 30 ] |
Hello Jānis! |
Comment by Janis Eisaks [ 2024 Jul 01 ] |
System - Slackware64 current, build sczabbix_server.SlackBuild |
Comment by Janis Eisaks [ 2024 Jul 01 ] |
just a note - with gcc 13.2.0 everything work - freshly tested |
Comment by Janis Eisaks [ 2024 Jul 23 ] |
Any comment on progress? Does it require deep rewrite of the code? |
Comment by Janis Eisaks [ 2024 Jul 23 ] |
Actually - I located the problem: |