Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2ccJ-00038Q-Rj for pgsql-interfaces@arkaria.postgresql.org; Tue, 06 Dec 2022 18:24:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p2ccI-0001wg-J6 for pgsql-interfaces@arkaria.postgresql.org; Tue, 06 Dec 2022 18:24:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2ccI-0001wX-Bv for pgsql-interfaces@lists.postgresql.org; Tue, 06 Dec 2022 18:24:30 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2ccF-000318-VD for pgsql-interfaces@lists.postgresql.org; Tue, 06 Dec 2022 18:24:29 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1p2ccA-00HMUh-89; Tue, 06 Dec 2022 13:24:22 -0500 Date: Tue, 6 Dec 2022 13:24:22 -0500 From: Bruce Momjian To: Andres Freund Cc: Marco Bambini , ALBERTO CABELLO =?utf-8?Q?S=C3=81NCHEZ?= , "pgsql-interfaces@lists.postgresql.org" Subject: Re: Libpq linked statically linked to OpenSSL/LibreSSL Message-ID: References: <7B10A8B6-04E3-49F3-AB0D-413E8B0AC365@creolabs.com> <10650109-6ECE-4F7D-9014-2785AA2D413B@creolabs.com> <20221206180100.yoluppdnsaivckwi@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221206180100.yoluppdnsaivckwi@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Dec 6, 2022 at 10:01:00AM -0800, Andres Freund wrote: > > I then modified the Makefile.global in the src directory by replacing the occurrences of -lssl and -lcrypto with: > > /root/rothsoft/libressl-3.6.1/ssl/.libs/libssl.a /root/rothsoft/libressl-3.6.1/crypto/.libs/libcrypto.a > > in the LIBS entry. > > I think this is completely the wrong path. You should add libressl's include > and library directories to --with-includes=, --with-libraries=. The big point is that a compile-compatible library is not necessarily a link-compatible library, and that LibreSSL is probably only compile-compatible with OpenSSL, hence the need to use the LibreSSL includes. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Embrace your flaws. They make you human, rather than perfect, which you will never be.