[MacPorts] #68253: clang-devel, legacy-support: error: functions that differ only in their return type cannot be overloaded

MacPorts noreply at macports.org
Tue Dec 12 01:24:04 UTC 2023


#68253: clang-devel, legacy-support: error: functions that differ only in their
return type cannot be overloaded
------------------------------------------+--------------------
  Reporter:  ryandesign                   |      Owner:  (none)
      Type:  defect                       |     Status:  new
  Priority:  Normal                       |  Milestone:
 Component:  ports                        |    Version:  2.8.1
Resolution:                               |   Keywords:
      Port:  clang-devel, legacy-support  |
------------------------------------------+--------------------

Comment (by macportsraf):

 Hi. The uploaded main.log file only contains errors relating to the
 PyObject_HEAD_INIT macro. I can't see any errors about "has no symbols".
 Even so, those errors weren't the errors that lead to this issue (and I
 don't think that "has no symbols" errors are necessarily a problem - they
 might just mean that nothing needed to be included in a particular
 translation unit on the current platform). This issue relates to the fact
 that the legacysupport implementation of fdopendir has a different
 function signature up to 10.9 (via the legacysupport library) and from
 10.10 onwards (via macOS itself).

 And sorry, but I can't provide instructions for how to test this. Maybe
 @ryandesign can. I don't know how the original problem came about. It was
 the result of building clang-devel on 10.9 but using the 10.10 SDK (I
 don't know how to do that, or why you would want to). 10.9 doesn't have
 fdopendir, so it requires the legacysupport library's implementation, but
 the 10.10 SDK assumes the existence of fdopendir, and the legacysupport
 implementation of fdopendir had a different function signature because it
 had a different definition of the DIR struct, and the multiple function
 signatures was the cause of the error.

 There's a pull request (that's been dragging on for ages) which now has a
 nice simple implementation of fdopendir that does have the same function
 signature as the the 10.10+ SDKs. It's dragging on for various reasons,
 but mainly (I think) because the testing that I'd like to see happen isn't
 happening, and a lot of the testing that has happened has been with the
 wrong commit because of an unhelpfully complicated commit history. There's
 now a single commit, and hopefully it'll soon get merged at least into the
 devel branch of legacysupport, and more testing will ensue.

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


More information about the macports-tickets mailing list