Build failure with newer cpr
I am trying to build
libkazv
, latest git checkout (dated 2023-08-25) from https://lily-is.land/kazv/libkazv.git, on Artix GNU/Linux (rolling release) with GCC 13.2.1.Build fails with an error for me with
/tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:432:94: error: no matching function for call to ‘cpr::ReadCallback::ReadCallback(const std::function<bool(char*, long unsigned int&)>&)’ ``` and subsequent errors:
[...] [ 68%] Building CXX object src/job/CMakeFiles/kazvjob.dir/cprjobhandler.cpp.o In file included from /tmp/makepkg/build/libkazv-git/src/libkazv/src/base/types.hpp:24, from /tmp/makepkg/build/libkazv-git/src/libkazv/src/base/basejob.hpp:22, from /tmp/makepkg/build/libkazv-git/src/libkazv/src/base/jobinterface.hpp:12, from /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.hpp:15, from /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:20: /tmp/makepkg/build/libkazv-git/src/libkazv/src/base/descendent.hpp:18:16: warning: identifier ‘concept’ is a keyword in C++20 [-Wc++20-compat] 18 |
struct concept| ^~~~~~~
/tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp: In lambda function: /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:432:94 : error: no matching function for call to ‘cpr::ReadCallback::ReadCallback(const std::function<bool(char*, long unsigned int&)>&)’ 432 | return cpr::GetCallback(callback, url, cpr::ReadCallback(readCallback), header, params); | ^
[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:434:96: error: no matching function for call to ‘cpr::WriteCallback::WriteCallback(const std::function<bool(std::__cxx11::basic_string)>&)’ 434 |
return cpr::GetCallback(callback, url, cpr::WriteCallback(writeCallback), header, body, params); | ^[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp: In lambda function: /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:441:95 : error: no matching function for call to ‘cpr::ReadCallback::ReadCallback(const std::function<bool(char*, long unsigned int&)>&)’ 441 | return cpr::PostCallback(callback, url, cpr::ReadCallback(readCallback), header, params); | ^
[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:443:97: error: no matching function for call to ‘cpr::WriteCallback::WriteCallback(const std::function<bool(std::__cxx11::basic_string)>&)’ 443 |
return cpr::PostCallback(callback, url, cpr::WriteCallback(writeCallback), header, body, params); | ^[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp: In lambda function: /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:450:94 : error: no matching function for call to ‘cpr::ReadCallback::ReadCallback(const std::function<bool(char*, long unsigned int&)>&)’ 450 | return cpr::PutCallback(callback, url, cpr::ReadCallback(readCallback), header, params); | ^
[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:452:96: error: no matching function for call to ‘cpr::WriteCallback::WriteCallback(const std::function<bool(std::__cxx11::basic_string)>&)’ 452 |
return cpr::PutCallback(callback, url, cpr::WriteCallback(writeCallback), header, body, params); | ^[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp: In lambda function: /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:459:97 : error: no matching function for call to ‘cpr::ReadCallback::ReadCallback(const std::function<bool(char*, long unsigned int&)>&)’ 459 | return cpr::DeleteCallback(callback, url, cpr::ReadCallback(readCallback), header, params); | ^
[...] /tmp/makepkg/build/libkazv-git/src/libkazv/src/job/cprjobhandler.cpp:461:99: error: no matching function for call to ‘cpr::WriteCallback::WriteCallback(const std::function<bool(std::__cxx11::basic_string)>&)’ 461 |
return cpr::DeleteCallback(callback, url, cpr::WriteCallback(writeCallback), header, body, params); | ^[...] make[2]: *** [src/job/CMakeFiles/kazvjob.dir/build.make:76: src/job/CMakeFiles/kazvjob.dir/cprjobhandler.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1119: src/job/CMakeFiles/kazvjob.dir/all] Error 2 make: *** [Makefile:146: all] Error 2