[MacPorts] #56827: cuneiform @1.1.0_4: error: call to 'abs' is ambiguous

MacPorts noreply at macports.org
Tue Jul 17 14:24:54 UTC 2018


#56827: cuneiform @1.1.0_4: error: call to 'abs' is ambiguous
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  cuneiform
------------------------+-----------------------
 cuneiform fails to build, at least on High Sierra with Xcode 9.4.1:

 {{{
 [...]/cuneiform-
 linux-1.1.0/cuneiform_src/Kern/rimage/sources/main/cricontrol.cpp:597:32:
 error: call to 'abs' is ambiguous
         wNewHeight = (mbMarginsFlag ? abs(mrMargins.rmBottomMarg -
 mrMargins.rmTopMarg) : mpSourceDIB->GetLinesNumber());
                                       ^~~
 /usr/include/stdlib.h:137:6: note: candidate function
 int      abs(int) __pure2;
          ^
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:111:44:
 note: candidate function
 inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT
 {return  labs(__x);}
                                            ^
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:113:44:
 note: candidate function
 inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT
 {return llabs(__x);}
                                            ^
 [...]/cuneiform-
 linux-1.1.0/cuneiform_src/Kern/rimage/sources/main/cricontrol.cpp:598:31:
 error: call to 'abs' is ambiguous
         wNewWidth = (mbMarginsFlag ? abs(mrMargins.rmLeftMarg -
 mrMargins.rmRightMarg) : mpSourceDIB->GetLineWidth());
                                      ^~~
 /usr/include/stdlib.h:137:6: note: candidate function
 int      abs(int) __pure2;
          ^
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:111:44:
 note: candidate function
 inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT
 {return  labs(__x);}
                                            ^
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:113:44:
 note: candidate function
 inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT
 {return llabs(__x);}
                                            ^
 2 errors generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/56827>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list