Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-47145

Mongodb r3.4.24 build error on recent NetBSD

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Portability
    • None
    • ALL

      Recent NetBSD builds have changed the API of kqueue's EV_SET to match other OSen. The following patch fixes the build:

       

      --- src/third_party/asio-master/asio/include/asio/detail/impl/kqueue_reactor.ipp.old    2020-03-24 18:20:28.526412948 +1100
      +++ src/third_party/asio-master/asio/include/asio/detail/impl/kqueue_reactor.ipp        2020-03-27 14:46:34.262866049 +1100
      @@ -28,6 +28,9 @@
       #include "asio/detail/push_options.hpp"
      
       #if defined(__NetBSD__)
      +# include <sys/param.h>
      +#endif
      +#if defined(__NetBSD__) && __NetBSD_Version__ < 999001500
       # define ASIO_KQUEUE_EV_SET(ev, ident, filt, flags, fflags, data, udata) \
           EV_SET(ev, ident, filt, flags, fflags, data, \
             reinterpret_cast<intptr_t>(static_cast<void*>(udata)))
      

      {{}}Also created upstream pull request:
      https://github.com/boostorg/asio/pull/334

            Assignee:
            Unassigned Unassigned
            Reporter:
            stixpjr@gmail.com Paul Ripke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: