<div dir="ltr"><div><div><div><div>Hi guys,<br></div>I'm not sure if this is the right place, but kst failed to build on my Arch Linux box, with an error about ambigious function call which I resolved with this patch:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">diff --git a/src/libkstmath/curve.cpp b/src/libkstmath/curve.cpp<br>index dc61ae1..05c992e 100644<br>--- a/src/libkstmath/curve.cpp<br>+++ b/src/libkstmath/curve.cpp<br>@@ -1252,7 +1252,7 @@ qDebug() << "y not in bounds"<br>         pt.setX(m_X * rX + b_X);<br>         pt.setY(m_Y * rY + b_Y);<br>         if (rect.contains(pt) && pt != lastPt &&<br>-            (lastPt.isNull() || (abs(pt.x() - lastPt.x()) > size) || ((size==0) && (abs(pt.y() - lastPt.y()) > 0)))) {<br>+            (lastPt.isNull() || (fabs(pt.x() - lastPt.x()) > size) || ((size==0) && (fabs(pt.y() - lastPt.y()) > 0)))) {<br> #ifdef BENCHMARK<br>           ++numberOfPointsDrawn;<br> #endif<br></blockquote><br></div>Basically it boils down to abs -> fabs.<br><br></div>Full error message:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">[ 14%] Building CXX object src/libkstmath/CMakeFiles/kst2math.dir/curve.cpp.o<br>/home/reinis/tmp/kst-git/src/kst/src/libkstmath/curve.cpp: In member function ‘virtual void Kst::Curve::updatePaintObjects(const Kst::CurveRenderContext&)’:<br>/home/reinis/tmp/kst-git/src/kst/src/libkstmath/curve.cpp:1255:57: error: call of overloaded ‘abs(qreal)’ is ambiguous<br>             (lastPt.isNull() || (abs(pt.x() - lastPt.x()) > size) || ((size==0) && (abs(pt.y() - lastPt.y()) > 0)))) {<br><br></blockquote><br></div>gcc version:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">reinis@workstation ~/tmp/kst-git $ gcc -v<br>Using built-in specs.<br>COLLECT_GCC=gcc<br>COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapper<br>Target: x86_64-unknown-linux-gnu<br>Configured with: /build/gcc-multilib/src/gcc-5.2.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=<a href="https://bugs.archlinux.org/" target="_blank">https://bugs.archlinux.org/</a> --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=gcc4-compatible<br>Thread model: posix<br>gcc version 5.2.0 (GCC) <br></blockquote><br clear="all"><div><div><div><div><div><div><div><div><div>qt version:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">reinis@workstation ~/tmp/kst-git $ pacman -Qi qt4<br>Name           : qt4<br>Version        : 4.8.7-2<br></blockquote><br></div><div>Git revsion of kst I was building: b35d42633bde00f5dfe40a97bccd689fa78f51df (latest at the time of writing).<br><br></div><div>Hope this helps, <br>Reinis</div></div></div></div></div></div></div></div></div></div>