maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #06634
MariaDB r3955 make fail; " error: ‘isfinite’ was not declared in this scope"
hi,
upgrading a MariaDB 10/git src build from r3911 -> r3955, on x86_64
after configure, make fails with a warning & an error @,
...
[ 19%] Building CXX object
storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o
cd /usr/local/src/mariadb/bld/storage/connect && /usr/bin/g++-4.8
-DFORCE_INIT_OF_VARS -DHAVE_CONFIG_H -DHUGE_SUPPORT -DLIBXML2_SUPPORT
-DLINUX -DMARIADB -DMYSQL_DYNAMIC_PLUGIN -DMYSQL_SUPPORT -DODBC_SUPPORT
-DPIVOT_SUPPORT -DUBUNTU -DUNIX -DZIP_SUPPORT -Dconnect_EXPORTS -Wall
-O2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-march=amdfam10 -mtune=amdfam10 -std=c++11 -felide-constructors
-fno-exceptions -fno-rtti -Wall -Wno-unused-parameter -fno-exceptions
-fno-rtti -fpermissive -fexceptions -fPIC -O2 -g -DNDEBUG -DDBUG_OFF
-DMY_PTHREAD_FASTMUTEX=1 -fPIC -I/usr/local/src/mariadb/bld/include
-I/usr/include/libxml2 -I/usr/local/src/mariadb/include
-I/usr/local/src/mariadb/sql -I/usr/local/src/mariadb/bld/pcre
-I/usr/local/src/mariadb/pcre -I/usr/local/ssl/include -O2
-fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -march=amdfam10
-mtune=amdfam10 -Wall -Wmissing-declarations -Wno-write-strings
-Wno-unused-variable -Wno-unused-value -Wno-unused-function
-Wno-parentheses -o CMakeFiles/connect.dir/ha_connect.cc.o -c
/usr/local/src/mariadb/storage/connect/ha_connect.cc
In file included from /usr/local/src/mariadb/sql/gcalc_tools.h:21:0,
from /usr/local/src/mariadb/sql/spatial.h:28,
from /usr/local/src/mariadb/sql/item.h:3667,
from /usr/local/src/mariadb/sql/sql_lex.h:26,
from /usr/local/src/mariadb/sql/sql_class.h:463,
from
/usr/local/src/mariadb/storage/connect/ha_connect.cc:104:
/usr/local/src/mariadb/sql/gcalc_slicescan.h:29:40: warning: invalid
suffix on literal; C++11 requires a space between literal and identifier
[-Wliteral-suffix]
#define GCALC_DBUG_ENTER(a) DBUG_ENTER("Gcalc "a)
^
In file included from /usr/local/src/mariadb/sql/item.h:3669:0,
from /usr/local/src/mariadb/sql/sql_lex.h:26,
from /usr/local/src/mariadb/sql/sql_class.h:463,
from
/usr/local/src/mariadb/storage/connect/ha_connect.cc:104:
/usr/local/src/mariadb/sql/item_func.h: In member function ‘double
Item_func::check_float_overflow(double)’:
/usr/local/src/mariadb/sql/item_func.h:281:26: error: ‘isfinite’ was not
declared in this scope
return isfinite(value) ? value : raise_float_overflow();
^
/usr/local/src/mariadb/sql/item_func.h:281:26: note: suggested
alternative:
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 /usr/local/src/mariadb/sql/mdl.h:32,
from /usr/local/src/mariadb/sql/table.h:22,
from /usr/local/src/mariadb/sql/field.h:29,
from /usr/local/src/mariadb/sql/unireg.h:172,
from /usr/local/src/mariadb/sql/sql_class.h:24,
from
/usr/local/src/mariadb/storage/connect/ha_connect.cc:104:
/usr/include/c++/4.8/cmath:596:5: note: ‘std::isfinite’
isfinite(_Tp __x)
^
make[2]: *** [storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o]
Error 1
make[2]: Leaving directory `/usr/local/src/mariadb/bld'
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make[1]: Leaving directory `/usr/local/src/mariadb/bld'
make: *** [all] Error 2