livoxProto1:bug workaround: for boost:asio:udp async ops on dlopen libs

Updated Boost dependency to version 1.73.0 to address segfault issues with boost::asio in dynamic libraries. Refactored heartbeat socket management to use raw UDP sockets instead of boost::asio, improving compatibility and error handling during socket operations.
This commit is contained in:
2025-09-07 07:27:14 -04:00
parent 9a500e39ab
commit 1ededb85b9
3 changed files with 58 additions and 18 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ include_directories(
)
# Find core dependencies
find_package(Boost 1.69.0 REQUIRED COMPONENTS system)
# Boost 1.72.0 is required to ensure that a certain bug where boost::asio
# objects depend on specific copies of symbols, and boost will cause a segfault
# if boost::asio objects are used inside of a dlopen()'d library, is fixed.
find_package(Boost 1.73.0 REQUIRED COMPONENTS system)
find_package(PkgConfig REQUIRED)
find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)