[Boost-bugs] [Boost C++ Libraries] #2607: asio compilation error on solaris 10

Subject: [Boost-bugs] [Boost C++ Libraries] #2607: asio compilation error on solaris 10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-23 08:08:51


#2607: asio compilation error on solaris 10
------------------------------------+---------------------------------------
 Reporter: dirkmoermans_at_[hidden] | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: asio
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
------------------------------------+---------------------------------------
 the following does not compile against boost 1.37 on solaris 10 using gcc
 (64 bits compile).


 {{{
 #define BOOST_ASIO_DISABLE_DEV_POLL


 #include <boost/asio.hpp>
 }}}


 The compile error is:


 {{{
 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
 }}}

 including cstring works around the problem:


 {{{
 #define BOOST_ASIO_DISABLE_DEV_POLL


 #include <cstring> // because of missing header in asio
 #include <boost/asio.hpp>
 }}}

 An appropriate solution would probably include cstring in
 posix_fd_set_adapter.hpp or avoid using FD_SET on Solaris.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2607>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC