Description: call of overloaded ‘abs(double)’ is ambiguous AMF Tools are integrated into Repsnapper and currently FTBFS on Yakkety. Any abs(double) must be replaced by std::abs(double). While the expectation was for it to affect all arches, for some reason only PPC64EL and PPC are being affected. Author: Tiago Stürmer Daitx Bug: https://sourceforge.net/p/amftools/discussion/general/thread/bea6ee53/ Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/repsnapper/+bug/1619289 Last-Update: 2016-09-01 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/libraries/amf/amftools-code/include/STL_File.h +++ b/libraries/amf/amftools-code/include/STL_File.h @@ -89,7 +89,7 @@ public: Vec3D v; int OrigIndex; - static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(abs(v1.v.z - v2.v.z) <= WeldThresh){ if(abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set + static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(std::abs(v1.v.z - v2.v.z) <= WeldThresh){ if(std::abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set static double WeldThresh; //weld threshold for importing from STL };