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 1p47cR-0003Uc-IM for pgsql-interfaces@arkaria.postgresql.org; Sat, 10 Dec 2022 21:42:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p47cP-00037T-1u for pgsql-interfaces@arkaria.postgresql.org; Sat, 10 Dec 2022 21:42:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p47cO-00037G-Q0 for pgsql-interfaces@lists.postgresql.org; Sat, 10 Dec 2022 21:42:48 +0000 Received: from mail2.g1.pair.com ([66.39.3.168]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p47cL-0001u0-Om for pgsql-interfaces@lists.postgresql.org; Sat, 10 Dec 2022 21:42:47 +0000 Received: from mail2.g1.pair.com (localhost [127.0.0.1]) by mail2.g1.pair.com (Postfix) with ESMTP id E376783235E; Sat, 10 Dec 2022 16:42:43 -0500 (EST) Received: from smtpclient.apple (host-95-233-97-166.retail.telecomitalia.it [95.233.97.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail2.g1.pair.com (Postfix) with ESMTPSA id 62EC6844200; Sat, 10 Dec 2022 16:42:43 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: Libpq linked statically linked to OpenSSL/LibreSSL From: Marco Bambini In-Reply-To: Date: Sat, 10 Dec 2022 08:55:57 +0100 Cc: Andres Freund , "pgsql-interfaces@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <5B426B6F-4BC9-43B6-B9E8-B0236A47B2AC@creolabs.com> References: <7B10A8B6-04E3-49F3-AB0D-413E8B0AC365@creolabs.com> <10650109-6ECE-4F7D-9014-2785AA2D413B@creolabs.com> <20221206180100.yoluppdnsaivckwi@awork3.anarazel.de> <098794B3-0300-4374-BCF1-5D2134CD3F6A@creolabs.com> To: =?utf-8?Q?ALBERTO_CABELLO_S=C3=81NCHEZ?= X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Scanned-By: mailmunge 3.10 on 66.39.3.168 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk What sounds really odd is that I replaced all the occurrences of -lssl = -lcrypto with the full path to the static libraries in all involved = Makefile, but the resulting libpq.so library still has undefined links = to the SSL functions. > On 9 Dec 2022, at 09:00, ALBERTO CABELLO S=C3=81NCHEZ = wrote: >=20 >> Marco Bambini wrote: >>=20 >> I tried to follow the advices from Andreas but without any luck. >> I added the --with-includes=3D, --with-libraries=3D arguments to the = configure >> command (with path to my static LibreSSL libraries) and I also = modified the Makefile.global with: >> -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic >>=20 >> The resulting libpq.so is bigger (in size) than the previous one but = it continues=20 >> to try to dynamically load the SSL functions. >=20 > This was also the result I got, -lssl seems to leave without effect = the "-with-*" options.