lnmp1.7升级7.4.27失败,日志在附件里面。
当前php版本:
PHP 7.4.11 (cli) (built: Oct 22 2020 18:51:23) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
这是操作系统信息
----
# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
# cat /proc/version
Linux version 3.10.0-1160.6.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Nov 17 13:59:11 UTC 2020
-----------------------
麻烦版主帮忙看一下,谢谢啦。
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1362: undefined reference to `TLS_server_method'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1620: undefined reference to `TLS_server_method'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1677: undefined reference to `SSL_CTX_set_security_level'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1620: undefined reference to `TLS_client_method'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1714: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1293: undefined reference to `SSL_CTX_get_options'
/root/lnmp1.7/src/php-7.4.27/ext/openssl/xp_ssl.c:1320: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_pop_free':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/root/lnmp1.7/src/php-7.4.27/ext/ftp/ftp.c:280: undefined reference to `TLS_client_method'
/root/lnmp1.7/src/php-7.4.27/ext/ftp/ftp.c:289: undefined reference to `SSL_CTX_set_options'
ext/gd/libgd/.libs/gdkanji.o: In function `do_convert':
/root/lnmp1.7/src/php-7.4.27/ext/gd/libgd/gdkanji.c:347: undefined reference to `libiconv_open'
/root/lnmp1.7/src/php-7.4.27/ext/gd/libgd/gdkanji.c:360: undefined reference to `libiconv'
/root/lnmp1.7/src/php-7.4.27/ext/gd/libgd/gdkanji.c:374: undefined reference to `libiconv_close'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1559: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1593: undefined reference to `EVP_MD_CTX_free'
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1583: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1839: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.7/src/php-7.4.27/ext/phar/util.c:1875: undefined reference to `EVP_MD_CTX_free'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:63: undefined reference to `libiconv_open'
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:70: undefined reference to `libiconv'
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:86: undefined reference to `libiconv_close'
/root/lnmp1.7/src/php-7.4.27/ext/xmlrpc/libxmlrpc/encodings.c:86: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
你这系统上的openssl自行升级过且升级的过程有问题导致的 licess 发表于 2022-1-7 16:27
你这系统上的openssl自行升级过且升级的过程有问题导致的
# openssl version
OpenSSL 1.1.111 Sep 2018
----------------------------------
这是我系统上的openssl,现在是需要重新安装它吗 如果要恢复原PHP,将 /usr/local/ 下 oldphp日志 的目录重命名为 php 并,将/usr/local/oldphp日期/init.d.php-fpm.bak.日期 的文件拷贝到/etc/init.d/ 目录下重命名为 php-fpm 即可恢复。
-------
我按照上面的操作以后,启动php-fpm也会报错:Starting php-fpm /usr/local/php/sbin/php-fpm: symbol lookup error: /usr/local/php/sbin/php-fpm: undefined symbol: zip_libzip_version failed
------中途我升级过libzip为1.2
dfxlm 发表于 2022-1-7 17:53
如果要恢复原PHP,将 /usr/local/ 下 oldphp日志 的目录重命名为 php 并,将/usr/local/oldphp日期/init.d. ...
openssl、libzip都需要恢复,如果还有其他php使用的依赖如果升级了也可能会有影响
页:
[1]