dnmp icon indicating copy to clipboard operation
dnmp copied to clipboard

PHP7.3.24 安装 xdebug 失败

Open wxfjamdc opened this issue 5 years ago • 0 comments

`/tmp/extensions/xdebug/xdebug_compat.c: In function 'xdebug_zval_ptr': /tmp/extensions/xdebug/xdebug_compat.c:56:27: warning: passing argument 1 of 'zend_get_zval_ptr' makes pointer from integer without a cast [-Wint-conversion] 56 | return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R); | ^~~~~~~ | | | int In file included from /usr/local/include/php/Zend/zend_API.h:29, from /usr/local/include/php/main/php.h:37, from /tmp/extensions/xdebug/xdebug_compat.c:43: /usr/local/include/php/Zend/zend_execute.h:331:16: note: expected 'const zend_op *' {aka 'const struct _zend_op *'} but argument is of type 'int' 331 | ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type); | ^~~~~~~~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_compat.c:56:36: warning: passing argument 2 of 'zend_get_zval_ptr' makes integer from pointer without a cast [-Wint-conversion] 56 | return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R); | ^~~~ | | | const znode_op * {aka const union _znode_op *} In file included from /usr/local/include/php/Zend/zend_API.h:29, from /usr/local/include/php/main/php.h:37, from /tmp/extensions/xdebug/xdebug_compat.c:43: /usr/local/include/php/Zend/zend_execute.h:331:16: note: expected 'int' but argument is of type 'const znode_op *' {aka 'const union _znode_op *'} 331 | ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type); | ^~~~~~~~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_compat.c:56:42: warning: passing argument 3 of 'zend_get_zval_ptr' from incompatible pointer type [-Wincompatible-pointer-types] 56 | return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R); | ^~~~~ | | | zend_execute_data * {aka struct _zend_execute_data *} In file included from /usr/local/include/php/Zend/zend_API.h:29, from /usr/local/include/php/main/php.h:37, from /tmp/extensions/xdebug/xdebug_compat.c:43: /usr/local/include/php/Zend/zend_execute.h:331:16: note: expected 'const znode_op *' {aka 'const union _znode_op *'} but argument is of type 'zend_execute_data *' {aka 'struct _zend_execute_data *'} 331 | ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type); | ^~~~~~~~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_compat.c:56:49: warning: passing argument 4 of 'zend_get_zval_ptr' from incompatible pointer type [-Wincompatible-pointer-types] 56 | return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R); | ^~~~~~~~~~~~ | | | zval ** {aka struct _zval_struct **} In file included from /usr/local/include/php/Zend/zend_API.h:29, from /usr/local/include/php/main/php.h:37, from /tmp/extensions/xdebug/xdebug_compat.c:43: /usr/local/include/php/Zend/zend_execute.h:331:16: note: expected 'const zend_execute_data *' {aka 'const struct _zend_execute_data *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'} 331 | ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type); | ^~~~~~~~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_compat.c:56:9: error: too few arguments to function 'zend_get_zval_ptr' 56 | return zend_get_zval_ptr(op_type, node, zdata, &should_free, BP_VAR_R); | ^~~~~~~~~~~~~~~~~ In file included from /usr/local/include/php/Zend/zend_API.h:29, from /usr/local/include/php/main/php.h:37, from /tmp/extensions/xdebug/xdebug_compat.c:43: /usr/local/include/php/Zend/zend_execute.h:331:16: note: declared here 331 | ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type); | ^~~~~~~~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_compat.c: In function 'xdebug_setcookie': /tmp/extensions/xdebug/xdebug_compat.c:194:80: warning: passing argument 8 of 'php_setcookie' makes pointer from integer without a cast [-Wint-conversion] 194 | php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly); | ^~~~~~~~ | | | int In file included from /tmp/extensions/xdebug/xdebug_compat.h:25, from /tmp/extensions/xdebug/xdebug_compat.c:45: /usr/local/include/php/ext/standard/head.h:40:160: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'int' 40 | PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode); | ~~~~~~~~~~~~~^~~~~~~~ /tmp/extensions/xdebug/xdebug_compat.c:194:2: error: too few arguments to function 'php_setcookie' 194 | php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly); | ^~~~~~~~~~~~~ In file included from /tmp/extensions/xdebug/xdebug_compat.h:25, from /tmp/extensions/xdebug/xdebug_compat.c:45: /usr/local/include/php/ext/standard/head.h:40:12: note: declared here 40 | PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, zend_string *path, zend_string *domain, int secure, int httponly, zend_string *samesite, int url_encode); | ^~~~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_code_coverage.c: In function 'xdebug_find_jumps': /tmp/extensions/xdebug/xdebug_code_coverage.c:624:17: warning: implicit declaration of function 'RT_CONSTANT_EX'; did you mean 'CT_CONSTANT_EX'? [-Wimplicit-function-declaration] 624 | array_value = RT_CONSTANT_EX(opa->literals, opcode.op2); | ^~~~~~~~~~~~~~ | CT_CONSTANT_EX /tmp/extensions/xdebug/xdebug_code_coverage.c:624:15: warning: assignment to 'zval *' {aka 'struct _zval_struct *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 624 | array_value = RT_CONSTANT_EX(opa->literals, opcode.op2); | ^ make: *** [Makefile:234: xdebug_compat.lo] Error 1 make: *** Waiting for unfinished jobs.... /tmp/extensions/xdebug/xdebug_code_coverage.c: In function 'prefill_from_class_table': /tmp/extensions/xdebug/xdebug_code_coverage.c:882:4: warning: implicit declaration of function 'ZEND_HASH_INC_APPLY_COUNT'; did you mean 'ZEND_HASH_APPLY_KEEP'? [-Wimplicit-function-declaration] 882 | ZEND_HASH_INC_APPLY_COUNT(&ce->function_table); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | ZEND_HASH_APPLY_KEEP /tmp/extensions/xdebug/xdebug_code_coverage.c:886:4: warning: implicit declaration of function 'ZEND_HASH_DEC_APPLY_COUNT'; did you mean 'ZEND_HASH_APPLY_KEEP'? [-Wimplicit-function-declaration] 886 | ZEND_HASH_DEC_APPLY_COUNT(&ce->function_table); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | ZEND_HASH_APPLY_KEEP /tmp/extensions/xdebug/xdebug_gc_stats.c: In function 'xdebug_gc_collect_cycles': /tmp/extensions/xdebug/xdebug_gc_stats.c:47:14: warning: implicit declaration of function 'GC_G'; did you mean 'CG'? [-Wimplicit-function-declaration] 47 | collected = GC_G(collected); | ^~~~ | CG In file included from /usr/local/include/php/Zend/zend.h:27, from /usr/local/include/php/main/php.h:33, from /tmp/extensions/xdebug/php_xdebug.h:30, from /tmp/extensions/xdebug/xdebug_gc_stats.c:19: /tmp/extensions/xdebug/xdebug_gc_stats.c: In function 'zif_xdebug_get_gc_run_count': /tmp/extensions/xdebug/xdebug_gc_stats.c:243:22: error: 'gc_runs' undeclared (first use in this function) 243 | RETURN_LONG(GC_G(gc_runs)); | ^~~~~~~ /usr/local/include/php/Zend/zend_types.h:745:19: note: in definition of macro 'ZVAL_LONG' 745 | Z_LVAL_P(__z) = l;
| ^ /usr/local/include/php/Zend/zend_API.h:637:31: note: in expansion of macro 'RETVAL_LONG' 637 | #define RETURN_LONG(l) { RETVAL_LONG(l); return; } | ^~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_gc_stats.c:243:5: note: in expansion of macro 'RETURN_LONG' 243 | RETURN_LONG(GC_G(gc_runs)); | ^~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_gc_stats.c:243:22: note: each undeclared identifier is reported only once for each function it appears in 243 | RETURN_LONG(GC_G(gc_runs)); | ^~~~~~~ /usr/local/include/php/Zend/zend_types.h:745:19: note: in definition of macro 'ZVAL_LONG' 745 | Z_LVAL_P(__z) = l;
| ^ /usr/local/include/php/Zend/zend_API.h:637:31: note: in expansion of macro 'RETVAL_LONG' 637 | #define RETURN_LONG(l) { RETVAL_LONG(l); return; } | ^~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_gc_stats.c:243:5: note: in expansion of macro 'RETURN_LONG' 243 | RETURN_LONG(GC_G(gc_runs)); | ^~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_gc_stats.c: In function 'zif_xdebug_get_gc_total_collected_roots': /tmp/extensions/xdebug/xdebug_gc_stats.c:250:22: error: 'collected' undeclared (first use in this function) 250 | RETURN_LONG(GC_G(collected)); | ^~~~~~~~~ /usr/local/include/php/Zend/zend_types.h:745:19: note: in definition of macro 'ZVAL_LONG' 745 | Z_LVAL_P(__z) = l;
| ^ /usr/local/include/php/Zend/zend_API.h:637:31: note: in expansion of macro 'RETVAL_LONG' 637 | #define RETURN_LONG(l) { RETVAL_LONG(l); return; } | ^~~~~~~~~~~ /tmp/extensions/xdebug/xdebug_gc_stats.c:250:5: note: in expansion of macro 'RETURN_LONG' 250 | RETURN_LONG(GC_G(collected)); | ^~~~~~~~~~~ make: *** [Makefile:236: xdebug_gc_stats.lo] Error 1 /tmp/extensions/xdebug/xdebug_handler_dbgp.c: In function 'attach_context_vars': /tmp/extensions/xdebug/xdebug_handler_dbgp.c:1724:11: error: 'zend_constant' {aka 'struct _zend_constant'} has no member named 'module_number' 1724 | if (val->module_number != PHP_USER_CONSTANT) { | ^~ make: *** [Makefile:240: xdebug_handler_dbgp.lo] Error 1 error: 'xdebug' does not exist

usage: /usr/local/bin/docker-php-ext-enable [options] module-name [module-name ...] ie: /usr/local/bin/docker-php-ext-enable gd mysqli /usr/local/bin/docker-php-ext-enable pdo pdo_mysql /usr/local/bin/docker-php-ext-enable --ini-name 0-apc.ini apcu apc

Possible values for module-name: gd.so mysqli.so opcache.so pdo_mysql.so sodium.so

Some of the above modules are already compiled into PHP; please check the output of "php -i" to see which modules are already loaded. `

wxfjamdc avatar Dec 16 '20 09:12 wxfjamdc