[Pkg-kde-extras] Bug#830454: labplot: FTBFS: CartesianCoordinateSystem.cpp:560:27: error: 'isnan' was not declared in this scope

Stefan Gerlach stefan.gerlach at uni-konstanz.de
Sat Jul 16 07:50:51 UTC 2016


Hi,

please replace "isnan" with "std::isnan" and use <cmath> instead of 
<math.h>. This is already fixed in the upcoming release 2.3.0 coming 
next week.

Stefan

On 07/08/2016 09:23 AM, Lucas Nussbaum wrote:
> Source: labplot
> Version: 2.2.0-1
> Severity: serious
> Tags: stretch sid
> User: debian-qa at lists.debian.org
> Usertags: qa-ftbfs-20160707 qa-ftbfs
> Justification: FTBFS on amd64
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Relevant part (hopefully):

>>                                                                 ^
>> [ 67%] Building CXX object src/CMakeFiles/labplot2.dir/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp.o
>> cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/src && /usr/bin/c++   -DGSL_VERSION=GSL_VERSION -DHAVE_GSL -DHAVE_NETCDF -DKCOREADDONS_LIB -DKGUIADDONS_LIB -DLVERSION=\"2.2.0\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/src -I/«PKGBUILDDIR»/src -I/«PKGBUILDDIR» -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu -I/«PKGBUILDDIR»/src/. -I/usr/include/gsl -I/.. -isystem /usr/include/KF5/KDELibs4Support -isystem /usr/include/KF5/KDELibs4Support/KDE -isystem /usr/include/KF5 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KCrash -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KIOFileWidgets -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/KF5/KItemViews -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/KF5/Solid -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KNotifications -isystem /usr/include/KF5/KIconThemes -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KGuiAddons -isystem /usr/include/KF5/KUnitConversion -isystem /usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -isystem /usr/include/KF5/KParts -isystem /usr/include/KF5/KArchive -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code -fno-omit-frame-pointer -fstack-protector -fno-exceptions   -fvisibility=default -fPIC -o CMakeFiles/labplot2.dir/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp.o -c /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp: In member function 'virtual QList<QLineF> CartesianCoordinateSystem::mapLogicalToScene(const QList<QLineF>&, const MappingFlags&) const':
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:560:27: error: 'isnan' was not declared in this scope
>>       if (!isnan(xGapBefore)) {
>>                            ^
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:560:27: note: suggested alternative:
>> In file included from /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:32:0:
>> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>>      isnan(_Tp __x)
>>      ^
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:575:26: error: 'isnan' was not declared in this scope
>>       if (!isnan(xGapAfter)) {
>>                           ^
>> /«PKGBUILDDIR»/src/ backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:575:26: note: suggested alternative:
>> In file included from /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:32:0:
>> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>>      isnan(_Tp __x)
>>      ^
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:590:27: error: 'isnan' was not declared in this scope
>>       if (!isnan(yGapBefore)) {
>>                            ^
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:590:27: note: suggested alternative:
>> In file included from /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:32:0:
>> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>>      isnan(_Tp __x)
>>      ^
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:605:26: error: 'isnan' was not declared in this scope
>>       if (!isnan(yGapAfter)) {
>>                           ^
>> /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:605:26: note: suggested alternative:
>> In file included from /«PKGBUILDDIR»/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp:32:0:
>> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>>      isnan(_Tp __x)
>>      ^
>> make[3]: *** [src/CMakeFiles/labplot2.dir/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp.o] Error 1
>
> The full build log is available from:
>    http://people.debian.org/~lucas/logs/2016/07/07/labplot_2.2.0-1_unstable_reb.normal.log
>
> A list of current common problems and possible solutions is available at
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
>
> About the archive rebuild: The rebuild was done on EC2 VM instances from
> Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
> failed build was retried once to eliminate random failures.
>


More information about the pkg-kde-extras mailing list