Boost C++ Libraries: Ticket #6837: asio doesn't compile on OpenSUSE 11.4 https://svn.boost.org/trac10/ticket/6837 <p> Compiling a trivial program fails on OpenSUSE 11.4: </p> <p> #include &lt;boost/asio.hpp&gt; int main(void) { </p> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> <p> In file included from /usr/local/include/boost/asio/detail/reactor.hpp:21:0, </p> <blockquote> <p> from /usr/local/include/boost/asio/detail/impl/task_io_service.ipp:25, from /usr/local/include/boost/asio/detail/task_io_service.hpp:180, from /usr/local/include/boost/asio/impl/io_service.hpp:64, from /usr/local/include/boost/asio/io_service.hpp:767, from /usr/local/include/boost/asio/basic_io_object.hpp:19, from /usr/local/include/boost/asio/basic_socket.hpp:19, from /usr/local/include/boost/asio/basic_datagram_socket.hpp:20, from /usr/local/include/boost/asio.hpp:20, from function_proxy_test/tcp_server.hpp:9, from function_proxy_test/test_server.cpp:4: </p> </blockquote> <p> /usr/local/include/boost/asio/detail/epoll_reactor.hpp: In member function âvoid boost::asio::detail::epoll_reactor::descriptor_state::set_ready_events(uint32_t)â: /usr/local/include/boost/asio/detail/epoll_reactor.hpp:68:46: error: âtask_result_â was not declared in this scope In file included from /usr/local/include/boost/asio/detail/epoll_reactor.hpp:242:0, </p> <blockquote> <p> from /usr/local/include/boost/asio/detail/reactor.hpp:21, from /usr/local/include/boost/asio/detail/impl/task_io_service.ipp:25, from /usr/local/include/boost/asio/detail/task_io_service.hpp:180, from /usr/local/include/boost/asio/impl/io_service.hpp:64, from /usr/local/include/boost/asio/io_service.hpp:767, from /usr/local/include/boost/asio/basic_io_object.hpp:19, from /usr/local/include/boost/asio/basic_socket.hpp:19, from /usr/local/include/boost/asio/basic_datagram_socket.hpp:20, from /usr/local/include/boost/asio.hpp:20, from function_proxy_test/tcp_server.hpp:9, from function_proxy_test/test_server.cpp:4: </p> </blockquote> <p> /usr/local/include/boost/asio/detail/impl/epoll_reactor.ipp: In constructor âboost::asio::detail::epoll_reactor::descriptor_state::descriptor_state()â: /usr/local/include/boost/asio/detail/impl/epoll_reactor.ipp:609:60: error: no matching function for call to âboost::asio::detail::task_io_service_operation::task_io_service_operation(void (*)(boost::asio::detail::io_service_impl*, boost::asio::detail::operation*, const boost::system::error_code&amp;, size_t))â /usr/local/include/boost/asio/detail/task_io_service_operation.hpp:49:3: note: candidates are: boost::asio::detail::task_io_service_operation::task_io_service_operation(void (*)(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code, size_t)) &lt;near match&gt; /usr/local/include/boost/asio/detail/task_io_service_operation.hpp:32:1: note: boost::asio::detail::task_io_service_operation::task_io_service_operation(const boost::asio::detail::task_io_service_operation&amp;) /usr/local/include/boost/asio/detail/impl/epoll_reactor.ipp: In static member function âstatic void boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::io_service_impl*, boost::asio::detail::operation*, const boost::system::error_code&amp;, size_t)â: /usr/local/include/boost/asio/detail/impl/epoll_reactor.ipp:655:33: error: no matching function for call to âboost::asio::detail::task_io_service_operation::complete(boost::asio::detail::io_service_impl&amp;, const boost::system::error_code&amp;, int)â /usr/local/include/boost/asio/detail/task_io_service_operation.hpp:34:8: note: candidate is: void boost::asio::detail::task_io_service_operation::complete(boost::asio::detail::task_io_service&amp;) In file included from /usr/local/include/boost/asio/detail/strand_service.hpp:137:0, </p> <blockquote> <p> from /usr/local/include/boost/asio/strand.hpp:20, from /usr/local/include/boost/asio.hpp:90, from function_proxy_test/tcp_server.hpp:9, from function_proxy_test/test_server.cpp:4: </p> </blockquote> <p> /usr/local/include/boost/asio/detail/impl/strand_service.hpp: In constructor âboost::asio::detail::strand_service::strand_impl::strand_impl()â: /usr/local/include/boost/asio/detail/impl/strand_service.hpp:32:18: error: no matching function for call to âboost::asio::detail::task_io_service_operation::task_io_service_operation(void (*)(boost::asio::detail::io_service_impl*, boost::asio::detail::operation*, const boost::system::error_code&amp;, size_t))â /usr/local/include/boost/asio/detail/task_io_service_operation.hpp:49:3: note: candidates are: boost::asio::detail::task_io_service_operation::task_io_service_operation(void (*)(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code, size_t)) &lt;near match&gt; /usr/local/include/boost/asio/detail/task_io_service_operation.hpp:32:1: note: boost::asio::detail::task_io_service_operation::task_io_service_operation(const boost::asio::detail::task_io_service_operation&amp;) /usr/local/include/boost/asio/detail/impl/strand_service.hpp: In member function âvoid boost::asio::detail::strand_service::dispatch(boost::asio::detail::strand_service::strand_impl*&amp;, Handler)â: /usr/local/include/boost/asio/detail/impl/strand_service.hpp:65:20: error: âfullâ is not a member of âboost::asio::detail::fenced_blockâ In file included from /usr/local/include/boost/asio/detail/strand_service.hpp:139:0, </p> <blockquote> <p> from /usr/local/include/boost/asio/strand.hpp:20, from /usr/local/include/boost/asio.hpp:90, from function_proxy_test/tcp_server.hpp:9, from function_proxy_test/test_server.cpp:4: </p> </blockquote> <p> /usr/local/include/boost/asio/detail/impl/strand_service.ipp: In member function âbool boost::asio::detail::strand_service::do_dispatch(boost::asio::detail::strand_service::strand_impl*&amp;, boost::asio::detail::operation*)â: /usr/local/include/boost/asio/detail/impl/strand_service.ipp:92:35: error: âclass boost::asio::detail::io_service_implâ has no member named âcan_dispatchâ /usr/local/include/boost/asio/detail/impl/strand_service.ipp: In static member function âstatic void boost::asio::detail::strand_service::do_complete(boost::asio::detail::io_service_impl*, boost::asio::detail::operation*, const boost::system::error_code&amp;, size_t)â: /usr/local/include/boost/asio/detail/impl/strand_service.ipp:160:32: error: no matching function for call to âboost::asio::detail::task_io_service_operation::complete(boost::asio::detail::io_service_impl&amp;, const boost::system::error_code&amp;, int)â /usr/local/include/boost/asio/detail/task_io_service_operation.hpp:34:8: note: candidate is: void boost::asio::detail::task_io_service_operation::complete(boost::asio::detail::task_io_service&amp;) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6837 Trac 1.4.3 chris_kohlhoff Tue, 29 May 2012 00:01:01 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6837#comment:1 https://svn.boost.org/trac10/ticket/6837#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Somehow your environment is mixing headers from different boost versions. Check your include path, and perhaps try reinstalling boost. </p> Ticket