[MacPorts] #66221: mongo-c-driver: Failing to build on macOS 12.6.1

MacPorts noreply at macports.org
Sat Nov 12 04:07:01 UTC 2022


#66221: mongo-c-driver: Failing to build on macOS 12.6.1
-----------------------------+------------------------
  Reporter:  ConnectGrid     |      Owner:  ryandesign
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  monterey
      Port:  mongo-c-driver  |
-----------------------------+------------------------

Comment (by ConnectGrid):

 The first error generated:

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mongo-c-driver/mongo-c-driver/work/mongo-c-driver-1.23.1/src/libmongoc/src/mongoc
 /mongoc-counters.c:114:21: error: implicit declaration of function
 'getpagesize' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
 :info:build    return BSON_MAX (getpagesize (), size);
 :info:build                     ^
 :info:build 1 error generated.
 }}}


 seems to be related to `getpagesize()` being deprecated and the
 `PAGE_SIZE` macro should be used instead.

 References:
 - https://github.com/giampaolo/psutil/issues/1791
 - https://github.com/giampaolo/psutil/issues/1906
 -
 https://github.com/giampaolo/psutil/pull/1907/commits/6014b500c0f8987aaf50bfa02bae8e0d8a13e621

 Is this a bug with MongoDB itself, or can it be fixed in the Portfile?

-- 
Ticket URL: <https://trac.macports.org/ticket/66221#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list