Open maxdevaine opened 6 years ago
@maxdevaine according to Boost 1.66 release notice it was some significant changes in ASIO. So it's possible that Pion should be updated to anticipate those changes.
Same problem here, Will look if the fix is straight forward
my fork is compiling and running with boost 1.70.0
If people are interested I'll be testing it some more. I'll try to handle issue you have with it
Hello, I have problem with compile actual git version of pion on actual version Arch Linux with boost lib 1.66 :
...
../include/pion/tcp/connection.hpp:120:36: error: no matching function for call to ‘boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)’ m_lifecycle(LIFECYCLE_CLOSE) ^ In file included from /usr/include/boost/asio/ssl/context.hpp:757:0, from /usr/include/boost/asio/ssl.hpp:18, from ../include/pion/tcp/connection.hpp:18, from ../include/pion/http/auth.hpp:21, from http_auth.cpp:11: /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context&&) context::context(context&& other) ^~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate expects 1 argument, 2 provided /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) context::context(context::method m) ^~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate expects 1 argument, 2 provided In file included from ../include/pion/http/auth.hpp:21:0, from http_auth.cpp:11: ../include/pion/tcp/connection.hpp: In constructor ‘pion::tcp::connection::connection(boost::asio::io_service&, pion::tcp::connection::ssl_context_type&)’: ../include/pion/tcp/connection.hpp:140:36: error: no matching function for call to ‘boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)’ m_lifecycle(LIFECYCLE_CLOSE) ^ In file included from /usr/include/boost/asio/ssl/context.hpp:757:0, from /usr/include/boost/asio/ssl.hpp:18, from ../include/pion/tcp/connection.hpp:18, from ../include/pion/http/auth.hpp:21, from http_auth.cpp:11: /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context&&) context::context(context&& other) ^~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate expects 1 argument, 2 provided /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) context::context(context::method m) ^~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate expects 1 argument, 2 provided In file included from ../include/pion/http/auth.hpp:21:0, from http_auth.cpp:11: ../include/pion/tcp/connection.hpp: In constructor ‘pion::tcp::connection::connection(boost::asio::io_service&, pion::tcp::connection::ssl_context_type&, bool, pion::tcp::connection::connection_handler)’: ../include/pion/tcp/connection.hpp:702:44: error: no matching function for call to ‘boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)’ m_finished_handler(finished_handler) ^ In file included from /usr/include/boost/asio/ssl/context.hpp:757:0, from /usr/include/boost/asio/ssl.hpp:18, from ../include/pion/tcp/connection.hpp:18, from ../include/pion/http/auth.hpp:21, from http_auth.cpp:11: /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context&&) context::context(context&& other) ^~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:326:1: note: candidate expects 1 argument, 2 provided /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate: boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) context::context(context::method m) ^~~~~~~ /usr/include/boost/asio/ssl/impl/context.ipp:63:1: note: candidate expects 1 argument, 2 provided make[1]: *** [Makefile:512: http_auth.lo] Error 1 make[1]: Opouští se adresář „/tmp/yaourt-tmp-max/aur-pion-git/src/pion/src“ make: *** [Makefile:524: all-recursive] Error 1
I'm not programmer, but it looks like problem with actual lib boost. Or I'm wrong? Thanks Max