[MacPorts] #71181: cclient @2007f_4: error: incompatible function pointer types

MacPorts noreply at macports.org
Tue Oct 29 06:32:29 UTC 2024


#71181: cclient @2007f_4: error: incompatible function pointer types
-------------------------+---------------------
  Reporter:  Oniimoucha  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.10.2
Resolution:              |   Keywords:  sequoia
      Port:  cclient     |
-------------------------+---------------------

Comment (by ryandesign):

 From the version number, this software was released in 2007, when Mac OS X
 10.5 was current.

 The signature of the `scandir` function changed to include a `const` in OS
 X 10.8. See comment:ticket:69792:3.

 Previously, incompatible function pointer types was just a warning. As of
 Xcode 16 it is an error and needs to be fixed properly. Software wanting
 to use `scandir` should detect what the signature of that function is in
 the current OS and pass whatever the appropriate parameters are for that
 signature.

 Or, the software could just use the current `scandir` signature and rely
 on legacy-support to provide compatibility with older systems; see #70702.

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


More information about the macports-tickets mailing list