The net-analyzer/zabbix fails to compile with curl use flag: simple.c: In function ‘check_https’: simple.c:179:65: error: invalid use of void expression 179 | if (CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_USERAGENT, "Zabbix " ZABBIX_VERSION)) || | ^ simple.c:180:69: error: invalid use of void expression 180 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_URL, https_host)) || | ^ simple.c:181:69: error: invalid use of void expression 181 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_PORT, (long)port)) || | ^ simple.c:182:69: error: invalid use of void expression 182 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_NOBODY, 1L)) || | ^ simple.c:183:69: error: invalid use of void expression 183 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_SSL_VERIFYPEER, 0L)) || | ^ simple.c:184:69: error: invalid use of void expression 184 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_SSL_VERIFYHOST, 0L)) || | ^ simple.c:185:69: error: invalid use of void expression 185 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_TIMEOUT, (long)timeout)) || | ^ simple.c:186:69: error: invalid use of void expression 186 | CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = ZBX_CURLOPT_ACCEPT_ENCODING, ""))) | ^ simple.c:195:73: error: invalid use of void expression 195 | if (CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_INTERFACE, CONFIG_SOURCE_IP))) | Upstream report: https://support.zabbix.com/browse/ZBX-22142 Solution: apply a patch [1] to net-misc/curl-7.87.0 [1] https://github.com/curl/curl/commit/e2aed004302e51cfa5b6ce8c8ab65ef92aa83196 Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2850f811e059bb97e7412d2196b2475fd0b11720 commit 2850f811e059bb97e7412d2196b2475fd0b11720 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-13 05:50:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-13 05:50:53 +0000 net-misc/curl: fix regression causing zabbix build failure Closes: https://bugs.gentoo.org/890587 Signed-off-by: Sam James <sam@gentoo.org> net-misc/curl/curl-7.87.0-r2.ebuild | 302 +++++++++++++++++++++ .../files/curl-7.87.0-typecheck-deprecated.patch | 48 ++++ 2 files changed, 350 insertions(+)
*** Bug 888723 has been marked as a duplicate of this bug. ***