Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在make安装时报错 #113

Closed
chenchen211 opened this issue Apr 21, 2021 · 1 comment
Closed

在make安装时报错 #113

chenchen211 opened this issue Apr 21, 2021 · 1 comment

Comments

@chenchen211
Copy link

在make安装时报错,错误信息如下

/bin/sh /root/yasd-master/libtool --mode=compile g++ -I. -I/root/yasd-master -DPHP_ATOM_INC -I/root/yasd-master/include -I/root/yasd-master/main -I/root/yasd-master -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 -I/include -I/root/yasd-master/thirdparty/tinyxml2 -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /root/yasd-master/yasd.cc -o yasd.lo
libtool: compile: g++ -I. -I/root/yasd-master -DPHP_ATOM_INC -I/root/yasd-master/include -I/root/yasd-master/main -I/root/yasd-master -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 -I/include -I/root/yasd-master/thirdparty/tinyxml2 -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /root/yasd-master/yasd.cc -fPIC -DPIC -o .libs/yasd.o
/root/yasd-master/yasd.cc:272:104: error: macro "ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX" requires 6 arguments, but only 5 given
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Yasd_Zval_getRefCount, ZEND_RETURN_VALUE, 1, IS_LONG, 1)
^
/root/yasd-master/yasd.cc:289:103: error: macro "ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX" requires 6 arguments, but only 5 given
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Yasd_getOpcodeByName, ZEND_RETURN_VALUE, 1, IS_LONG, 1)
^
/root/yasd-master/yasd.cc:272:1: error: 'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX' does not name a type
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_Yasd_Zval_getRefCount, ZEND_RETURN_VALUE, 1, IS_LONG, 1)
^
In file included from /usr/include/php/main/php.h:39:0,
from /root/yasd-master/yasd.cc:27:
/usr/include/php/Zend/zend_API.h:100:107: error: expected unqualified-id before ',' token
#define ZEND_ARG_INFO(pass_by_ref, name) { #name, NULL, 0, pass_by_ref, 0, 0 },
^
/root/yasd-master/yasd.cc:273:1: note: in expansion of macro 'ZEND_ARG_INFO'
ZEND_ARG_INFO(0, zv)
^
/usr/include/php/Zend/zend_API.h:120:30: error: expected unqualified-id before '}' token
#define ZEND_END_ARG_INFO() };
^
/root/yasd-master/yasd.cc:274:1: note: in expansion of macro 'ZEND_END_ARG_INFO'
ZEND_END_ARG_INFO()
^
/usr/include/php/Zend/zend_API.h:120:30: error: expected declaration before '}' token
#define ZEND_END_ARG_INFO() };
^
/root/yasd-master/yasd.cc:274:1: note: in expansion of macro 'ZEND_END_ARG_INFO'
ZEND_END_ARG_INFO()
^
make: *** [yasd.lo] Error 1

@huanghantao
Copy link
Member

你的PHP版本是否低于7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants