Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1heW2L-00007c-Cm for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Jun 2019 02:45:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1heW1K-0007bR-87 for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Jun 2019 02:44:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1heW1I-0007bK-Dg for pgsql-bugs@lists.postgresql.org; Sat, 22 Jun 2019 02:44:50 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1heW1C-0005Ap-AQ for pgsql-bugs@lists.postgresql.org; Sat, 22 Jun 2019 02:44:47 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2F4BF21F14; Fri, 21 Jun 2019 22:44:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 21 Jun 2019 22:44:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=JuuHMUKuet8d5X9Y+E3en4ABQHz ODM3zi3KD4PATGas=; b=L0aPVymegHT3Yaua4ZMyPuTiMMOLIGS2+ZYd6rI9Tkt FMqe0ATFBxODb7Uii2trH2BVZa5J7nx/s8i8eGLjFlRvzjdKIuIoUGSOsJHgeOd0 tjmfT99BfrCrMP2EcrSXf+K9ho9/gJHrMiQa91SEu6v2NyJbPfjKF/UW1KK2W5d6 H/hLH52oqSURuBw2O3EkLjJxa7HLrF2zVpKcL43NhCFvk8D3wygV1S566PvIGCdI lZFiCzPWd3jA2GOHcKAKvxi8JGKGrsHgr1K8l5LFvvSY02FBao54sLg3RJgaWAcn JUabUAQDih/8LeChLPRcZDebywTPp36lx+yCthTJx9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=JuuHMU Kuet8d5X9Y+E3en4ABQHzODM3zi3KD4PATGas=; b=oKKDD9MrKt/uYnEzToVE3x HCqNTRe7QF7RqpH157yoQpO9SnM0Oea6OurgyknInXoZzBXAKBKRQxYl166p2suu bWxdDw5yS9Q9jd9EF2o1xGQlGc1Z7lXNAhEvxuZNzKJpwfis2Ssw4IvcsvnjscMj 8gXkyEFGnp0qXEW8hTHl15YMhCpLHpR4V5clOERGcxWahPEsUypO25Qx/AU1mwcK ZWxlSgQ0X8geKaLzU20dvWQItAKjhveVBT/v1hdhdpdSNfEIJuCSKEW7UiA/Jg3z q/6dvlqANLcJwSwkzPG2Znh3n+L4WO5h0ARYHhNhpHw4vzwo2zsdPiWzFXlsGmTA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdejgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddu necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvhedtrddujeeinecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1fab0.ap.nuro.jp [118.241.250.176]) by mail.messagingengine.com (Postfix) with ESMTPA id A6CAB80062; Fri, 21 Jun 2019 22:44:37 -0400 (EDT) Date: Sat, 22 Jun 2019 11:44:33 +0900 From: Michael Paquier To: Juan =?iso-8859-1?Q?Jos=E9_Santamar=EDa?= Flecha Cc: Sandeep Thakkar , serpashk@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails on Windows with Visual Studio 2017 Message-ID: <20190622024433.GA1713@paquier.xyz> References: <15789-8fc75dea3c5a17c8@postgresql.org> <20190528105802.GC2682@paquier.xyz> <20190531142832.GQ2848@paquier.xyz> <20190603235132.GA1529@paquier.xyz> <20190620024941.GB2660@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 21, 2019 at 12:23:21PM +0200, Juan Jos=E9 Santamar=EDa Flecha w= rote: > Since the third parameter is only currently used with OpenSSL > libraries, I thought it would be ok to touch it in this patch. The > reasson behind doing so was to keep the logic for the new fancy > library naming tidy. Documenting better is not a thing I can argue > against, xlib stands for expanded library name as used in > GetAdditionalLinkerDependencies and maybe a comment like this can make > things clearer: >=20 > # The parameter $slib is for sufixed run-time library. > # When available it will be added, if not it silently defaults to $lib. > sub AddLibrary That's a sensible argument. Perhaps your way of doing is much better at the end. I still found the patch hard to follow in the changes it did though, so documenting things for the changes you are doing would help anybody looking at this code in the future.=20 > No problem with that. Even more so, it can return 4 values: the 3 > digits and the letter. For example, 1.1.1b would be (1, 1, 1, b). There are two reasons why we need to know the version of OpenSSL dynamically: 1) Enforce the correct compilation flags in pg_config.h 2) Select the correct library paths. OpenSSL keeps API compatibility in their stable branches, so 1. would not be an issue. I suspect as well that the installers we use for Postgres compilation are not going to change their layer in a minor version update. So having only 3 digits is enough. 2 likely not. I would just keep it at three for now. Could you send an updated patch? I would like to look at this stuff rather sooner than later as OpenSSL 1.0.2 goes EOL in a couple of months, so there is going to be demand for it. -- Michael --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl0NlhEACgkQnvQgOdby QH2kpw/+IjZDePhnMc6AjCRxiaBlG1T+uh6s73zYkOdyvLubT6//7RAaDtpIpAsl S+++ugmNWTQ3iBYLJkLy4Hm6ghl9u8nBkle2Eae945cc7i0gFVvWUYEtP5KTMxIX 6XmSQ6RYU0KeP8uGeTgDYMMKLpI02jx0rTjEgYsEqhG6SAyI2/fGn7bBOVcBUjtz H80X+ZfxiDkHI3OtJj+OLGebGNKTG1TpoWzoZgWMZhJicNwGJNyT1KguL5D5zZcY /zRhselqJYQqQoWyQkJFJOGthyPVZuOrmkY36vDb7RUQK6XIyFGOlPn02Bcxv1Te ROBRBACL/oCg7nSHTWvsyIWkAllNfHzjLPvVabtMkWrFUbSo3UDmyhyjdAgbzngS TscgvhJ93LNuUT1SAJ+vMbca7cb79qhkOgOrwNzoyxLkwc9pu4ISVsH2c5IBX6oq YVcHSAR5Vltq3LFl5LaRHFWKOvKuKI93o689I+DQekly2+TALfVV55TJFJZsXPHi +4r8wcMtDXjWcERNJVWMx/l+CeJ2/MuZ7at57MfDfhDqRye8jTAsvGkPmyi27eml NuuljSJ7B7EmClhgdpIsg//TDdsONCng7jktBrZwysoxseU2wSN79HKIOFQaWmzx GFPs1KzXE7tiqKT9HOAlQmKhNssP/p3ZAY6+d7zXR9VzDvgT8+k= =0xeF -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--