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

MacPorts noreply at macports.org
Mon Nov 20 01:04:23 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):

 Can someone test clang-devel on 10.9 with the 10.10 SDK against this
 version of legacysupport?

     https://github.com/macports/macports-legacy-
 support/pull/69/commits/f8698e793789e6afce360a17f0d96b934e34e7a0

 Note that this is the second last commit in that pull request's commit
 history, not the last commit. Don't test the last commit. Test the second
 last commit. Actually, I would like to confirm that the last commit
 DOESN'T fix the problem. But I'm convinced that it won't, and my idle
 curiosity isn't worth anyone's valuable time.

 This problem was due to the fact that fdopendir in legacysupport never
 worked properly, and to fix it, a wrapper DIR struct and lots of wrapper
 functions were created. That meant that when compiling something on 10.9
 but with the 10.10 SDK, the fdopendir signatures were different (DIR had
 different definitions on 10.9 which doesn't have fdopendir, and on 10.10
 which does have it).

 I don't have 10.9 and wouldn't know how to compile legacysupport's own
 tests with there the 10.10 SDK anyway, so I can't test it.

 Please test this. The same pull request also fixes 10.4 (although there is
 some debate about that) which has been broken for too long and is waiting
 for this fix as well.

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


More information about the macports-tickets mailing list