g++ -I/usr/src/freeswitch.git/libs/esl/src/include -I/usr/src/freeswitch.git/src/include -I/usr/src/freeswitch.git/src/include -I/usr/src/freeswitch.git/libs/li bteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -I/usr/include/php/20151012 -I /usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext /date/lib -Wno-unused-label -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o esl_wrap.cpp:898:106: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval*), NULL); ^ esl_wrap.cpp:1268:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp:1543:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp:1632:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp:1662:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp:1692:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp:1940:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp:1970:50: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)result, 1); ^ esl_wrap.cpp: In function ‘void SWIG_landfill(zend_resource*)’: esl_wrap.cpp:835:51: error: ‘rsrc’ was not declared in this scope static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) { (void)rsrc; } ^~~~ esl_wrap.cpp: In function ‘void SWIG_ZTS_SetPointerZval(zval*, void*, swig_type_info*, int)’: esl_wrap.cpp:858:66: error: ‘ZEND_REGISTER_RESOURCE’ was not declared in this scope ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata)); ^ esl_wrap.cpp:879:29: error: ‘MAKE_STD_ZVAL’ was not declared in this scope MAKE_STD_ZVAL(resource); ^ esl_wrap.cpp:880:73: error: ‘ZEND_REGISTER_RESOURCE’ was not declared in this scope ZEND_REGISTER_RESOURCE(resource, value, *(int *)(type->clientdata)); ^ esl_wrap.cpp:885:93: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘1’ to ‘zend_class_entry* zend_lookup_class(zend_string*)’ result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC); ^ esl_wrap.cpp:888:83: error: cannot convert ‘char*’ to ‘zend_string* {aka _zend_string*}’ for argument ‘1’ to ‘zend_class_entry* zend_lookup_class(zend_string*)’ result = zend_lookup_class((char *)type_name, type_name_len, &ce TSRMLS_CC); ^ esl_wrap.cpp:771:32: error: ‘zval {aka struct _zval_struct}’ has no member named ‘is_ref’ # define Z_SET_ISREF_P(z) (z)->is_ref = 1 ^ esl_wrap.cpp:897:7: note: in expansion of macro ‘Z_SET_ISREF_P’ Z_SET_ISREF_P(z); ^~~~~~~~~~~~~ esl_wrap.cpp:898:7: error: ‘zend_hash_update’ was not declared in this scope zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval*), NULL); ^~~~~~~~~~~~~~~~ esl_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’: esl_wrap.cpp:953:70: error: ‘zend_list_find’ was not declared in this scope