Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Build issues with boost 1.72.0 #58

Open
phmccarty opened this issue Mar 5, 2020 · 1 comment
Open

Build issues with boost 1.72.0 #58

phmccarty opened this issue Mar 5, 2020 · 1 comment

Comments

@phmccarty
Copy link

I am trying to build AVBStreamHandler with boost 1.72.0, and I run into these compilation errors:

In file included from /builddir/build/BUILD/AVBStreamHandler/private/src/avb_streamhandler_app_socket/server.cpp:39:
/builddir/build/BUILD/AVBStreamHandler/private/inc/avb_streamhandler_app_socket/IasAvbStreamHandlerSocketIpc.hpp: In member function ‘void AvbStreamHandlerSocketIpc::connection::async_write(const T&, Handler)’:
/builddir/build/BUILD/AVBStreamHandler/private/inc/avb_streamhandler_app_socket/IasAvbStreamHandlerSocketIpc.hpp:209:15: error: ‘boost::asio::ip::tcp::socket’ {aka ‘class boost::asio::basic_stream_socket<boost::asio::ip::tcp>’} has no member named ‘get_io_service’
  209 |       socket_.get_io_service().post(boost::bind(handler, error));
      |               ^~~~~~~~~~~~~~
/builddir/build/BUILD/AVBStreamHandler/private/src/avb_streamhandler_app_socket/server.cpp: In constructor ‘AvbStreamHandlerSocketIpc::server::server(boost::asio::io_service&, short unsigned int, IasMediaTransportAvb::IasAvbStreamHandler*, AvbStreamHandlerSocketIpc::Command**, int)’:
/builddir/build/BUILD/AVBStreamHandler/private/src/avb_streamhandler_app_socket/server.cpp:112:38: error: ‘boost::asio::ip::tcp::acceptor’ {aka ‘class boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>’} has no member named ‘get_io_service’
  112 |     connx = new connection(acceptor_.get_io_service());
      |                                      ^~~~~~~~~~~~~~
/builddir/build/BUILD/AVBStreamHandler/private/src/avb_streamhandler_app_socket/server.cpp: In member function ‘void AvbStreamHandlerSocketIpc::server::handle_write(const boost::system::error_code&)’:
/builddir/build/BUILD/AVBStreamHandler/private/src/avb_streamhandler_app_socket/server.cpp:160:40: error: ‘boost::asio::ip::tcp::acceptor’ {aka ‘class boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>’} has no member named ‘get_io_service’
  160 |       connx = new connection(acceptor_.get_io_service());
      |                                        ^~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/AVBStreamHandler/private/src/avb_streamhandler_app_socket/client.cpp:31:
/builddir/build/BUILD/AVBStreamHandler/private/inc/avb_streamhandler_app_socket/IasAvbStreamHandlerSocketIpc.hpp: In member function ‘void AvbStreamHandlerSocketIpc::connection::async_write(const T&, Handler)’:
/builddir/build/BUILD/AVBStreamHandler/private/inc/avb_streamhandler_app_socket/IasAvbStreamHandlerSocketIpc.hpp:209:15: error: ‘boost::asio::ip::tcp::socket’ {aka ‘class boost::asio::basic_stream_socket<boost::asio::ip::tcp>’} has no member named ‘get_io_service’
  209 |       socket_.get_io_service().post(boost::bind(handler, error));
      |               ^~~~~~~~~~~~~~
@wvk86
Copy link
Contributor

wvk86 commented Mar 5, 2020

Looks like get_io_service() was removed on boost 1.70:

https://www.boost.org/doc/libs/1_70_0/doc/html/boost_asio/history.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants