php扩展版本api错误,编译 PHP 扩展出错,哪位大神帮忙看看

/bin/sh /home/vagrant/rocketmqphpclient/libtool --mode=compile g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/vagrant/rocketmqphpclient -DPHP_ATOM_INC -I/home/vagrant/rocketmqphpclient/include -I/home/vagrant/rocketmqphpclient/main -I/home/vagrant/rocketmqphpclient -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -std=c++11 -g -O2 -c /home/vagrant/rocketmqphpclient/rocketmqclient.cpp -o rocketmqclient.lo

libtool: compile: g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/vagrant/rocketmqphpclient -DPHP_ATOM_INC -I/home/vagrant/rocketmqphpclient/include -I/home/vagrant/rocketmqphpclient/main -I/home/vagrant/rocketmqphpclient -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -std=c++11 -g -O2 -c /home/vagrant/rocketmqphpclient/rocketmqclient.cpp -fPIC -DPIC -o .libs/rocketmqclient.o

In file included from /usr/include/php/Zend/zend_types.h:27:0,

from /usr/include/php/Zend/zend.h:29,

from /usr/include/php/main/php.h:35,

from /home/vagrant/rocketmqphpclient/rocketmqclient.cpp:26:

/usr/include/php/Zend/zend_operators.h: In function 'void fast_long_increment_function(zval*)':

/usr/include/php/Zend/zend_operators.h:446:68: error: '__builtin_saddl_overflow' was not declared in this scope

if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) {

^

/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED'

define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)

^

/usr/include/php/Zend/zend_operators.h: In function 'void fast_long_decrement_function(zval*)':

/usr/include/php/Zend/zend_operators.h:500:68: error: '__builtin_ssubl_overflow' was not declared in this scope

if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) {

^

/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED'

define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)

^

/usr/include/php/Zend/zend_operators.h: In function 'void fast_long_add_function(zval*, zval*, zval*)':

/usr/include/php/Zend/zend_operators.h:554:80: error: '__builtin_saddl_overflow' was not declared in this scope

if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) {

^

/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED'

define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)

^

/usr/include/php/Zend/zend_operators.h: In function 'void fast_long_sub_function(zval*, zval*, zval*)':

/usr/include/php/Zend/zend_operators.h:657:80: error: '__builtin_ssubl_overflow' was not declared in this scope

if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) {

^

/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro 'UNEXPECTED'

define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)

^

In file included from /usr/include/php/main/php.h:39:0,

from /home/vagrant/rocketmqphpclient/rocketmqclient.cpp:26:

/home/vagrant/rocketmqphpclient/rocketmqclient.cpp: At global scope:

/usr/include/php/Zend/zend_API.h:178:2: error: 'zend_rocketmqclient_globals' does not name a type

zend_##module_name##_globals module_name##_globals;

^

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值