Workstation Gruppe: build fails with: 'static int vtkMath::IsInf(double)' error: call of overloaded 'isinf(double&)' is ambiguous
On OpenSuse:
ar.graf@zam1115: gcc --version
gcc (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ar.graf@zam1115: lsb_release -a
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: openSUSE project
Description: openSUSE 13.1 (Bottle) (x86_64)
Release: 13.1
Codename: Bottle
Full make Error:
In file included from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/JPoint.cpp:37:0:
/usr/include/vtk-6.0/vtkMath.h: In static member function 'static int vtkMath::IsInf(double)':
/usr/include/vtk-6.0/vtkMath.h:1249:18: error: call of overloaded 'isinf(double&)' is ambiguous
return (isinf(x) != 0); // Force conversion to bool
^
/usr/include/vtk-6.0/vtkMath.h:1249:18: note: candidates are:
In file included from /usr/include/features.h:364:0,
from /usr/include/c++/4.8/x86_64-suse-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8/x86_64-suse-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/../Debug.h:36,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/JPoint.cpp:33:
/usr/include/bits/mathcalls.h:201:1: note: int isinf(double)
__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
^
In file included from /usr/include/c++/4.8/random:38:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/../general/Macros.h:37,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/JPoint.cpp:35:
/usr/include/c++/4.8/cmath:608:3: note: constexpr bool std::isinf(long double)
isinf(long double __x)
^
/usr/include/c++/4.8/cmath:604:3: note: constexpr bool std::isinf(double)
isinf(double __x)
^
/usr/include/c++/4.8/cmath:600:3: note: constexpr bool std::isinf(float)
isinf(float __x)
^
In file included from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/JPoint.cpp:37:0:
/usr/include/vtk-6.0/vtkMath.h: In static member function 'static int vtkMath::IsNan(double)':
/usr/include/vtk-6.0/vtkMath.h:1259:18: error: call of overloaded 'isnan(double&)' is ambiguous
return (isnan(x) != 0); // Force conversion to bool
^
/usr/include/vtk-6.0/vtkMath.h:1259:18: note: candidates are:
In file included from /usr/include/features.h:364:0,
from /usr/include/c++/4.8/x86_64-suse-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8/x86_64-suse-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/../Debug.h:36,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/JPoint.cpp:33:
/usr/include/bits/mathcalls.h:234:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
^
In file included from /usr/include/c++/4.8/random:38:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/../general/Macros.h:37,
from /home/zam/ar.graf/jps_all/jpsvis/src/geometry/JPoint.cpp:35:
/usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
/usr/include/c++/4.8/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
make[2]: *** [CMakeFiles/JPSvis.dir/src/geometry/JPoint.cpp.o] Error 1
make[1]: *** [CMakeFiles/JPSvis.dir/all] Error 2
make: *** [all] Error 2