Open ghost opened 2 years ago
I see the same failure.
It looks like this is happening because of a dependency API change. tun2socks was written using Boost sometime at or after version 1.66.0. Right now, I'm using version 1.74 (3 years later) and the most current is 1.79 (2 years later). It's entirely possible (likely even) that between then and now the internals and semantics of how Boost deals with various errors has changed. :)
I might fix this myself, if necessary, though my strong inclination would be to remove all the Boost. :)
@butterfly1924: One thing you could do is make a clean build environment and try to build using older versions of the libraries, if you don't want to fix the code itself.
~~~^~~~~~~~~~~~~~~~~^~~ /home/generic/tun2socks/socks5/socks5_client.cpp:132:49: error: cannot convert ‘boost::system::error_code’ to ‘const boost::system::system_error&’ 132~~~^~~~~~~~~~~~~~~~~~~~~^~~ /home/generic/tun2socks/socks5/socks5_client.cpp: In member function ‘bool toys::socks5::SOCKS5Client::connectDestination(boost::asio::yield_context&)’: /home/generic/tun2socks/socks5/socks5_client.cpp:163:36: error: cannot convert ‘boost::system::error_code’ to ‘const boost::system::system_error&’ 163~~~^~~~~~~~~~~~~~~~~~~ /home/generic/tun2socks/socks5/socks5_client.cpp:168:57: error: cannot convert ‘boost::system::error_code’ to ‘const boost::system::system_error&’ 168~~~^~~~~~~~~~~~~~~~~~~~ /home/generic/tun2socks/socks5/socks5_client.cpp: In member function ‘bool toys::socks5::SOCKS5Client::authClient(boost::asio::yield_context&)’: /home/generic/tun2socks/socks5/socks5_client.cpp:219:65: error: cannot convert ‘boost::system::error_code’ to ‘const boost::system::system_error&’ 219~~~^~~~~~~~~~~~~~~~~~~~~~ /home/generic/tun2socks/socks5/socks5_client.cpp:238:65: error: cannot convert ‘boost::system::error_code’ to ‘const boost::system::system_error&’ 238~~~^~~~~~~~~~~~~~~~~~~~~~ /home/generic/tun2socks/socks5/socks5_client.cpp:245:65: error: cannot convert ‘boost::system::error_code’ to ‘const boost::system::system_error&’ 245~~~^~~~~~~~~~~~~In file included from /home/generic/tun2socks/socks5/socks5_client.cpp:1: /home/generic/tun2socks/./socks5/socks5_client.h:35:30: note: initializing argument 1 of ‘virtual void toys::socks5::SOCKS5Client::Delegate::OnError(const boost::system::system_error&)’ 35 | virtual void OnError(const boost::system::system_error&) {} | ^
~~~~~~~~~ make[2]: [CMakeFiles/tun2socks.dir/build.make:63: CMakeFiles/tun2socks.dir/socks5/socks5_client.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:184: CMakeFiles/tun2socks.dir/all] Error 2 make: *** [Makefile:152: all] Error 2