ros-melodic-arch / ros-melodic-libmavconn

ros-melodic-libmavconnAUR package
0 stars 0 forks source link

no element named `get_io_service` #1

Open chris-aeviator opened 5 years ago

chris-aeviator commented 5 years ago

When installing the package with pacman the following errors appear in my up2date arch environment.

Scanning dependencies of target mavconn
[ 16%] Building CXX object CMakeFiles/mavconn.dir/src/tcp.cpp.o
[ 66%] Building CXX object CMakeFiles/mavconn.dir/src/mavlink_helpers.cpp.o
[ 66%] Building CXX object CMakeFiles/mavconn.dir/src/serial.cpp.o
[ 66%] Building CXX object CMakeFiles/mavconn.dir/src/interface.cpp.o
[ 83%] Building CXX object CMakeFiles/mavconn.dir/src/udp.cpp.o
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp: In Elementfunktion »void mavconn::MAVConnTCPClient::client_connected(size_t)«:
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp:123:9: Fehler: »boost::asio::ip::tcp::socket« {aka »class boost::asio::basic_stream_socket<boost::asio::ip::tcp>«} hat kein Element namens »get_io_service«
  123 |  socket.get_io_service().post(std::bind(&MAVConnTCPClient::do_recv, shared_from_this()));
      |         ^~~~~~~~~~~~~~
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp: In Elementfunktion »virtual void mavconn::MAVConnTCPClient::send_bytes(const uint8_t*, size_t)«:
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp:169:9: Fehler: »boost::asio::ip::tcp::socket« {aka »class boost::asio::basic_stream_socket<boost::asio::ip::tcp>«} hat kein Element namens »get_io_service«
  169 |  socket.get_io_service().post(std::bind(&MAVConnTCPClient::do_send, shared_from_this(), true));
      |         ^~~~~~~~~~~~~~
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp: In Elementfunktion »virtual void mavconn::MAVConnTCPClient::send_message(const mavlink_message_t*)«:
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp:191:9: Fehler: »boost::asio::ip::tcp::socket« {aka »class boost::asio::basic_stream_socket<boost::asio::ip::tcp>«} hat kein Element namens »get_io_service«
  191 |  socket.get_io_service().post(std::bind(&MAVConnTCPClient::do_send, shared_from_this(), true));
      |         ^~~~~~~~~~~~~~
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp: In Elementfunktion »virtual void mavconn::MAVConnTCPClient::send_message(const mavlink::Message&)«:
/tmp/yaourt-tmp-korny/aur-ros-melodic-libmavconn/src/mavros-release-release-melodic-libmavconn-0.26.3-0/src/tcp.cpp:211:9: Fehler: »boost::asio::ip::tcp::socket« {aka »class boost::asio::basic_stream_socket<boost::asio::ip::tcp>«} hat kein Element namens »get_io_service«
  211 |  socket.get_io_service().post(std::bind(&MAVConnTCPClient::do_send, shared_from_this(), true));
      |         ^~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/mavconn.dir/build.make:115: CMakeFiles/mavconn.dir/src/tcp.cpp.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[1]: *** [CMakeFiles/Makefile2:416: CMakeFiles/mavconn.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
==> FEHLER:Makepkg konnte ros-melodic-libmavconn nicht erstellen.
chris-aeviator commented 5 years ago

I was able to get the socket.get_io_service() errors by manually patching according to https://github.com/gentoo/gentoo/blob/master/dev-ros/libmavconn/files/boost170.patch but more errors arise

acxz commented 5 years ago

This might be a better solution to this error: https://github.com/moneroexamples/onion-monero-blockchain-explorer/commit/76a0efa8ee3ea5bb466b81d84357d2fd76920cbd