VPS侦探论坛

 找回密码
 注册
查看: 1627|回复: 8

升级到PHP8.2.12提示失败

[复制链接]
发表于 2023-11-12 10:19:54 | 显示全部楼层 |阅读模式

本帖最后由 bybsky 于 2023-11-12 10:24 编辑

操作系统是 CentOS 7.0
在源码目录中 /lnmp2.0-full/src/,从官方下载了PHP安装包 https://www.php.net/distributions/php-8.2.12.tar.bz2
#./upgrade.sh
选择 4 升级
选择 8.2.12安装

# ./upgrade.sh

1: Upgrade Nginx
2: Upgrade MySQL
3: Upgrade MariaDB
4: Upgrade PHP for LNMP
5: Upgrade PHP for LNMPA or LAMP
6: Upgrade MySQL to MariaDB
7: Upgrade phpMyAdmin
8: Upgrade Multiple PHP
exit: Exit current script
###################################################
Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 4
include/main.sh: line 990: /usr/local/php/bin/php-config: No such file or directory
include/main.sh: line 991: /usr/local/php/bin/php-config: No such file or directory
Current PHP Version:
You can get version number from http://www.php.net/
Please enter a PHP Version you want: 8.2.12


具体的详情日志: https://t.wss.pet/f/cnbpxeyabgz 复制链接到浏览器打开
安装失败后,同样的方法,去尝试安装 8.2.11 也同样是失败的。

请教大侠们帮忙,目前没有定位到问题原因。多谢




美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-11-20 08:32:32 | 显示全部楼层


你的系统自行升级过openssl导致的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-11-27 10:45:39 | 显示全部楼层

licess 发表于 2023-11-20 08:32
你的系统自行升级过openssl导致的

请问,有什么解决办法吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-11-27 11:28:34 | 显示全部楼层



本帖最后由 bybsky 于 2023-11-27 11:32 编辑

