Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

cannot build on debian 12 error: 'CURLOPT_PROTOCOLS' is deprecated #97

Open
xevilstar opened this issue Mar 14, 2023 · 0 comments
Open

Comments

@xevilstar
Copy link

FAILED: libblock-curl.a.p/block_curl.c.o
cc -m64 -mcx16 -Ilibblock-curl.a.p -I. -I.. -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/x86_64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=auto -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -isystem /usr/src/qemu-t8030/linux-headers -isystem linux-headers -iquote . -iquote /usr/src/qemu-t8030 -iquote /usr/src/qemu-t8030/include -iquote /usr/src/qemu-t8030/tcg/i386 -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -fPIC -DBUILD_DSO -MD -MQ libblock-curl.a.p/block_curl.c.o -MF libblock-curl.a.p/block_curl.c.o.d -o libblock-curl.a.p/block_curl.c.o -c ../block/curl.c
../block/curl.c: In function 'curl_init_state':
../block/curl.c:515:9: error: 'CURLOPT_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [-Werror=deprecated-declarations]
515 | if (curl_easy_setopt(state->curl, CURLOPT_PROTOCOLS, PROTOCOLS) ||
| ^~
In file included from ../block/curl.c:34:
/usr/include/x86_64-linux-gnu/curl/curl.h:1749:3: note: declared here
1749 | CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181,
| ^~~~~~~~~~~~~~~~~
../block/curl.c:516:13: error: 'CURLOPT_REDIR_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_REDIR_PROTOCOLS_STR [-Werror=deprecated-declarations]
516 | curl_easy_setopt(state->curl, CURLOPT_REDIR_PROTOCOLS, PROTOCOLS)) {
| ^~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1755:3: note: declared here
1755 | CURLOPTDEPRECATED(CURLOPT_REDIR_PROTOCOLS, CURLOPTTYPE_LONG, 182,
| ^~~~~~~~~~~~~~~~~
../block/curl.c: In function 'curl_open':
../block/curl.c:799:5: error: 'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Werror=deprecated-declarations]
799 | if (curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d)) {
| ^~
/usr/include/x86_64-linux-gnu/curl/curl.h:2858:3: note: declared here
2858 | CURLINFO_CONTENT_LENGTH_DOWNLOAD
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make: *** [Makefile:162: run-ninja] Error 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant