我是参考http://www.zendapi.org/manual/0.0.1/compileanddeploy/compilezendapi.html安装的。
我的gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC),cmake version 3.9.4,php版本是PHP 7.1.5 (cli) (built: Oct 9 2017 14:58:55) ( ZTS DEBUG )。
make -j 8时报错,详情如下:
[root@bogon build-zendapi]# make -j 8
[ 2%] Building CXX object src/CMakeFiles/zapi.dir/Global.cpp.o
[ 4%] Building CXX object src/CMakeFiles/zapi.dir/kernel/StreamBuffer.cpp.o
[ 6%] Building CXX object src/CMakeFiles/zapi.dir/kernel/Exception.cpp.o
[ 8%] Building CXX object src/CMakeFiles/zapi.dir/protocol/AbstractIterator.cpp.o
[ 10%] Building CXX object src/CMakeFiles/zapi.dir/protocol/ArrayAccess.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zapi.dir/lang/Extension.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zapi.dir/lang/Ini.cpp.o
[ 17%] Building CXX object src/CMakeFiles/zapi.dir/lang/Interface.cpp.o
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/src/Global.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/src/Global.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/src/Global.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/src/Global.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/src/Global.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/src/Global.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/Exception.h:25,
from /root/workspace/zendapidevel/src/kernel/Exception.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/exception:37,
from /root/workspace/zendapidevel/include/zapi/kernel/Exception.h:22,
from /root/workspace/zendapidevel/src/kernel/Exception.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/Exception.h:25,
from /root/workspace/zendapidevel/src/kernel/Exception.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/Exception.h:25,
from /root/workspace/zendapidevel/src/kernel/Exception.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/exception:37,
from /root/workspace/zendapidevel/include/zapi/kernel/Exception.h:22,
from /root/workspace/zendapidevel/src/kernel/Exception.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/Exception.h:25,
from /root/workspace/zendapidevel/src/kernel/Exception.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/ds/Variant.h:20,
from /root/workspace/zendapidevel/include/zapi/protocol/AbstractIterator.h:22,
from /root/workspace/zendapidevel/src/protocol/AbstractIterator.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/ds/Variant.h:20,
from /root/workspace/zendapidevel/include/zapi/protocol/AbstractIterator.h:22,
from /root/workspace/zendapidevel/src/protocol/AbstractIterator.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/ds/Variant.h:20,
from /root/workspace/zendapidevel/include/zapi/protocol/AbstractIterator.h:22,
from /root/workspace/zendapidevel/src/protocol/AbstractIterator.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/ds/Variant.h:20,
from /root/workspace/zendapidevel/include/zapi/protocol/AbstractIterator.h:22,
from /root/workspace/zendapidevel/src/protocol/AbstractIterator.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/ds/Variant.h:20,
from /root/workspace/zendapidevel/include/zapi/protocol/AbstractIterator.h:22,
from /root/workspace/zendapidevel/src/protocol/AbstractIterator.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/ds/Variant.h:20,
from /root/workspace/zendapidevel/include/zapi/protocol/AbstractIterator.h:22,
from /root/workspace/zendapidevel/src/protocol/AbstractIterator.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/protocol/ArrayAccess.h:22,
from /root/workspace/zendapidevel/src/protocol/ArrayAccess.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/protocol/ArrayAccess.h:22,
from /root/workspace/zendapidevel/src/protocol/ArrayAccess.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/protocol/ArrayAccess.h:22,
from /root/workspace/zendapidevel/src/protocol/ArrayAccess.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/protocol/ArrayAccess.h:22,
from /root/workspace/zendapidevel/src/protocol/ArrayAccess.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/protocol/ArrayAccess.h:22,
from /root/workspace/zendapidevel/src/protocol/ArrayAccess.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/protocol/ArrayAccess.h:22,
from /root/workspace/zendapidevel/src/protocol/ArrayAccess.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/kernel/Exception.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/StreamBuffer.h:27,
from /root/workspace/zendapidevel/src/kernel/StreamBuffer.cpp:17:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/string:38,
from /root/workspace/zendapidevel/src/kernel/StreamBuffer.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/StreamBuffer.h:27,
from /root/workspace/zendapidevel/src/kernel/StreamBuffer.cpp:17:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/StreamBuffer.h:27,
from /root/workspace/zendapidevel/src/kernel/StreamBuffer.cpp:17:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/string:38,
from /root/workspace/zendapidevel/src/kernel/StreamBuffer.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/kernel/StreamBuffer.h:27,
from /root/workspace/zendapidevel/src/kernel/StreamBuffer.cpp:17:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/protocol/ArrayAccess.cpp.o] Error 1
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/lang/Ini.h:22,
from /root/workspace/zendapidevel/src/lang/Ini.cpp:19:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/lang/Ini.h:22,
from /root/workspace/zendapidevel/src/lang/Ini.cpp:19:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/lang/Ini.h:22,
from /root/workspace/zendapidevel/src/lang/Ini.cpp:19:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/lang/Ini.h:22,
from /root/workspace/zendapidevel/src/lang/Ini.cpp:19:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/lang/Ini.h:22,
from /root/workspace/zendapidevel/src/lang/Ini.cpp:19:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/lang/Ini.h:22,
from /root/workspace/zendapidevel/src/lang/Ini.cpp:19:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/AbstractClass.h:19,
from /root/workspace/zendapidevel/include/zapi/lang/Interface.h:22,
from /root/workspace/zendapidevel/src/lang/Interface.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/vm/AbstractClass.h:19,
from /root/workspace/zendapidevel/include/zapi/lang/Interface.h:22,
from /root/workspace/zendapidevel/src/lang/Interface.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/AbstractClass.h:19,
from /root/workspace/zendapidevel/include/zapi/lang/Interface.h:22,
from /root/workspace/zendapidevel/src/lang/Interface.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/AbstractClass.h:19,
from /root/workspace/zendapidevel/include/zapi/lang/Interface.h:22,
from /root/workspace/zendapidevel/src/lang/Interface.cpp:16:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/type_traits:38,
from /root/workspace/zendapidevel/include/zapi/Global.h:23,
from /root/workspace/zendapidevel/include/zapi/vm/AbstractClass.h:19,
from /root/workspace/zendapidevel/include/zapi/lang/Interface.h:22,
from /root/workspace/zendapidevel/src/lang/Interface.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/AbstractClass.h:19,
from /root/workspace/zendapidevel/include/zapi/lang/Interface.h:22,
from /root/workspace/zendapidevel/src/lang/Interface.cpp:16:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/protocol/AbstractIterator.cpp.o] Error 1
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/kernel/StreamBuffer.cpp.o] Error 1
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/internal/CallablePrivate.h:19,
from /root/workspace/zendapidevel/src/lang/Extension.cpp:18:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:117:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/iosfwd:38,
from /usr/include/c++/4.8.2/ios:38,
from /usr/include/c++/4.8.2/ostream:38,
from /root/workspace/zendapidevel/src/lang/Extension.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/internal/CallablePrivate.h:19,
from /root/workspace/zendapidevel/src/lang/Extension.cpp:18:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
In file included from /usr/local/php/include/php/Zend/zend_types.h:27:0,
from /usr/local/php/include/php/Zend/zend.h:31,
from /usr/local/php/include/php/main/php.h:35,
from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:33,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/internal/CallablePrivate.h:19,
from /root/workspace/zendapidevel/src/lang/Extension.cpp:18:
/usr/local/php/include/php/Zend/zend_operators.h: In function ‘zend_long zend_dval_to_lval_cap(double)’:
/usr/local/php/include/php/main/../main/php_config.h:2520:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
/usr/local/php/include/php/main/../main/php_config.h:2520:30: note: candidates are:
#define zend_isnan(a) isnan(a)
^
/usr/local/php/include/php/Zend/zend_portability.h:314:52: note: in definition of macro ‘UNEXPECTED’
define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
/usr/local/php/include/php/Zend/zend_operators.h:128:48: note: in expansion of macro ‘zend_isnan’
if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) {
^
In file included from /usr/include/features.h:375:0,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39,
from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
from /usr/include/c++/4.8.2/iosfwd:38,
from /usr/include/c++/4.8.2/ios:38,
from /usr/include/c++/4.8.2/ostream:38,
from /root/workspace/zendapidevel/src/lang/Extension.cpp:16:
/usr/include/bits/mathcalls.h:235:1: note: int isnan(double)
__MATHDECL_1 (int,isnan,, (Mdouble __value)) attribute ((const));
^
In file included from /root/workspace/zendapidevel/include/zapi/PhpHeaders.h:20:0,
from /root/workspace/zendapidevel/include/zapi/Global.h:35,
from /root/workspace/zendapidevel/include/zapi/vm/internal/CallablePrivate.h:19,
from /root/workspace/zendapidevel/src/lang/Extension.cpp:18:
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double __x)
^
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double __x)
^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/Global.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/zapi.dir/lang/Interface.cpp.o] Error 1
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/lang/Ini.cpp.o] Error 1
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-macro-redefined" [enabled by default]
make[2]: *** [src/CMakeFiles/zapi.dir/lang/Extension.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zapi.dir/all] Error 2
make: *** [all] Error 2