[問題] 編譯httpd-2.2.* (openssl 問題已刪文

看板Linux作者 (熱情的人客兄)時間7月前 (2023/09/10 09:37), 編輯推噓3(302)
留言5則, 3人參與, 7月前最新討論串1/1
大家好 環境是ubuntu22.04 首先 先手動編譯了openssl 看一下資訊沒問題 OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) built on: Wed May 24 17:12:55 2023 UTC platform: debian-amd64 options: bn(64,64) compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl-Z1YLmC/openssl-3.0.2=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_TLS_SECURITY_LEVEL=2 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 OPENSSLDIR: "/usr/lib/ssl" ENGINESDIR: "/usr/lib/x86_64-linux-gnu/engines-3" MODULESDIR: "/usr/lib/x86_64-linux-gnu/ossl-modules" Seeding source: os-specific CPUINFO: OPENSSL_ia32cap=0xfffab2234f8bffff:0x4009c07ab 然後 手動編譯 apache 2.2.x 或是 2.4.x 都中斷在一個問題 hecking openssl/engine.h usability... yes checking openssl/engine.h presence... yes checking for openssl/engine.h... yes checking for SSLeay_version in -lcrypto... no checking for SSL_CTX_new in -lssl... yes checking for ENGINE_init... no checking for ENGINE_load_builtin_engines... no checking for SSL_set_cert_store... no configure: error: ... Error, SSL/TLS libraries were missing or unusable 編譯apache 時 有加入以下參數 --enable-so=static --enable-ssl --enable-ssl=shared --with-ssl=/usr/local/openssl -with-openssl=/usr/local/openssl 網路上的方法大多 try過 問題還是一樣 查詢關鍵字 Error, SSL/TLS libraries 有誰遇過這問題嘛 請不吝指導 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.10.49.161 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1694309852.A.BF9.html

09/10 10:22, 7月前 , 1F
LD_LIBRARY_PATH 指定到/usr/local/openss/lib 試試看?
09/10 10:22, 1F

09/10 13:52, 7月前 , 2F
看他的 log 吧,libssl應該有抓到但是缺 symbol
09/10 13:52, 2F

09/10 13:53, 7月前 , 3F
看是不是版本的問題
09/10 13:53, 3F

09/10 21:33, 7月前 , 4F
沒列apache httpd版本是多少 姑且一提根據httpd changelog
09/10 21:33, 4F

09/10 21:34, 7月前 , 5F
2.4.52起才支援openssl v3的使用 2.2是全系列不支援(已eol)
09/10 21:34, 5F
文章代碼(AID): #1a_HtSlv (Linux)
文章代碼(AID): #1a_HtSlv (Linux)