[MacPorts] #65002: inkscape @1.1.2_2: error: no matching function for call to 'isnan'

MacPorts noreply at macports.org
Sun May 29 12:22:01 UTC 2022


#65002: inkscape @1.1.2_2: error: no matching function for call to 'isnan'
-----------------------+----------------------
  Reporter:  ngwood    |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.2
Resolution:            |   Keywords:
      Port:  inkscape  |
-----------------------+----------------------

Comment (by detlevd):

 Same here, with inkscape 1.1.2 as well as with v1.2.0, on High Sierra
 (10.13.6) with XCode 10.1.
 Apparrently, the compiler isn't able to derive the base type 'Coord' (aka
 double) and thus fails. This can be resolved by explicitly accessing the
 stored value, that is by changing the line in src/display/cairo-utils.cpp
 {{{
                 if(std::isnan(arc->initialAngle()) ||
 std::isnan(arc->finalAngle())) {
 }}}
 to
 {{{
                 if(std::isnan(arc->initialAngle().radians0()) ||
 std::isnan(arc->finalAngle().radians0())) {
 }}}
 I'll attach a diff file.

 This part compiles fine now for me, but now v1.2.0 seems to have another
 issue in src/ui/dialog/objects.cpp where it doesn't compile a call to
 extract() although gnu++17 is switched on, but that's for another ticket.

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


More information about the macports-tickets mailing list