pksilen opened a new issue, #560: URL: https://github.com/apache/pulsar-client-cpp/issues/560
### Search before asking - [x] I searched in the [issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing similar. ### Version Rocky Linux 9, Pulsar 4.10.0 ### Minimal reproduce step Compile pulsar-client ### What did you expect to see? Successful compilation ### What did you see instead? 14:06:07 #16 0.437 -- USE_ASIO: OFF 14:06:07 #16 0.437 -- BUILD_TESTS: OFF 14:06:07 #16 0.437 -- BUILD_PERF_TOOLS: OFF 14:06:07 #16 0.504 -- The C compiler identification is GNU 14.2.1 14:06:07 #16 0.624 -- The CXX compiler identification is GNU 14.2.1 14:06:07 #16 0.633 -- Detecting C compiler ABI info 14:06:07 #16 0.707 -- Detecting C compiler ABI info - done 14:06:07 #16 0.723 -- Check for working C compiler: /opt/rh/gcc-toolset-14/root/bin/gcc - skipped 14:06:07 #16 0.723 -- Detecting C compile features 14:06:07 #16 0.723 -- Detecting C compile features - done 14:06:07 #16 0.740 -- Detecting CXX compiler ABI info 14:06:08 #16 0.861 -- Detecting CXX compiler ABI info - done 14:06:08 #16 0.879 -- Check for working CXX compiler: /opt/rh/gcc-toolset-14/root/bin/g++ - skipped 14:06:08 #16 0.879 -- Detecting CXX compile features 14:06:08 #16 0.880 -- Detecting CXX compile features - done 14:06:08 #16 0.889 -- Pulsar Client version: 4.1.0 14:06:08 #16 0.917 -- Pulsar Client version macro: 4001000 14:06:08 #16 0.918 -- Using CCache 14:06:08 #16 0.918 -- ARCHITECTURE: x86_64 14:06:08 #16 0.918 -- BUILD_DYNAMIC_LIB: ON 14:06:08 #16 0.918 -- BUILD_STATIC_LIB: ON 14:06:08 #16 0.918 -- CMAKE_BUILD_TYPE: RelWithDebInfo 14:06:08 #16 0.919 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD 14:06:08 #16 1.001 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success 14:06:08 #16 1.002 -- Found Threads: TRUE 14:06:08 #16 1.002 -- Threads library: 14:06:08 #16 1.003 -- LINK_STATIC: OFF 14:06:08 #16 1.003 CMake Warning (dev) at LegacyFindPackages.cmake:94 (find_package): 14:06:08 #16 1.003 Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake 14:06:08 #16 1.003 --help-policy CMP0167" for policy details. Use the cmake_policy command to 14:06:08 #16 1.003 set the policy and suppress this warning. 14:06:08 #16 1.003 14:06:08 #16 1.003 Call Stack (most recent call first): 14:06:08 #16 1.003 CMakeLists.txt:164 (include) 14:06:08 #16 1.003 This warning is for project developers. Use -Wno-dev to suppress it. 14:06:08 #16 1.003 14:06:08 #16 1.083 -- Found Boost: /usr/local/include (found version "1.90.0") 14:06:08 #16 1.084 Boost_INCLUDE_DIRS: /usr/local/include 14:06:08 #16 1.333 -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.5.1") 14:06:08 #16 1.333 OPENSSL_INCLUDE_DIR: /usr/include 14:06:08 #16 1.333 OPENSSL_LIBRARIES: /usr/lib64/libssl.so/usr/lib64/libcrypto.so 14:06:08 #16 1.368 -- Found Protobuf: /usr/local/lib64/libprotobuf.so (found version "4.24.4") 14:06:08 #16 1.368 Protobuf_INCLUDE_DIRS: /usr/local/include 14:06:08 #16 1.368 Protobuf_LIBRARIES: /usr/local/lib64/libprotobuf.so 14:06:08 #16 1.382 CURL_INCLUDE_DIRS: /usr/local/include 14:06:08 #16 1.382 CURL_LIBRARIES: /usr/local/lib/libcurl.so 14:06:08 #16 1.395 ZLIB_INCLUDE_DIRS: /usr/local/include 14:06:08 #16 1.395 ZLIB_LIBRARIES: /usr/local/lib64/libz.so 14:06:08 #16 1.399 -- Using std::regex 14:06:08 #16 1.399 CMake Warning (dev) at LegacyFindPackages.cmake:221 (find_package): 14:06:08 #16 1.399 Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake 14:06:08 #16 1.399 --help-policy CMP0167" for policy details. Use the cmake_policy command to 14:06:08 #16 1.399 set the policy and suppress this warning. 14:06:08 #16 1.399 14:06:08 #16 1.399 Call Stack (most recent call first): 14:06:08 #16 1.399 CMakeLists.txt:164 (include) 14:06:08 #16 1.399 This warning is for project developers. Use -Wno-dev to suppress it. 14:06:08 #16 1.399 14:06:08 #16 1.406 -- HAS_ZSTD: 1 14:06:08 #16 1.406 -- HAS_SNAPPY: 0 14:06:08 #16 1.409 -- Looking for getauxval 14:06:08 #16 1.527 -- Looking for getauxval - found 14:06:08 #16 1.531 clang-tidy not found 14:06:08 #16 1.532 clang-format not found 14:06:08 #16 1.532 -- Configuring done (1.1s) 14:06:08 #16 1.624 -- Generating done (0.1s) 14:06:08 #16 1.625 -- Build files have been written to: /usr/local/src/pulsar-client-cpp-4.1.0 14:06:08 #16 1.653 [ 0%] Generating ../generated/lib/PulsarApi.pb.cc, ../generated/lib/PulsarApi.pb.h 14:06:08 #16 1.657 Generating PulsarApi.pb.cc/h with: protoc -I ../proto ../proto/PulsarApi.proto --cpp_out=/usr/local/src/pulsar-client-cpp-4.1.0/generated/lib 14:06:12 #16 4.935 [ 2%] Building CXX object lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/AckGroupingTrackerEnabled.cc.o 14:06:12 #16 4.935 [ 2%] Building CXX object lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/AckGroupingTrackerDisabled.cc.o 14:06:12 #16 4.935 [ 2%] Building CXX object lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/Authentication.cc.o 14:06:12 #16 4.936 [ 3%] Building CXX object lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/AutoClusterFailover.cc.o 14:06:12 #16 4.936 [ 4%] Building CXX object lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/Backoff.cc.o 14:06:12 #16 5.529 [ 4%] Building CXX object lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/BatchMessageContainer.cc.o 14:06:19 #16 11.19 /usr/local/src/pulsar-client-cpp-4.1.0/lib/AutoClusterFailover.cc: In static member function 'static void pulsar::AutoClusterFailoverImpl::completeProbe(const std::shared_ptr<ProbeContext>&, bool, const boost::system::error_code&)': 14:06:19 #16 11.19 /usr/local/src/pulsar-client-cpp-4.1.0/lib/AutoClusterFailover.cc:176:30: error: no matching function for call to 'boost::asio::basic_waitable_timer<std::chrono::_V2::steady_clock>::cancel(boost::system::error_code&)' 14:06:19 #16 11.19 176 | context->timer.cancel(ignored); 14:06:19 #16 11.19 | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 14:06:19 #16 11.19 In file included from /usr/local/include/boost/asio/steady_timer.hpp:19, 14:06:19 #16 11.19 from /usr/local/src/pulsar-client-cpp-4.1.0/lib/AsioTimer.h:24, 14:06:19 #16 11.19 from /usr/local/src/pulsar-client-cpp-4.1.0/lib/AutoClusterFailover.cc:29: 14:06:19 #16 11.19 /usr/local/include/boost/asio/basic_waitable_timer.hpp:407:15: note: candidate: 'std::size_t boost::asio::basic_waitable_timer<Clock, WaitTraits, Executor>::cancel() [with Clock = std::chrono::_V2::steady_clock; WaitTraits = boost::asio::wait_traits<std::chrono::_V2::steady_clock>; Executor = boost::asio::any_io_executor; std::size_t = long unsigned int]' 14:06:19 #16 11.19 407 | std::size_t cancel() 14:06:19 #16 11.19 | ^~~~~~ 14:06:19 #16 11.19 /usr/local/include/boost/asio/basic_waitable_timer.hpp:407:15: note: candidate expects 0 arguments, 1 provided 14:06:19 #16 11.19 make[2]: *** [lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/build.make:129: lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/AutoClusterFailover.cc.o] Error 1 14:06:19 #16 11.19 make[2]: *** Waiting for unfinished jobs.... 14:06:24 #16 16.60 make[1]: *** [CMakeFiles/Makefile2:237: lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/all] Error 2 14:06:24 #16 16.60 make: *** [Makefile:136: all] Error 2 ### Anything else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
