Boost C++ Libraries: Ticket #2607: asio compilation error on solaris 10 https://svn.boost.org/trac10/ticket/2607 <p> the following does not compile against boost 1.37 on solaris 10 using gcc (64 bits compile). </p> <pre class="wiki">#define BOOST_ASIO_DISABLE_DEV_POLL #include &lt;boost/asio.hpp&gt; </pre><p> The compile error is: </p> <pre class="wiki">In file included from include/boost-1_37/boost/asio/detail/fd_set_adapter.hpp:24, from include/boost-1_37/boost/asio/detail/select_reactor.hpp:32, from include/boost-1_37/boost/asio/impl/io_service.ipp:27, from include/boost-1_37/boost/asio/io_service.hpp:550, from include/boost-1_37/boost/asio/basic_io_object.hpp:20, from include/boost-1_37/boost/asio/basic_socket.hpp:24, from include/boost-1_37/boost/asio/basic_datagram_socket.hpp:25, from include/boost-1_37/boost/asio.hpp:20, from asio.cpp:4: include/boost-1_37/boost/asio/detail/posix_fd_set_adapter.hpp: In constructor 'boost::asio::detail::posix_fd_set_adapter::posix_fd_set_adapter()': include/boost-1_37/boost/asio/detail/posix_fd_set_adapter.hpp:36: error: 'memset' was not declared in this scope </pre><p> including cstring works around the problem: </p> <pre class="wiki">#define BOOST_ASIO_DISABLE_DEV_POLL #include &lt;cstring&gt; // because of missing header in asio #include &lt;boost/asio.hpp&gt; </pre><p> An appropriate solution would probably include cstring in posix_fd_set_adapter.hpp or avoid using FD_SET on Solaris. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2607 Trac 1.4.3 chris_kohlhoff Sun, 01 Feb 2009 12:50:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2607#comment:1 https://svn.boost.org/trac10/ticket/2607#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/50948" title="Add include of &lt;cstring&gt; to fix a compile error on Solaris 10. Fixes ...">[50948]</a>) Add include of &lt;cstring&gt; to fix a compile error on Solaris 10. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2607" title="#2607: Bugs: asio compilation error on solaris 10 (closed: fixed)">#2607</a>. </p> Ticket chris_kohlhoff Wed, 04 Feb 2009 06:22:51 GMT <link>https://svn.boost.org/trac10/ticket/2607#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2607#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51004" title="Merged revisions 50943-50950,50961-50964,50987 via svnmerge from ...">[51004]</a>) Merged revisions 50943-50950,50961-50964,50987 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50943" title="Need to specify socket lib to link correctly on QNX. Fixes #2504. ">r50943</a> | chris_kohlhoff | 2009-02-01 22:37:18 +1100 (Sun, 01 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Need to specify socket lib to link correctly on QNX. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2504" title="#2504: Patches: asio tests need to be linked to socket lib on QNX 6 (closed: fixed)">#2504</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50944" title="Use correct size for IP_MULTICAST_LOOP option on QNX. Fixes #2530. ">r50944</a> | chris_kohlhoff | 2009-02-01 22:42:09 +1100 (Sun, 01 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Use correct size for IP_MULTICAST_LOOP option on QNX. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2530" title="#2530: Patches: Size of data for IP_MULTICAST_LOOP socket option incorrect on QNX 6.4.0 (closed: fixed)">#2530</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50945" title="Improve warning message when _WIN32_WINNT is not correctly defined. ...">r50945</a> | chris_kohlhoff | 2009-02-01 22:57:01 +1100 (Sun, 01 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Improve warning message when _WIN32_WINNT is not correctly defined. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2541" title="#2541: Bugs: Asio not working on windows due to QueueUserAPC missing in global namespace (closed: fixed)">#2541</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50946" title="Suppress unused result warning. Fixes #2534. ">r50946</a> | chris_kohlhoff | 2009-02-01 23:28:12 +1100 (Sun, 01 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Suppress unused result warning. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2534" title="#2534: Bugs: Removing gcc warning (closed: fixed)">#2534</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50947" title="Ensure arguments to windows::overlapped_ptr::complete() are passed ...">r50947</a> | chris_kohlhoff | 2009-02-01 23:41:01 +1100 (Sun, 01 Feb 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Ensure arguments to windows::overlapped_ptr::complete() are passed through to the completion handler. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2614" title="#2614: Bugs: asio overlapped_ptr::complete ignores arguments (closed: fixed)">#2614</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50948" title="Add include of &lt;cstring&gt; to fix a compile error on Solaris 10. Fixes ...">r50948</a> | chris_kohlhoff | 2009-02-01 23:50:08 +1100 (Sun, 01 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add include of &lt;cstring&gt; to fix a compile error on Solaris 10. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2607" title="#2607: Bugs: asio compilation error on solaris 10 (closed: fixed)">#2607</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50949" title="Clear the last error following a successful Windows API call, since ...">r50949</a> | chris_kohlhoff | 2009-02-02 00:25:05 +1100 (Mon, 02 Feb 2009) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Clear the last error following a successful Windows API call, since some socket providers may leave last error set even when the call succeeds. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50950" title="Fix errors in SSL overview and add a note about handshaking. Fixes ...">r50950</a> | chris_kohlhoff | 2009-02-02 00:42:33 +1100 (Mon, 02 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix errors in SSL overview and add a note about handshaking. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2617" title="#2617: Bugs: SSL overview documentation issues (closed: fixed)">#2617</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2619" title="#2619: Bugs: SSL overview documentation: handshake missing (closed: fixed)">#2619</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50961" title="Use a pipe if eventfd is not supported at runtime. Fixes #2683. ">r50961</a> | chris_kohlhoff | 2009-02-02 17:18:59 +1100 (Mon, 02 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Use a pipe if eventfd is not supported at runtime. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2683" title="#2683: Bugs: eventfd_select_interrupter: Function not implemented (closed: fixed)">#2683</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50962" title="Add link to asio wiki. ">r50962</a> | chris_kohlhoff | 2009-02-02 18:06:00 +1100 (Mon, 02 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add link to asio wiki. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50963" title="Use the workaround syntax for specifying a return type with ...">r50963</a> | chris_kohlhoff | 2009-02-02 20:36:11 +1100 (Mon, 02 Feb 2009) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Use the workaround syntax for specifying a return type with boost::bind. Needed for the SSL support to work on some older compilers (in particular, g++ 3.4.5 as used with MinGW). </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50964" title="Update asio version number. ">r50964</a> | chris_kohlhoff | 2009-02-02 20:37:10 +1100 (Mon, 02 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Update asio version number. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/50987" title="Fix generated documentation where the overloads of a function have ...">r50987</a> | chris_kohlhoff | 2009-02-03 22:00:39 +1100 (Tue, 03 Feb 2009) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix generated documentation where the overloads of a function have different brief descriptions. </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> </channel> </rss>