CoverFS
CoverFS copied to clipboard
Compiling error on Ubuntu 20.04
Hello! I'm encountering the following error on Ubuntu 20.04.3 LTS:
.../src/IO/CNetBlockIO.cpp:101:47: error: ‘boost::asio::ssl::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >::lowest_layer_type’ {aka ‘class boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::executor>’} has no member named ‘native’
101 | int ret = setsockopt(sctrl.lowest_layer().native(), SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority));
| ^~~~~~
Any idea how to fix that? (a missing dependency?) cmake show that initially:
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SYSTEM_NAME: Linux
-- SYSTEM: UNIX
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: system
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1l")
-- Found GCrypt: /usr/lib/x86_64-linux-gnu/libgcrypt.so
-- Looking for Poco install directory structure.
-- Assuming Poco install directory structure at /usr.
-- Found Poco Util: /usr/lib/x86_64-linux-gnu/libPocoUtil.so
-- Found Poco Foundation: /usr/lib/x86_64-linux-gnu/libPocoFoundation.so
-- Found Poco: optimized;/usr/lib/x86_64-linux-gnu/libPocoUtil.so;optimized;/usr/lib/x86_64-linux-gnu/libPocoFoundation.so
-- Add FUSE Library
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Performing Test FUSE_CFLAGS_CHECK
-- Performing Test FUSE_CFLAGS_CHECK - Success
-- Found FUSE: /usr/lib/x86_64-linux-gnu/libfuse.so
-- Configuring done
-- Generating done
-- Build files have been written to: ...