为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:9.5.0、Redis 7.4.2、PHP8.3 问题描述:php8.3安装redis扩展失败。php7.2安装扩展无问题。 - I/www/server/php/83/include/php/ext -I/www/server/php/83/include/php/ext/date/lib -I/www/server/php/83/include/php/ext -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /www/server/panel/install/redis-6.1.0/redis.c -o redis.lo -MMD -MF redis.dep -MT redis.lo
- mkdir .libs
- /opt/rh/devtoolset-7/root/usr/bin/gcc -I. -I/www/server/panel/install/redis-6.1.0 -I/www/server/panel/install/redis-6.1.0/include -I/www/server/panel/install/redis-6.1.0/main -I/www/server/panel/install/redis-6.1.0 -I/www/server/php/83/include/php -I/www/server/php/83/include/php/main -I/www/server/php/83/include/php/TSRM -I/www/server/php/83/include/php/Zend -I/www/server/php/83/include/php/ext -I/www/server/php/83/include/php/ext/date/lib -I/www/server/php/83/include/php/ext -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /www/server/panel/install/redis-6.1.0/redis.c -MMD -MF redis.dep -MT redis.lo -fPIC -DPIC -o .libs/redis.o
- /www/server/panel/install/redis-6.1.0/redis.c: In function ‘zim_Redis_multi’:
- /www/server/panel/install/redis-6.1.0/redis.c:1909:58: error: macro "strncmp" requires 3 arguments, but only 2 given
- } else if (strncmp(resp, ZEND_STRL("+OK")) != 0) {
- ^
- /www/server/panel/install/redis-6.1.0/redis.c: In function ‘redis_response_enqueued’:
- /www/server/panel/install/redis-6.1.0/redis.c:2048:47: error: macro "strncmp" requires 3 arguments, but only 2 given
- if (strncmp(resp, ZEND_STRL("+QUEUED")) == 0) {
- ^
- /www/server/panel/install/redis-6.1.0/redis.c: In function ‘redis_sock_read_multibulk_multi_reply_loop’:
- /www/server/panel/install/redis-6.1.0/redis.c:2072:44: error: macro "strncmp" requires 3 arguments, but only 2 given
- strncmp(inbuf, ZEND_STRL("+OK")) != 0)
- ^
- make: *** [redis.lo] Error 1
- error
- |-Successify --- 命令已执行! ---
复制代码
|
|