From Simone, 3 Months ago, written in Plain Text.
- view diff
Embed
  1. root@D12:/usr/src/freeswitch/libs/esl# make phpmod
  2. 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
  3. make[1]: Entering directory '/usr/src/freeswitch/libs/esl/php'
  4. 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
  5. esl_wrap.cpp:754:3: error: #error These bindings need PHP7 - to generate PHP5 bindings use: swig -php5
  6.   754 | # error These bindings need PHP7 - to generate PHP5 bindings use: swig -php5
  7.       |   ^~~~~
  8. esl_wrap.cpp: In function ‘int SWIG_ConvertPtr(zval*, void**, swig_type_info*, int)’:
  9. esl_wrap.cpp:939:54: error: cannot convert ‘zval*’ {aka ‘_zval_struct*’} to ‘zend_object*’ {aka ‘_zend_object*’} in argument passing
  10.   939 |       HashTable * ht = Z_OBJ_HT_P(z)->get_properties(z);
  11.       |                                                      ^
  12.       |                                                      |
  13.       |                                                      zval* {aka _zval_struct*}
  14. esl_wrap.cpp: At global scope:
  15. esl_wrap.cpp:3077:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
  16.  3077 |  ZEND_ARG_PASS_INFO(0)
  17.       |  ^~~~~~~~~~~~~~~~~~
  18.       |  ZEND_ARG_OBJ_INFO
  19. esl_wrap.cpp:3078:2: error: expected ‘}’ before ‘ZEND_ARG_PASS_INFO’
  20.  3078 |  ZEND_ARG_PASS_INFO(0)
  21.       |  ^~~~~~~~~~~~~~~~~~
  22. In file included from esl_wrap.cpp:749:
  23. /usr/include/php/20230831/Zend/zend_API.h:211:54: note: to match this ‘{’
  24.   211 |         static const zend_internal_arg_info name[] = { \
  25.       |                                                      ^
  26. esl_wrap.cpp:3076:1: note: in expansion of macro ‘ZEND_BEGIN_ARG_INFO_EX’
  27.  3076 | ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_00, 0, 0, 0)
  28.       | ^~~~~~~~~~~~~~~~~~~~~~
  29. /usr/include/php/20230831/Zend/zend_API.h:215:41: error: expected declaration before ‘}’ token
  30.   215 | #define ZEND_END_ARG_INFO()             };
  31.       |                                         ^
  32. esl_wrap.cpp:3079:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
  33.  3079 | ZEND_END_ARG_INFO()
  34.       | ^~~~~~~~~~~~~~~~~
  35. esl_wrap.cpp:3081:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
  36.  3081 |  ZEND_ARG_PASS_INFO(0)
  37.       |  ^~~~~~~~~~~~~~~~~~
  38.       |  ZEND_ARG_OBJ_INFO
  39. esl_wrap.cpp:3084:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
  40.  3084 |  ZEND_ARG_PASS_INFO(0)
  41.       |  ^~~~~~~~~~~~~~~~~~
  42.       |  ZEND_ARG_OBJ_INFO
  43. esl_wrap.cpp:3085:2: error: expected ‘}’ before ‘ZEND_ARG_PASS_INFO’
  44.  3085 |  ZEND_ARG_PASS_INFO(0)
  45.       |  ^~~~~~~~~~~~~~~~~~
  46. /usr/include/php/20230831/Zend/zend_API.h:211:54: note: to match this ‘{’
  47.   211 |         static const zend_internal_arg_info name[] = { \
  48.       |                                                      ^
  49. esl_wrap.cpp:3083:1: note: in expansion of macro ‘ZEND_BEGIN_ARG_INFO_EX’
  50.  3083 | ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_000, 0, 0, 0)
  51.       | ^~~~~~~~~~~~~~~~~~~~~~
  52. /usr/include/php/20230831/Zend/zend_API.h:215:41: error: expected declaration before ‘}’ token
  53.   215 | #define ZEND_END_ARG_INFO()             };
  54.       |                                         ^
  55. esl_wrap.cpp:3087:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
  56.  3087 | ZEND_END_ARG_INFO()
  57.       | ^~~~~~~~~~~~~~~~~
  58. esl_wrap.cpp:3089:2: error: ‘ZEND_ARG_PASS_INFO’ was not declared in this scope; did you mean ‘ZEND_ARG_OBJ_INFO’?
  59.  3089 |  ZEND_ARG_PASS_INFO(0)
  60.       |  ^~~~~~~~~~~~~~~~~~
  61.       |  ZEND_ARG_OBJ_INFO
  62. esl_wrap.cpp:3090:2: error: expected ‘}’ before ‘ZEND_ARG_PASS_INFO’
  63.  3090 |  ZEND_ARG_PASS_INFO(0)
  64.       |  ^~~~~~~~~~~~~~~~~~
  65. /usr/include/php/20230831/Zend/zend_API.h:211:54: note: to match this ‘{’
  66.   211 |         static const zend_internal_arg_info name[] = { \
  67.       |                                                      ^
  68. esl_wrap.cpp:3088:1: note: in expansion of macro ‘ZEND_BEGIN_ARG_INFO_EX’
  69.  3088 | ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0000, 0, 0, 0)
  70.       | ^~~~~~~~~~~~~~~~~~~~~~
  71. /usr/include/php/20230831/Zend/zend_API.h:215:41: error: expected declaration before ‘}’ token
  72.   215 | #define ZEND_END_ARG_INFO()             };
  73.       |                                         ^
  74. esl_wrap.cpp:3093:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
  75.  3093 | ZEND_END_ARG_INFO()
  76.       | ^~~~~~~~~~~~~~~~~
  77. make[1]: *** [Makefile:726: esl_wrap.o] Error 1
  78. make[1]: Leaving directory '/usr/src/freeswitch/libs/esl/php'
  79. make: *** [Makefile:1498: phpmod] Error 2