[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:

 /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.

 - https://github.com/giampaolo/psutil/issues/1791
 - https://github.com/giampaolo/psutil/issues/1906

 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