-
Patch request
-
Resolution: Won't fix
-
Critical
-
None
-
6.0.12
-
None
Steps to reproduce:
- install to system libcurl-devel version 7.87.0
- ./configure --with-libcurl
- make
Result:
x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I../../../../include -I/usr/include -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/pcre -c -o libsimplesysinfo_a-simple.o `test -f 'simple.c' || echo './'`simple.c In file included from /usr/include/curl/curl.h:3195, from ../../../../include/sysinc.h:389, from ../../../../include/zbxtypes.h:23, from ../../../../include/module.h:23, from simple.h:23, from simple.c:20: simple.c: In function 'check_https': simple.c:180:65: error: invalid use of void expression 180 | if (CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_USERAGENT, "Zabbix " ZABBIX_VERSION)) || | ^ simple.c:181:69: error: invalid use of void expression 181 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_URL, https_host)) || | ^ simple.c:182:69: error: invalid use of void expression 182 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_PORT, (long)port)) || | ^ simple.c:183:69: error: invalid use of void expression 183 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_NOBODY, 1L)) || | ^ simple.c:184:69: error: invalid use of void expression 184 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_SSL_VERIFYPEER, 0L)) || | ^ simple.c:185:69: error: invalid use of void expression 185 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_SSL_VERIFYHOST, 0L)) || | ^ simple.c:186:69: error: invalid use of void expression 186 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_TIMEOUT, (long)timeout)) || | ^ simple.c:187:69: error: invalid use of void expression 187 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = ZBX_CURLOPT_ACCEPT_ENCODING, ""))) | ^ simple.c:196:73: error: invalid use of void expression 196 | if (CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_INTERFACE, CONFIG_SOURCE_IP))) | ^ make[4]: *** [Makefile:499: libsimplesysinfo_a-simple.o] Error 1 make[4]: Leaving directory '/usr/src/RPM/BUILD/zabbix-6.0.12/src/libs/zbxsysinfo/simple' make[3]: *** [Makefile:690: all-recursive] Error 1 make[3]: Leaving directory '/usr/src/RPM/BUILD/zabbix-6.0.12/src/libs/zbxsysinfo' make[2]: *** [Makefile:561: all-recursive] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/zabbix-6.0.12/src/libs' make[1]: *** [Makefile:510: all-recursive] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/zabbix-6.0.12/src' make: *** [Makefile:546: all-recursive] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/zabbix-6.0.12'
- depends on
-
ZBX-22343 Moving away from deprecated cURL handler option use
- Closed