[MacPorts] #54886: inkscape @0.92.2: error: call to 'abs' is ambiguous
MacPorts
noreply at macports.org
Mon Oct 23 16:43:38 UTC 2017
#54886: inkscape @0.92.2: error: call to 'abs' is ambiguous
---------------------------+--------------------------------------
Reporter: tempesti0n1c | Owner: dbevans
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: fixed | Keywords: highsierra sierra xcode9
Port: inkscape |
---------------------------+--------------------------------------
Comment (by danchr):
In [changeset:"542661ba214f200c67ac40814b3ead3199c94f46/macports-ports"
542661ba214f200c67ac40814b3ead3199c94f46/macports-ports]:
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="542661ba214f200c67ac40814b3ead3199c94f46"
inkscape: fix build in High Sierra (maintainer timeout)
The current version of Inkscape fails with a build error due to an
ambigious call to abs(). Indeed, i->pathNext->id.objID is of type
unsigned int, for which abs() does not make much sense. Adding a cast
to 'long' fixes it.
The root cause of the bug is likely that the code isn't strictly valid
C++, and so the version of Clang included with Xcode 9 rejects it,
where earlier versions of Clang accepted it. Since this is a build
fix, we don't bump the revision.
PR submitted two weeks ago, but the maintainer didn't respond.
(Based on suggestion by Michael Lass)
Fixes: https://trac.macports.org/ticket/54886
}}}
--
Ticket URL: <https://trac.macports.org/ticket/54886#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list