Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4B744200D10 for ; Sun, 24 Sep 2017 22:49:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 49F651609E6; Sun, 24 Sep 2017 20:49:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8F06F1609A7 for ; Sun, 24 Sep 2017 22:49:36 +0200 (CEST) Received: (qmail 42793 invoked by uid 500); 24 Sep 2017 20:49:35 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 42778 invoked by uid 99); 24 Sep 2017 20:49:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Sep 2017 20:49:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8BD07196A22 for ; Sun, 24 Sep 2017 20:49:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.979 X-Spam-Level: X-Spam-Status: No, score=0.979 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BFz5UQqxwP2a for ; Sun, 24 Sep 2017 20:49:33 +0000 (UTC) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C76E15F6C3 for ; Sun, 24 Sep 2017 20:49:32 +0000 (UTC) Received: from fwd32.aul.t-online.de (fwd32.aul.t-online.de [172.20.26.144]) by mailout09.t-online.de (Postfix) with SMTP id 15A75425188F for ; Sun, 24 Sep 2017 22:49:26 +0200 (CEST) Received: from schiller.site (rIX0P+ZTQhue+wJOcK+b9dHE1U-jzqSueIANfY2r5YFuNXfvRuhIn-55iUQsWIdQO0@[91.2.152.164]) by fwd32.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1dwDq8-0u3E5g0; Sun, 24 Sep 2017 22:49:24 +0200 Date: Sun, 24 Sep 2017 22:49:24 +0200 (CEST) From: "Jens Schleusener" To: users@httpd.apache.org Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-ID: rIX0P+ZTQhue+wJOcK+b9dHE1U-jzqSueIANfY2r5YFuNXfvRuhIn-55iUQsWIdQO0 X-TOI-MSGID: 1e88452d-29be-4270-b05c-e54613b174a8 Subject: [users@httpd] mod_ssl: problem using a self-compiled OpenSSL installation on a 64-bit Linux system archived-at: Sun, 24 Sep 2017 20:49:37 -0000 Hi, if I formerly compiled the Apache httpd server myself using an also self-compiled OpenSSL installation for building "mod_ssl" as a shared module I added only the configure option "--with-ssl" to specify the according OpenSSL installation directory (if I remember correctly). Now on a 64-bit Linux system it seems no longer to work. OpenSSL was installed by using the configure option "--prefix" say into a directory named /usr/local/sc (sc=self-compiled) so I added accordingly the httpd configure option "--with-ssl=/usr/local/sc". But looking in the output of the configure run and the configure script itself (below "Check whether --with-ssl was given") I had the impression that the script checks only for the condition -f "${ap_openssl_base}/lib/pkgconfig/openssl.pc" In my example case that would be result into a check for the existence of the pkg-config file /usr/local/sc/lib/pkgconfig/openssl.pc but the self-compiled openssl libs (1.0.2l) were installed on my 64-bit system under /usr/local/sc/lib64 so the searched file exists instead under /usr/local/sc/lib64/pkgconfig/openssl.pc. So I changed just for testing in the configure script within the four openssl relevant lines (line numbers 26048/26049 and 28901/28902) the string /lib/pkgconfig into /lib64/pkgconfig and thereafter the configure output now mentioned amongst others adding "-I/usr/local/sc/include" to CPPFLAGS adding "-L/usr/local/sc/lib64" to LDFLAGS Ok, but that seems not sufficient since the following "ldd mod_ssl.so" output extract libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 showed that nevertheless the "default" openssl libs (1.0.2j) of the distribution seems to be used. Additionally after setting "LogLevel ssl:info" in the httpd.conf and starting the httpd daemon I found in the error_log file the corresponding lines [ssl:info] [xxx] AH01876: mod_ssl/2.4.27 compiled against Server: Apache/2.4.27, Library: OpenSSL/1.0.2l [ssl:warn] [xxx] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.2l 25 May 2017, version currently loaded is OpenSSL 1.0.2j-fips 26 Sep 2016) - may result in undefined or erroneous behavior So I set before the configure run additionally the environment variable LDFLAGS="-Wl,-rpath=/usr/local/sc/lib64" and that seems to help: A "ldd mod_ssl.so" showed now the self-compiled openssl libs in use libssl.so.1.0.0 => /usr/local/sc/lib64/libssl.so.1.0.0 libcrypto.so.1.0.0 => /usr/local/sc/lib64/libcrypto.so.1.0.0 and the warning in the error_log also disappeared. Alternatively I could probably add generally /usr/local/sc/lib64 into /etc/ld.so.conf but to avoid incompatibility conflicts I don't want all the other self-compiled libs in /usr/local/sc/lib64 used by default (maybe I could put /usr/local/sc/lib64 as last entry). Maybe on 64-bit systems a loop at least over "lib" and "lib64" should be done in the according configure script checks. Is that all correct or are there other mechanisms or better solutions existent in order to handle the described problem? Regards Jens --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org