Package Details: cpr 1.11.2-4

Git Clone URL: https://aur.archlinux.org/cpr.git (read-only, click to copy)
Package Base: cpr
Description: C++ Requests: Curl for People, a spiritual port of Python Requests.
Upstream URL: https://github.com/libcpr/cpr
Licenses: MIT
Provides: libcpr.so
Submitter: zlima12
Maintainer: zlima12 (horror-proton, FabioLolix)
Last Packager: zlima12
Votes: 6
Popularity: 0.47
First Submitted: 2021-04-22 20:19 (UTC)
Last Updated: 2025-05-14 20:33 (UTC)

Latest Comments

1 2 3 Next › Last »

nich23 commented on 2025-05-26 15:34 (UTC) (edited on 2025-05-27 17:06 (UTC) by nich23)

Build fails here currently with:

==> Starting build()...
-- The CXX compiler identification is GNU 15.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CXX standard: 17
-- C++ Requests CMake Options
-- =======================================================
--   CPR_GENERATE_COVERAGE: OFF
--   CPR_CURL_NOSIGNAL: OFF
--   CURL_VERBOSE_LOGGING: OFF
--   CPR_USE_SYSTEM_GTEST: ON
--   CPR_USE_SYSTEM_CURL: ON
--   CPR_ENABLE_CURL_HTTP_ONLY: ON
--   CPR_ENABLE_SSL: ON
--   CPR_FORCE_OPENSSL_BACKEND: OFF
--   CPR_FORCE_WINSSL_BACKEND: OFF
--   CPR_FORCE_DARWINSSL_BACKEND: OFF
--   CPR_FORCE_MBEDTLS_BACKEND: OFF
--   CPR_ENABLE_LINTING: OFF
--   CPR_ENABLE_CPPCHECK: OFF
--   CPR_BUILD_TESTS: ON
--   CPR_BUILD_TESTS_SSL: ON
--   CPR_BUILD_TESTS_PROXY: OFF
--   CPR_BUILD_VERSION_OUTPUT_ONLY: OFF
--   CPR_SKIP_CA_BUNDLE_SEARCH: OFF
--   CPR_USE_BOOST_FILESYSTEM: OFF
--   CPR_DEBUG_SANITIZER_FLAG_THREAD: OFF
--   CPR_DEBUG_SANITIZER_FLAG_ADDR: OFF
--   CPR_DEBUG_SANITIZER_FLAG_LEAK: OFF
--   CPR_DEBUG_SANITIZER_FLAG_UB: OFF
--   CPR_DEBUG_SANITIZER_FLAG_ALL: OFF
-- =======================================================
-- Performing Test THREAD_SANITIZER_AVAILABLE
-- Performing Test THREAD_SANITIZER_AVAILABLE - Success
-- Performing Test ADDRESS_SANITIZER_AVAILABLE
-- Performing Test ADDRESS_SANITIZER_AVAILABLE - Success
-- Performing Test LEAK_SANITIZER_AVAILABLE
-- Performing Test LEAK_SANITIZER_AVAILABLE - Success
-- Performing Test UNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE
-- Performing Test UNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE - Success
-- Performing Test ALL_SANITIZERS_AVAILABLE
-- Performing Test ALL_SANITIZERS_AVAILABLE - Success
-- Automatically detecting SSL backend.
-- Detecting SSL backend...
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.5.0")
-- SSL auto detect: Using OpenSSL.
-- Found CURL: /usr/lib/libcurl.so (found version "8.13.0") found components: HTTP HTTPS
-- Curl 8.13.0 found on this system.
-- Found GTest: /usr/lib/cmake/GTest/GTestConfig.cmake (found version "1.17.0")
-- Building mongoose project for test support.
-- Installing: /home/nich/.cache/yay/cpr/src/build/_deps/mongoose-src/mongoose.CMakeLists.txt
-- The C compiler identification is GNU 15.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at include/CMakeLists.txt:95 (message):
  Your compiler does not support the `<filesystem>` include or cpr is unable
  to determine the proper compiler flags for it.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: cpr-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
cpr - exit status 4

zlima12 commented on 2025-05-06 03:09 (UTC)

Wild_Penguin: thanks for reporting. This should be fixed when the gtest package gets updated, but I've pushed a temporary fix since I don't know how long that will take.

Wild_Penguin commented on 2025-05-05 02:33 (UTC)

Build fails here currently with:

[ 34%] Built target cpr
[ 36%] Building CXX object test/CMakeFiles/test_server.dir/abstractServer.cpp.o
[ 36%] Building CXX object test/CMakeFiles/test_server.dir/httpServer.cpp.o
[ 37%] Building CXX object test/CMakeFiles/test_server.dir/httpsServer.cpp.o
In file included from /usr/include/gtest/internal/gtest-port.h:295,
                 from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.cpp:1:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
In file included from /usr/include/gtest/internal/gtest-port.h:295,
                 from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpServer.cpp:1:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
In file included from /usr/include/gtest/internal/gtest-port.h:295,
                 from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpsServer.hpp:7,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpsServer.cpp:1:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/test_server.dir/build.make:79: test/CMakeFiles/test_server.dir/abstractServer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/test_server.dir/build.make:107: test/CMakeFiles/test_server.dir/httpsServer.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/test_server.dir/build.make:93: test/CMakeFiles/test_server.dir/httpServer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:324: test/CMakeFiles/test_server.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
LANG=C makepkg -Cs  40,58s user 4,50s system 307% cpu 14,670 total

Flat commented on 2025-05-01 15:24 (UTC)

Missing git for makedepends

kimmholy commented on 2025-04-15 09:06 (UTC)

i had hard time trying to install cpr because of one test fails so i skip it by editing PKGBUILD with check() { echo "Skipping tests..." }

zlima12 commented on 2025-04-06 18:15 (UTC)

@sergeG239 thanks for reporting, I was able to reproduce this. I'll look into a fix soon. In the mean time, you can build the package by skipping the tests with --nocheck

sergeG239 commented on 2025-04-06 10:11 (UTC)

The following tests FAILED: 3 - cpr_session_tests (Failed) Errors while running CTest Output from these tests are in: /home/serge/.cache/yay/cpr/src/build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. ==> ERROR: A failure occurred in check(). Aborting... -> error making: cpr-exit status 4

The only way to install cpr that I found is to downgrade curl to 8.11.1-3.

xiota commented on 2025-03-24 07:14 (UTC)

Sorry. I got skipcheck(sums) and no check confused.

zlima12 commented on 2025-03-24 06:59 (UTC) (edited on 2025-03-24 07:00 (UTC) by zlima12)

@xiota I appreciate your interest in my hack, but I think you are mistaken. SKIPCHECKSUMS is set when --skipchecksums is passed, which is unrelated to the check() function. Furthermore, CHECKFUNC is set not just if the function exists, but also if it is to be run.