Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890587 - net-analyzer/zabbix-6.2.4[curl]: can't build with net-misc/curl-7.87.0
Summary: net-analyzer/zabbix-6.2.4[curl]: can't build with net-misc/curl-7.87.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 888723 (view as bug list)
Depends on:
Blocks: 888801
  Show dependency tree
 
Reported: 2023-01-12 11:41 UTC by Marco Genasci
Modified: 2023-01-13 15:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2023-01-12 11:41:49 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2023-01-13 05:51:21 UTC
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(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-13 15:19:00 UTC
*** Bug 888723 has been marked as a duplicate of this bug. ***