当前位置:论坛首页 > BUG提交 > Linux面板

【已解答】php8 安装 fileinfo 扩展失败

发表在 BUG提交2020-12-26 01:25 [复制链接] 1 5985

操作系统: Aliyun Linux  2.1903 LTS 64位

安装日志
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
/bin/sh /www/server/php/80/src/ext/fileinfo/libtool --mode=compile cc -I. -I/www/server/php/80/src/ext/fileinfo -I/www/server/php/80/src/ext/fileinfo/include -I/www/server/php/80/src/ext/fileinfo/main -I/www/server/php/80/src/ext/fileinfo -I/www/server/php/80/include/php -I/www/server/php/80/include/php/main -I/www/server/php/80/include/php/TSRM -I/www/server/php/80/include/php/Zend -I/www/server/php/80/include/php/ext -I/www/server/php/80/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -I/www/server/php/80/src/ext/fileinfo/libmagic -c /www/server/php/80/src/ext/fileinfo/libmagic/funcs.c -o libmagic/funcs.lo
cc -I. -I/www/server/php/80/src/ext/fileinfo -I/www/server/php/80/src/ext/fileinfo/include -I/www/server/php/80/src/ext/fileinfo/main -I/www/server/php/80/src/ext/fileinfo -I/www/server/php/80/include/php -I/www/server/php/80/include/php/main -I/www/server/php/80/include/php/TSRM -I/www/server/php/80/include/php/Zend -I/www/server/php/80/include/php/ext -I/www/server/php/80/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/www/server/php/80/src/ext/fileinfo/libmagic -c /www/server/php/80/src/ext/fileinfo/libmagic/funcs.c  -fPIC -DPIC -o libmagic/.libs/funcs.o
/www/server/php/80/src/ext/fileinfo/libmagic/funcs.c: In function ‘file_checkfmt’:
/www/server/php/80/src/ext/fileinfo/libmagic/funcs.c:97:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for (const char *p = fmt; *p; p++) {
  ^
/www/server/php/80/src/ext/fileinfo/libmagic/funcs.c:97:2: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [libmagic/funcs.lo] Error 1
error


使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表