-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl 7.87.0 breaks zabbix' use of curl_easy_setopt #10148
Labels
Comments
/cc @monnerat |
Another work-around is to define |
Thanks, |
Confirmed. A tentative PR comes soon. |
monnerat
added a commit
to monnerat/curl
that referenced
this issue
Dec 23, 2022
As expressions can have side effects, evaluate only once. To enable deprecation reporting only once, get rid of the __typeof__ use to define the local temporary variable and use the target type (CURLoption/CURLINFO). This also avoids multiple reports on type conflicts (if some) by the curlcheck_* macros. Note that CURLOPT_* and CURLINFO_* symbols may be deprecated, but not their values: a curl_easy_setopt call with an integer constant as option will never report a deprecation. Reported-by: Thomas Klausner Fixes curl#10148
algitbot
pushed a commit
to alpinelinux/aports
that referenced
this issue
Jan 12, 2023
algitbot
pushed a commit
to alpinelinux/aports
that referenced
this issue
Jan 12, 2023
bell-sw
pushed a commit
to bell-sw/alpaquita-aports
that referenced
this issue
Mar 16, 2023
[ commit f3e6f81620c2d24dc6ad0e7bd1fae057d3422bc3 ] curl/curl#10146 curl/curl#10148
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
Compile zabbix-5.0.17 after updating curl from 7.86.0 to 7.87.0.
zabbix uses the following piece of code to set options:
i.e. it sets a variable for the value it passes to have better error messages if one of them fails by using that variable, in a compact way.
This code broke with the recent deprecation macro changes. zabbix now fails to compile with:
Perhaps there's a way to write the deprecation macro that doesn't break zabbix' code?
(My workaround was to remove the 'opt' assignments.)
I expected the following
zabbix to still build.
curl/libcurl version
operating system
NetBSD 9.99.106/amd64, but I don't think that's relevant here, this is with gcc 10.4.0 and will most probably happen on other platforms as well.
The text was updated successfully, but these errors were encountered: