[SERVER-47145] Mongodb r3.4.24 build error on recent NetBSD Created: 27/Mar/20  Updated: 27/Mar/20  Resolved: 27/Mar/20

Status: Closed
Project: Core Server
Component/s: Portability
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Paul Ripke Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

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



 Comments   
Comment by Carl Champain (Inactive) [ 27/Mar/20 ]

Hi stixpjr@gmail.com,

MongoDB 3.4 is already end-of-lifed, which means it is unsupported by us. We strongly recommend you upgrade to a supported version. If you need assistance troubleshooting, I encourage you to ask our community by posting on the MongoDB Community Forums or on Stack Overflow with the mongodb tag.

Thanks,

Carl

Comment by Paul Ripke [ 27/Mar/20 ]

Feel free to drop the priority of this, I can't figure out how to edit the details.

Generated at Thu Feb 08 05:13:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.