邹先生 发表于 2024-11-25 17:05:11

【已完成】更新openssl和openSSH后安装Apache和php7.4失败

系统版本:CentOS 7.9.2009 x86_64(Py3.7.9)宝塔版本:9.02
因为openSSL和openSSH又高危漏洞必须升级更新,更新后更新Apache 2.4.62(更新失败后卸载重装)或安装PHP7.4均出现类似问题导致安装失败。

错误日志如下:
/www/server/apache/src/support/ab.c:604: undefined reference to `SSL_in_init'
ab.o: In function `ssl_print_cert_info':
/www/server/apache/src/support/ab.c:682: undefined reference to `X509_get_version'
/www/server/apache/src/support/ab.c:684: undefined reference to `X509_getm_notBefore'
/www/server/apache/src/support/ab.c:688: undefined reference to `X509_getm_notAfter'
ab.o: In function `sk_X509_num':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ab.o: In function `sk_X509_value':
/usr/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ab.o: In function `main':
/www/server/apache/src/support/ab.c:2351: undefined reference to `TLS_client_method'
/www/server/apache/src/support/ab.c:2604: undefined reference to `TLS_client_method'
/www/server/apache/src/support/ab.c:2682: undefined reference to `OPENSSL_init_ssl'
/www/server/apache/src/support/ab.c:2683: undefined reference to `OPENSSL_init_ssl'
/www/server/apache/src/support/ab.c:2692: undefined reference to `SSL_CTX_set_options'
/www/server/apache/src/support/ab.c:2706: undefined reference to `SSL_CTX_set_ciphersuites'
ab.o: In function `test':
/www/server/apache/src/support/ab.c:2035: undefined reference to `SSL_in_init'
collect2: error: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/www/server/apache/src/support'
make: *** Error 1
make: Leaving directory `/www/server/apache/src/support'
make: *** Error 1


openSSL版本和路径如下:
# openssl version -a
OpenSSL 1.1.1w11 Sep 2023
built on: Mon Nov 25 06:53:08 2024 UTC
platform: linux-x86_64
options:bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG
OPENSSLDIR: "/usr/local/openssl"
ENGINESDIR: "/usr/local/openssl/lib/engines-1.1"
Seeding source: os-specific
# ssh -V
OpenSSH_9.8p1, OpenSSL 1.1.1w11 Sep 2023




堡塔运维南一 发表于 2024-12-11 09:36:51

您好,这个问题如果没有解决的话,请重新发帖哈,这篇帖子就关闭了
页: [1]
查看完整版本: 【已完成】更新openssl和openSSH后安装Apache和php7.4失败