You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation fails at cmake build with the error listed below on 2 separate Rocky 8 machines.
I've tried to use 1.9.x but CPR_USE_SYSTEM_CURL doesn't appear to exist in that version, which provides the CMake files I need according to this offa/influxdb-cxx#200 (comment)
cmake --build .
Scanning dependencies of target cpr
[ 3%] Building CXX object cpr/CMakeFiles/cpr.dir/accept_encoding.cpp.o
[ 6%] Building CXX object cpr/CMakeFiles/cpr.dir/async.cpp.o
In file included from /opt/cpr/cpr/include/cpr/ssl_options.h:11,
from /opt/cpr/cpr/include/cpr/response.h:15,
from /opt/cpr/cpr/include/cpr/async_wrapper.h:8,
from /opt/cpr/cpr/include/cpr/async.h:4,
from /opt/cpr/cpr/cpr/async.cpp:1:
/opt/cpr/cpr/include/cpr/util.h: In function ‘int cpr::util::progressUserFunction(const T*, cpr::cpr_pf_arg_t, cpr::cpr_pf_arg_t, cpr::cpr_pf_arg_t, cpr::cpr_pf_arg_t)’:
/opt/cpr/cpr/include/cpr/util.h:26:36: error: ‘CURL_PROGRESSFUNC_CONTINUE’ was not declared in this scope
static_assert(cancel_retval != CURL_PROGRESSFUNC_CONTINUE);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cpr/cpr/include/cpr/util.h:26:36: note: suggested alternative: ‘CURLOPT_PROGRESSFUNCTION’
static_assert(cancel_retval != CURL_PROGRESSFUNC_CONTINUE);
^~~~~~~~~~~~~~~~~~~~~~~~~~
CURLOPT_PROGRESSFUNCTION
gmake[2]: *** [cpr/CMakeFiles/cpr.dir/build.make:96: cpr/CMakeFiles/cpr.dir/async.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:135: cpr/CMakeFiles/cpr.dir/all] Error 2
gmake: *** [Makefile:150: all] Error 2
Example/How to Reproduce
git clone https://github.com/libcpr/cpr.git (also occurs with --branch=1.10.x as well)
cd cpr && mkdir build && cd build
cmake .. -DCPR_USE_SYSTEM_CURL=ON
cmake --build .
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
OS: Rocky
Version: 8.5
Branch: both master and 1.10.x
gcc 8.5.0, 12.2.0
cmake 3.20.2, 3.17.2
curl 7.61.1
The text was updated successfully, but these errors were encountered:
Thanks for the help! I was able to build 1.9.x on rhel8 with that flag no problem. influx-cxx seems to work with 1.9.x for me, so I'm in no rush for this issue at this point.
Short update from my side. I can reproduce the issue inside a rocky 8 docker image the issue and this is something that affects libcurl releases around 7.61.0.
Description
Installation fails at
cmake build
with the error listed below on 2 separate Rocky 8 machines.I've tried to use 1.9.x but CPR_USE_SYSTEM_CURL doesn't appear to exist in that version, which provides the CMake files I need according to this offa/influxdb-cxx#200 (comment)
Example/How to Reproduce
git clone https://github.com/libcpr/cpr.git
(also occurs with--branch=1.10.x
as well)cd cpr && mkdir build && cd build
cmake .. -DCPR_USE_SYSTEM_CURL=ON
cmake --build .
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: