curl_wrap.h Compilation issues

Discuss new features and functions
Posts: 9
Joined: 28 Apr 2020

zoushenliang

In file included from ../../zen/globals.h:12,
from ../../zen/i18n.h:12,
from <command-line>:
../../libcurl/curl_wrap.h: In function ‘std::wstring zen::{anonymous}::formatCurlStatusCode(CURLcode)’:
../../libcurl/curl_wrap.h:140:41: error: ‘CURLE_QUIC_CONNECT_ERROR’ was not declared in this scope; did you mean ‘CURLE_SSL_CONNECT_ERROR’?
140 | ZEN_CHECK_CASE_FOR_CONSTANT(CURLE_QUIC_CONNECT_ERROR);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../zen/scope_guard.h:107:45: note: in definition of macro ‘ZEN_CHECK_CASE_FOR_CONSTANT’
107 | #define ZEN_CHECK_CASE_FOR_CONSTANT(X) case X: return ZEN_CHECK_CASE_FOR_CONSTANT_IMPL(#X)
Posts: 309
Joined: 7 Jan 2018

bgstack15

This is going to be related to what version of the curl library you have. The CURLE_QUIC_CONNECT_ERROR was added in 7.69 per https://github.com/curl/curl/blob/cac5374298b3e79405bbdabe38941227c73a4c96/docs/libcurl/symbols-in-versions.
Zenju likes to follow upstream projects very closely, and most distros do not.
My Devuan Ceres (similar to Debian Sid) is only at libcurl4 7.68.0-1 so I have to patch curl_wrap.h to just not include that line.