community/asio (-dev) (1.10.6-r1) - compile error - incorrect #include <sys/poll.h> to <poll.h>
/ # apk add asio-dev (1/3) Installing libressl2.6-libtls (2.6.3-r0) (2/3) Installing libressl-dev (2.6.3-r0) (3/3) Installing asio-dev (1.10.6-r1)
While compiling galera (after a few galera fixes)
In file included from /usr/include/asio/detail/socket_types.hpp:57:0, from /usr/include/asio/impl/error_code.ipp:29, from /usr/include/asio/error_code.hpp:185, from /usr/include/asio/io_service.hpp:25, from /usr/include/asio/basic_io_object.hpp:19, from /usr/include/asio/basic_socket.hpp:20, from /usr/include/asio/basic_datagram_socket.hpp:20, from /usr/include/asio.hpp:19, from galerautils/src/gu_asio.hpp:46, from galera/src/ist.hpp:15, from galera/src/ist.cpp:5: /usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp] #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
Upstream has fixed this in https://github.com/chriskohlhoff/asio/commit/5adce6e26769228f2c9fcc0b9dda8bf00279821f though their (http://think-async.com/) stable release is still 1.10.6.
(from redmine: issue id 8662, created on 2018-03-16, closed on 2018-06-25)
- Revision f5bcb24d by Natanael Copa on 2018-03-16T08:50:46Z:
community/asio: upgrade to 1.12.0 fixes #8662