错误日志过期了,重新发下链接: 链接: https://pan.baidu.com/s/1L9Cj4n9rXswwzo7I9ANDVg?pwd=8888 提取码: 8888 复制这段内容后打开百度网盘手机App,操作更方便哦  --来自百度网盘超级会员v6的分享
错误提示的上下文简单提取如下:
第一个错误的地方:
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/openssl/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/openssl/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/openssl/openssl.c -o ext/openssl/openssl.lo -MMD -MF ext/openssl/openssl.dep -MT ext/openssl/openssl.lo
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/openssl/openssl.c: In function ‘php_openssl_load_rand_file’:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/openssl/openssl.c:1055:2: warning: implicit declaration of function ‘RAND_egd’ [-Wimplicit-function-declaration]
} else if (RAND_egd(file) > 0) {
^
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/openssl/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/openssl/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo -MMD -MF ext/openssl/xp_ssl.dep -MT ext/openssl/xp_ssl.lo
第二个错误的地方:
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/gd/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/libgd -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/gd.c -o ext/gd/gd.lo -MMD -MF ext/gd/gd.dep -MT ext/gd/gd.lo
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/gd.c: In function ‘php_imagettftext_common’:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/gd.c:3072:2: warning: missing initializer for field ‘flags’ of ‘gdFTStringExtra’ [-Wmissing-field-initializers]
gdFTStringExtra strex = {0};
^
In file included from /home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/gd.c:61:0:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/libgd/gd.h:475:6: note: ‘flags’ declared here
int flags; /* Logical OR of gdFTEX_ values */
^
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/gd/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/libgd -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/gd/libgd/gd.c -o ext/gd/libgd/gd.lo -MMD -MF ext/gd/libgd/gd.dep -MT ext/gd/libgd/gd.lo

Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-11-27 11:29:52 | 显示全部楼层

接上贴:第三个错误的地方:
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/shmop/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/shmop/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/shmop/shmop.c -o ext/shmop/shmop.lo -MMD -MF ext/shmop/shmop.dep -MT ext/shmop/shmop.lo
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/session/session.c: In function ‘php_session_flush’:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/session/session.c:519:22: warning: ‘handler_function_name’ may be used uninitialized in this function [-Wmaybe-uninitialized]
php_error_docref(NULL, E_WARNING, "Failed to write session data using user "
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/session/session.c:482:16: note: ‘handler_function_name’ was declared here
const char *handler_function_name;
^
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/simplexml/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo -MMD -MF ext/simplexml/simplexml.dep -MT ext/simplexml/simplexml.lo
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/soap/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/soap/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/soap/soap.c -o ext/soap/soap.lo -MMD -MF ext/soap/soap.dep -MT ext/soap/soap.lo
In file included from /home/soft/lnmp2.0-full/src/php-8.2.12/Zend/zend.h:27:0,
from /home/soft/lnmp2.0-full/src/php-8.2.12/main/php.h:31,
from /home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/simplexml.c:23:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/simplexml.c: In function ‘sxe_get_prop_hash’:
/home/soft/lnmp2.0-full/src/php-8.2.12/Zend/zend_types.h:1278:18: warning: ‘iter_data.value.counted’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Z_COUNTED_P(z) = gc; \
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/simplexml.c:1082:19: note: ‘iter_data.value.counted’ was declared here
zval iter_data;
^
In file included from /home/soft/lnmp2.0-full/src/php-8.2.12/Zend/zend.h:27:0,
from /home/soft/lnmp2.0-full/src/php-8.2.12/main/php.h:31,
from /home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/simplexml.c:23:
/home/soft/lnmp2.0-full/src/php-8.2.12/Zend/zend_types.h:1279:20: warning: ‘iter_data.u1.type_info’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Z_TYPE_INFO_P(z) = t; \
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/simplexml/simplexml.c:1082:19: note: ‘iter_data.u1.type_info’ was declared here
zval iter_data;
^
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/soap/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/soap/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/soap/php_encoding.c -o ext/soap/php_encoding.lo -MMD -MF ext/soap/php_encoding.dep -MT ext/soap/php_encoding.lo

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2023-11-27 11:30:19 | 显示全部楼层


第四个错误的地方:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c:367:2: warning: missing braces around initializer [-Wmissing-braces]
querybuf answer = {0};
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c:367:2: warning: (near initialization for ‘answer.qb1’) [-Wmissing-braces]
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c: In function ‘zif_dns_get_record’:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c:822:2: warning: missing braces around initializer [-Wmissing-braces]
querybuf answer = {0};
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c:822:2: warning: (near initialization for ‘answer.qb1’) [-Wmissing-braces]
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c: In function ‘zif_dns_get_mx’:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c:1052:2: warning: missing braces around initializer [-Wmissing-braces]
querybuf answer = {0};
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/dns.c:1052:2: warning: (near initialization for ‘answer.qb1’) [-Wmissing-braces]
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/standard/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/file.c -o ext/standard/file.lo -MMD -MF ext/standard/file.dep -MT ext/standard/file.lo
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/standard/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/filestat.c -o ext/standard/filestat.lo -MMD -MF ext/standard/filestat.dep -MT ext/standard/filestat.lo
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/standard/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/flock_compat.c -o ext/standard/flock_compat.lo -MMD -MF ext/standard/flock_compat.dep -MT ext/standard/flock_compat.lo
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/filestat.c: In function ‘php_stat’:
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/filestat.c:744:2: warning: missing braces around initializer [-Wmissing-braces]
php_stream_statbuf ssb = {0};
^
/home/soft/lnmp2.0-full/src/php-8.2.12/ext/standard/filestat.c:744:2: warning: (near initialization for ‘ssb.sb’) [-Wmissing-braces]
 楼主| 发表于 2023-11-27 11:30:37 | 显示全部楼层

第五个错误的地方
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Isapi/fpm/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -I/home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm/fpm/fpm_main.c -o sapi/fpm/fpm/fpm_main.lo -MMD -MF sapi/fpm/fpm/fpm_main.dep -MT sapi/fpm/fpm/fpm_main.lo
/home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm/fpm/fpm_log.c: In function ‘fpm_log_write’:
/home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm/fpm/fpm_log.c:307:22: warning: ‘scoreboard’ may be used uninitialized in this function [-Wmaybe-uninitialized]
len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", scoreboard->pool[0] ? scoreboard->pool : "-");
^
/bin/sh /home/soft/lnmp2.0-full/src/php-8.2.12/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Isapi/fpm/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm/ -I/home/soft/lnmp2.0-full/src/php-8.2.12/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/main -I/home/soft/lnmp2.0-full/src/php-8.2.12 -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I/usr/local/include -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/ext/mbstring/libmbfl/mbfl -I/home/soft/lnmp2.0-full/src/php-8.2.12/TSRM -I/home/soft/lnmp2.0-full/src/php-8.2.12/Zend -D_GNU_SOURCE -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -I/home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /home/soft/lnmp2.0-full/src/php-8.2.12/sapi/fpm/fpm/fpm_php.c -o sapi/fpm/fpm/fpm_php.lo -MMD -MF sapi/fpm/fpm/fpm_php.dep -MT sapi/fpm/fpm/fpm_php.lo
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-11-27 13:00:49 | 显示全部楼层

bybsky 发表于 2023-11-27 10:45
请问,有什么解决办法吗?

最简单的方法不升级openssl
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2024-3-10 10:00:50 | 显示全部楼层


licess 发表于 2023-11-27 13:00
最简单的方法不升级openssl

改用LNMP2.1后,就可以正常了,多谢!

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-22 00:35 , Processed in 0.028189 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表