Package: googletest
Version: 1.8.0-3
Severity: serious
thanks
Hi,
building the alljoyn packages (alljoyn-core-1504, alljoyn-core-1509,
alljoyn-core-1604) with googletest and gcc-6 gives the following compile
error. I guess the "#include <math.h>" jusst needs to be replaced by "#include
<cmath>" for gcc-6 now.
Thanks!
Thorsten
g++ -o build/linux/x86_64/release/obj/about/unittest/gtest-all.o -c -Wall
-Werror -pipe -std=gnu++0x -fno-exceptions -fno-strict-aliasing
-fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections
-fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated
-Wno-unknown-pragmas -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG
-DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX
-D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64
-DGTEST_HAS_RTTI=0 -Ibuild/linux/x86_64/release/dist/cpp/inc
-Ibuild/linux/x86_64/release/dist/c/inc
-Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc -I/usr/src/gtest
-I/usr/src/gtest/include /usr/src/gtest/src/gtest-all.cc
In file included from /usr/src/gtest/src/gtest.cc:38:0,
from /usr/src/gtest/src/gtest-all.cc:42:
/usr/include/c++/6/math.h:63:12: error: 'std::fpclassify' has not been declared
using std::fpclassify;
^~~~~~~~~~
/usr/include/c++/6/math.h:64:12: error: 'std::isfinite' has not been declared
using std::isfinite;
^~~~~~~~
/usr/include/c++/6/math.h:65:12: error: 'std::isinf' has not been declared
using std::isinf;
^~~~~
/usr/include/c++/6/math.h:66:12: error: 'std::isnan' has not been declared
using std::isnan;
^~~~~
/usr/include/c++/6/math.h:67:12: error: 'std::isnormal' has not been declared
using std::isnormal;
^~~~~~~~
/usr/include/c++/6/math.h:68:12: error: 'std::signbit' has not been declared
using std::signbit;
^~~~~~~
/usr/include/c++/6/math.h:69:12: error: 'std::isgreater' has not been declared
using std::isgreater;
^~~~~~~~~
/usr/include/c++/6/math.h:70:12: error: 'std::isgreaterequal' has not been
declared
using std::isgreaterequal;
^~~~~~~~~~~~~~
/usr/include/c++/6/math.h:71:12: error: 'std::isless' has not been declared
using std::isless;
^~~~~~
/usr/include/c++/6/math.h:72:12: error: 'std::islessequal' has not been
declared
using std::islessequal;
^~~~~~~~~~~
/usr/include/c++/6/math.h:73:12: error: 'std::islessgreater' has not been
declared
using std::islessgreater;
^~~~~~~~~~~~~
/usr/include/c++/6/math.h:74:12: error: 'std::isunordered' has not been
declared
using std::isunordered;
^~~~~~~~~~~
scons: *** [build/linux/x86_64/release/obj/about/unittest/gtest-all.o] Error 1
scons: building terminated because of errors.