尝试在 custombuild/directadmin 上更新 exim 和 httpd,但未定义对 OPENSSL 的引用

问题描述

我正在尝试更新 EXIM 和 httpd,但失败了。

使用的命令:

cd /usr/local/directadmin/custombuild/
./build exim

但以以下内容结尾:

...
tls.o: In function `tls_cert_ocsp_uri':
tls.c:(.text+0x5558): undefined reference to `OPENSSL_sk_num'
tls.c:(.text+0x55a4): undefined reference to `OPENSSL_sk_value'
tls.c:(.text+0x55d8): undefined reference to `ASN1_STRING_get0_data'
tls.c:(.text+0x55fd): undefined reference to `OPENSSL_sk_free'
tls.c:(.text+0x5623): undefined reference to `OPENSSL_sk_free'
tls.o: In function `tls_cert_crl_uri':
tls.c:(.text+0x5699): undefined reference to `OPENSSL_sk_num'
tls.c:(.text+0x56c6): undefined reference to `OPENSSL_sk_value'
tls.c:(.text+0x56da): undefined reference to `OPENSSL_sk_num'
tls.c:(.text+0x56f0): undefined reference to `OPENSSL_sk_value'
tls.c:(.text+0x5713): undefined reference to `ASN1_STRING_get0_data'
tls.c:(.text+0x574a): undefined reference to `OPENSSL_sk_free'
tls.c:(.text+0x5772): undefined reference to `OPENSSL_sk_free'
pdkim/pdkim.a(signing.o): In function `exim_dkim_init':
signing.c:(.text+0xf): undefined reference to `OPENSSL_init_crypto'
pdkim/pdkim.a(signing.o): In function `exim_dkim_sign':
signing.c:(.text+0x109): undefined reference to `EVP_MD_CTX_new'
signing.c:(.text+0x153): undefined reference to `EVP_DigestSign'
signing.c:(.text+0x18f): undefined reference to `EVP_DigestSign'
signing.c:(.text+0x19b): undefined reference to `EVP_MD_CTX_free'
signing.c:(.text+0x1ce): undefined reference to `EVP_MD_CTX_free'
pdkim/pdkim.a(signing.o): In function `exim_dkim_verify_init':
signing.c:(.text+0x249): undefined reference to `EVP_PKEY_new_raw_public_key'
pdkim/pdkim.a(signing.o): In function `exim_dkim_verify':
signing.c:(.text+0x2fe): undefined reference to `EVP_MD_CTX_new'
signing.c:(.text+0x341): undefined reference to `EVP_DigestVerify'
signing.c:(.text+0x34d): undefined reference to `EVP_MD_CTX_free'
signing.c:(.text+0x35f): undefined reference to `EVP_MD_CTX_free'
signing.c:(.text+0x3a8): undefined reference to `RSA_pkey_ctx_ctrl'
collect2: error: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/exim-4.94/build-Linux-x86_64'
make: *** [all] Error 2

显示以下输出openssl version -a

OpenSSL 1.1.1g  21 Apr 2020
built on: Thu Jul  2 12:23:42 2020 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 -DNDEBUG
OPENSSLDIR: "/usr/local/ssl"
ENGInesDIR: "/usr/local/lib64/engines-1.1"
seeding source: os-specific

似乎可能与 openssl 有关。尝试了一切,但还没有成功。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)