Boost C++ Libraries: Ticket #6098: asio doesn't compile on NetBSD https://svn.boost.org/trac10/ticket/6098 <p> Compiling a trivial program fails on NetBSD: </p> <pre class="wiki">#include &lt;boost/asio.hpp&gt; int main(void) { return 0; } </pre><hr /> <pre class="wiki">In file included from /usr/pkg/include/boost/asio/detail/kqueue_reactor.hpp:210:0, from /usr/pkg/include/boost/asio/detail/reactor.hpp:23, from /usr/pkg/include/boost/asio/detail/impl/task_io_service.ipp:25, from /usr/pkg/include/boost/asio/detail/task_io_service.hpp:180, from /usr/pkg/include/boost/asio/impl/io_service.hpp:64, from /usr/pkg/include/boost/asio/io_service.hpp:767, from /usr/pkg/include/boost/asio/basic_io_object.hpp:19, from /usr/pkg/include/boost/asio/basic_socket.hpp:19, from /usr/pkg/include/boost/asio/basic_datagram_socket.hpp:20, from /usr/pkg/include/boost/asio.hpp:20, from test.cpp:1: /usr/pkg/include/boost/asio/detail/impl/kqueue_reactor.ipp: In member function 'void boost::asio::detail::kqueue_reactor::deregister_descriptor(boost::asio::detail::socket_type, boost::asio::detail::kqueue_reactor::descriptor_state*&amp;, bool)': /usr/pkg/include/boost/asio/detail/impl/kqueue_reactor.ipp:291:7: error: invalid cast from type 'int' to type '__intptr_t' /usr/pkg/include/boost/asio/detail/impl/kqueue_reactor.ipp:293:7: error: invalid cast from type 'int' to type '__intptr_t' </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6098 Trac 1.4.3 tnn@… Sun, 06 Nov 2011 21:45:49 GMT attachment set https://svn.boost.org/trac10/ticket/6098 https://svn.boost.org/trac10/ticket/6098 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch-ai</span> </li> </ul> <p> Patch which solves the issue </p> Ticket anonymous Tue, 08 Nov 2011 16:05:38 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6098#comment:1 https://svn.boost.org/trac10/ticket/6098#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket chris_kohlhoff Thu, 12 Jan 2012 07:37:59 GMT <link>https://svn.boost.org/trac10/ticket/6098#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6098#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76425" title="Fix for NetBSD. Refs #6098.">[76425]</a>) Fix for NetBSD. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6098" title="#6098: Bugs: asio doesn't compile on NetBSD (closed: fixed)">#6098</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Sun, 15 Jan 2012 13:47:35 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6098#comment:3 https://svn.boost.org/trac10/ticket/6098#comment:3 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76516" title="Merge from trunk: * Chrono support. * Added object_handle support. ...">[76516]</a>) Merge from trunk: </p> <ul><li>Chrono support. </li></ul><ul><li>Added object_handle support. </li></ul><ul><li>Need to enable the basic_handle class when object_handle is supported. </li></ul><ul><li>Update copyright notices. </li></ul><ul><li>Fix MSVC "performance warning". </li></ul><ul><li>Fix for NetBSD. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6098" title="#6098: Bugs: asio doesn't compile on NetBSD (closed: fixed)">#6098</a>. </li></ul><ul><li>Fix regression in buffered_write_stream. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6310" title="#6310: Bugs: Buffered write stream broken (closed: fixed)">#6310</a>. </li></ul><ul><li>Fix deadlock on Mac OS X. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6275" title="#6275: Bugs: On Mac OS X deadline_timer::cancel() may hangs (closed: fixed)">#6275</a>. </li></ul><ul><li>On linux, connect can return EAGAIN in certain circumstances. Remap to another error so that it doesn't look like a non-blocking operation. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6048" title="#6048: Bugs: async_connect sometimes returns succes in case of error (closed: fixed)">#6048</a>. </li></ul><ul><li>Fix non-paged pool "leak" on Windows when io_service is repeatedly run without anything to do. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6321" title="#6321: Bugs: non-paged pool memory leak in win_iocp_io_service (closed: fixed)">#6321</a>. </li></ul><ul><li>Disable object_handle on Windows CE. </li></ul><ul><li>Add extra include required for OVERLAPPED struct. </li></ul><ul><li>Fix doxygen comments. </li></ul><ul><li>Update documentation. </li></ul><ul><li>Add missing class. </li></ul><ul><li>Update copyright year. </li></ul> Ticket