Modify

Ticket #6098 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

asio doesn't compile on NetBSD

Reported by: tnn@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

Compiling a trivial program fails on NetBSD:

#include <boost/asio.hpp>
int main(void) {
        return 0;
}

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*&, 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'

Attachments

patch-ai Download (1.1 KB) - added by tnn@… 2 years ago.
Patch which solves the issue

Change History

Changed 2 years ago by tnn@…

Patch which solves the issue

comment:1 Changed 2 years ago by anonymous

  • Owner set to chris_kohlhoff
  • Component changed from None to asio

comment:2 Changed 2 years ago by chris_kohlhoff

(In [76425]) Fix for NetBSD. Refs #6098.

comment:3 Changed 2 years ago by chris_kohlhoff

  • Status changed from new to closed
  • Resolution set to fixed

(In [76516]) Merge from trunk:

  • Chrono support.
  • Added object_handle support.
  • Need to enable the basic_handle class when object_handle is supported.
  • Update copyright notices.
  • Fix MSVC "performance warning".
  • Fix for NetBSD. Fixes #6098.
  • Fix regression in buffered_write_stream. Fixes #6310.
  • Fix deadlock on Mac OS X. Fixes #6275.
  • 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 #6048.
  • Fix non-paged pool "leak" on Windows when io_service is repeatedly run without anything to do. Fixes #6321.
  • Disable object_handle on Windows CE.
  • Add extra include required for OVERLAPPED struct.
  • Fix doxygen comments.
  • Update documentation.
  • Add missing class.
  • Update copyright year.
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.