-
Patch request
-
Resolution: Fixed
-
Major
-
None
-
6.0.0beta1
-
None
-
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL=" https://www.centos.org/ " BUG_REPORT_URL=" https://bugs.centos.org/ " CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
Sprint 83 (Dec 2021)
Steps to reproduce:
- Get zabbix-6.0.0beta1.tar.gz in CentOS 7
- ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-libcurl --with-libxml2
- make
Result:
**
Making all in zbxembed make[3]: Entering directory `/usr/local/src/zabbix-6.0.0beta1/src/libs/zbxembed' depbase=`echo console.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT console.o -MD -MP -MF $depbase.Tpo -c -o console.o console.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo duktape.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT duktape.o -MD -MP -MF $depbase.Tpo -c -o duktape.o duktape.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo embed.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT embed.o -MD -MP -MF $depbase.Tpo -c -o embed.o embed.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo global.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT global.o -MD -MP -MF $depbase.Tpo -c -o global.o global.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo httprequest.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -MT httprequest.o -MD -MP -MF $depbase.Tpo -c -o httprequest.o httprequest.c &&\ mv -f $depbase.Tpo $depbase.Po httprequest.c: In function ‘get_headers_as_arrays’: httprequest.c:653:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int j = 0; j < headers.values_num; j++) ^ httprequest.c:653:3: note: use option -std=c99 or -std=gnu99 to compile your code make[3]: *** [httprequest.o] Error 1 make[3]: Leaving directory `/usr/local/src/zabbix-6.0.0beta1/src/libs/zbxembed' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/zabbix-6.0.0beta1/src/libs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/zabbix-6.0.0beta1/src' make: *** [all-recursive] Error 1
Expected:
pass build
I attach a patch that fix this error. I think, use -std=c99 is one of the solutions but it seems to be different from existing coding format.
- caused by
-
ZBX-19806 HttpRequest getHeaders() returns only last occurrence of multiple header fields with the same name
- Closed