- root@D12:/usr/src/freeswitch/libs/esl# make phpmod
- make MYLIB=".././.libs/libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/src/freeswitch/libs/esl/src/include -I/usr/include/uuid -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -ffast-math -Werror -Wno-unused-result -Wno-misleading-indentation -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL" CXXFLAGS="-I/usr/src/freeswitch/libs/esl/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1" CXX_CFLAGS="" -C php
- make[1]: Entering directory '/usr/src/freeswitch/libs/esl/php'
- g++ -I/usr/src/freeswitch/libs/esl/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I/usr/src/freeswitch/libs/esl/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o
- esl_wrap.cpp:754:3: error: #error These bindings need PHP7 - to generate PHP5 bindings use: swig -php5
- 754 | # error These bindings need PHP7 - to generate PHP5 bindings use: swig -php5
- | ^~~~~
- esl_wrap.cpp: In function ‘int SWIG_ConvertPtr(zval*, void**, swig_type_info*, int)’:
- esl_wrap.cpp:939:54: error: cannot convert ‘zval*’ {aka ‘_zval_struct*’} to ‘zend_object*’ {aka ‘_zend_object*’} in argument passing
- 939 | HashTable * ht = Z_OBJ_HT_P(z)->get_properties(z);
- | ^
- | |
- | zval* {aka _zval_struct*}
- esl_wrap.cpp: At global scope:
- esl_wrap.cpp:3077:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
- 3077 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- | ZEND_ARG_OBJ_INFO
- esl_wrap.cpp:3078:2: error: expected ‘}’ before ‘ZEND_ARG_PASS_INFO’
- 3078 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- In file included from esl_wrap.cpp:749:
- /usr/include/php/20230831/Zend/zend_API.h:211:54: note: to match this ‘{’
- 211 | static const zend_internal_arg_info name[] = { \
- | ^
- esl_wrap.cpp:3076:1: note: in expansion of macro ‘ZEND_BEGIN_ARG_INFO_EX’
- 3076 | ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_00, 0, 0, 0)
- | ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/php/20230831/Zend/zend_API.h:215:41: error: expected declaration before ‘}’ token
- 215 | #define ZEND_END_ARG_INFO() };
- | ^
- esl_wrap.cpp:3079:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
- 3079 | ZEND_END_ARG_INFO()
- | ^~~~~~~~~~~~~~~~~
- esl_wrap.cpp:3081:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
- 3081 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- | ZEND_ARG_OBJ_INFO
- esl_wrap.cpp:3084:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
- 3084 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- | ZEND_ARG_OBJ_INFO
- esl_wrap.cpp:3085:2: error: expected ‘}’ before ‘ZEND_ARG_PASS_INFO’
- 3085 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- /usr/include/php/20230831/Zend/zend_API.h:211:54: note: to match this ‘{’
- 211 | static const zend_internal_arg_info name[] = { \
- | ^
- esl_wrap.cpp:3083:1: note: in expansion of macro ‘ZEND_BEGIN_ARG_INFO_EX’
- 3083 | ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_000, 0, 0, 0)
- | ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/php/20230831/Zend/zend_API.h:215:41: error: expected declaration before ‘}’ token
- 215 | #define ZEND_END_ARG_INFO() };
- | ^
- esl_wrap.cpp:3087:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
- 3087 | ZEND_END_ARG_INFO()
- | ^~~~~~~~~~~~~~~~~
- esl_wrap.cpp:3089:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
- 3089 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- | ZEND_ARG_OBJ_INFO
- esl_wrap.cpp:3090:2: error: expected ‘}’ before ‘ZEND_ARG_PASS_INFO’
- 3090 | ZEND_ARG_PASS_INFO(0)
- | ^~~~~~~~~~~~~~~~~~
- /usr/include/php/20230831/Zend/zend_API.h:211:54: note: to match this ‘{’
- 211 | static const zend_internal_arg_info name[] = { \
- | ^
- esl_wrap.cpp:3088:1: note: in expansion of macro ‘ZEND_BEGIN_ARG_INFO_EX’
- 3088 | ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0000, 0, 0, 0)
- | ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/php/20230831/Zend/zend_API.h:215:41: error: expected declaration before ‘}’ token
- 215 | #define ZEND_END_ARG_INFO() };
- | ^
- esl_wrap.cpp:3093:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
- 3093 | ZEND_END_ARG_INFO()
- | ^~~~~~~~~~~~~~~~~
- make[1]: *** [Makefile:726: esl_wrap.o] Error 1
- make[1]: Leaving directory '/usr/src/freeswitch/libs/esl/php'
- make: *** [Makefile:1498: phpmod] Error 2