Closed motlaghreyhan closed 9 months ago
@motlaghreyhan Thanks for reporting!
As mentioned here, cpr 1.9.x supports CPR_USE_SYSTEM_CURL
: https://github.com/libcpr/cpr/blob/a814567a98ab0ff70224ac9e37d71839c0738544/CMakeLists.txt#L40
It looks like CURL_PROGRESSFUNC_CONTINUE
got removed in your version of libcurl since on the curl page it states: "Deprecated since 7.32.0."
I will look into this further ~at the end of the month after my vacation.
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 https://github.com/offa/influxdb-cxx/issues/200#issuecomment-1587586390
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