[MacPorts] #70418: mpich fails to build with gcc14: error: passing argument 3 of 'scandir' from incompatible pointer type

MacPorts noreply at macports.org
Mon Jul 22 23:33:17 UTC 2024


#70418: mpich fails to build with gcc14: error: passing argument 3 of 'scandir'
from incompatible pointer type
---------------------------------+----------------------
  Reporter:  barracuda156        |      Owner:  eborisch
      Type:  defect              |     Status:  assigned
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.9.3
Resolution:                      |   Keywords:
      Port:  mpich, mpich-gcc14  |
---------------------------------+----------------------

Comment (by ryandesign):

 You didn't attach a log or say what version of OS you're using but the
 prototype of `scandir` did change in OS X 10.8; modern software is
 probably written to assume that newer `scandir`.

 This has come up several times before; see query:summary=~scandir

 An example of how to patch software to work with the 10.7-and-older
 `scandir` is [74405bfa3c405e2c316d669fba0a0a744cc6dad5/macports-ports].

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


More information about the macports-tickets mailing list