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 1miTh0-0003oM-TE for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Nov 2021 03:45:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1miTgz-0004WZ-8f for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Nov 2021 03:45:33 +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 1miTgz-0004WQ-0E for pgsql-hackers@lists.postgresql.org; Thu, 04 Nov 2021 03:45:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miTgw-0000PC-CK for pgsql-hackers@lists.postgresql.org; Thu, 04 Nov 2021 03:45:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1A43jQZu284930; Wed, 3 Nov 2021 23:45:27 -0400 From: Tom Lane To: Thomas Munro cc: Michael Paquier , =?UTF-8?B?6L+R6Jek6ZuE5aSq?= , Daniel Gustafsson , PostgreSQL Hackers , buildfarm@sraoss.co.jp Subject: Re: Missing include in be-secure-openssl.c? In-reply-to: References: <1051867.1635720347@sss.pgh.pa.us> <3C44D869-9BA5-4D02-9812-BF85D105B315@yesql.se> <1129759.1635773615@sss.pgh.pa.us> <461EF47A-C979-4124-87E3-758A68A98D1E@yesql.se> <1790342.1635950136@sss.pgh.pa.us> <20211104105613.d97d4434e1adb2495f428b72@sraoss.co.jp> <284247.1635996826@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Thu, 04 Nov 2021 16:37:47 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <284928.1635997526.1@sss.pgh.pa.us> Date: Wed, 03 Nov 2021 23:45:26 -0400 Message-ID: <284929.1635997526@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Thu, Nov 4, 2021 at 4:33 PM Tom Lane wrote: >> But I don't get the point about where HEAD is different from v14? >> be-secure-openssl.c isn't. > I don't understand what's going on and I don't have the headers to > look at, but I was thinking that WIN32_LEAN_AND_MEAN must be causing a > different state to be reached that somehow leaves the bad definition > of X509_NAME in place. It's confusing though, because you'd hope > that'd cause *less* stuff to get defined... Yeah, I noted the comment about WIN32_LEAN_AND_MEAN in the stackoverflow thread too ... but as you say, it seems like that should make the problem less probable not more so. Still, it's hard to think of any other relevant change. Anyway, my thought now is (1) move the openssl includes to after system includes in both *-secure-openssl.c files, and (2) add comments explaining why the order is critical. But it's late here and I'm not going to mess with it right now. If you want to take a shot at a blind fix before hamerkop's next run, have at it. regards, tom lane