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 1mhJaN-0003dv-7B for pgsql-hackers@arkaria.postgresql.org; Sun, 31 Oct 2021 22:45:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mhJaM-0003MD-4Y for pgsql-hackers@arkaria.postgresql.org; Sun, 31 Oct 2021 22:45:54 +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 1mhJaL-0003M3-SM for pgsql-hackers@lists.postgresql.org; Sun, 31 Oct 2021 22:45:53 +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 1mhJaI-0003Uj-G9 for pgsql-hackers@lists.postgresql.org; Sun, 31 Oct 2021 22:45:53 +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 19VMjlSL1051868; Sun, 31 Oct 2021 18:45:47 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org cc: buildfarm@sraoss.co.jp Subject: Missing include in be-secure-openssl.c? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1051866.1635720347.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 31 Oct 2021 18:45:47 -0400 Message-ID: <1051867.1635720347@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hamerkop has been failing recently [1] with c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(67): error C2143: \215\\\225\266\203G\203\211\201[: '= )' \202\252 '(' \202\314\221O\202\311\202\240\202\350\202\334\202\271\202\= 361\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcx= proj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(67): error C2091: \212\326\220\224\202\315\212\326\22= 0\224\202\360\225\324\202\271\202\334\202\271\202\361\201B [c:\\build-farm= -local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(67): error C2059: \215\\\225\266\203G\203\211\201[: '= )' [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(67): error C2143: \215\\\225\266\203G\203\211\201[: '= )' \202\252 '\222\350\220\224' \202\314\221O\202\311\202\240\202\350\202\3= 34\202\271\202\361\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.buil= d\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(67): error C2143: \215\\\225\266\203G\203\211\201[: '= {' \202\252 '\222\350\220\224' \202\314\221O\202\311\202\240\202\350\202\3= 34\202\271\202\361\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.buil= d\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(67): error C2059: \215\\\225\266\203G\203\211\201[: '= \222\350\220\224' [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\pos= tgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(571): error C2065: 'x509name': \222\350\213`\202\263\= 202\352\202\304\202\242\202\310\202\242\216\257\225\312\216q\202\305\202\2= 67\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxp= roj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(571): error C2296: '*': \226\263\214\370\202\305\202\= 267\201B\215\266\203I\203y\203\211\203\223\203h\202\311\202\315\214^ 'LPCS= TR' \202\252\216w\222\350\202\263\202\352\202\304\202\242\202\334\202\267\= 201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxproj= ] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(576): error C2065: 'x509name': \222\350\213`\202\263\= 202\352\202\304\202\242\202\310\202\242\216\257\225\312\216q\202\305\202\2= 67\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxp= roj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(582): error C2065: 'x509name': \222\350\213`\202\263\= 202\352\202\304\202\242\202\310\202\242\216\257\225\312\216q\202\305\202\2= 67\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxp= roj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(623): error C2065: 'x509name': \222\350\213`\202\263\= 202\352\202\304\202\242\202\310\202\242\216\257\225\312\216q\202\305\202\2= 67\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxp= roj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(1377): error C2143: \215\\\225\266\203G\203\211\201[:= ')' \202\252 '(' \202\314\221O\202\311\202\240\202\350\202\334\202\271\20= 2\361\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.v= cxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(1377): error C2091: \212\326\220\224\202\315\212\326\= 220\224\202\360\225\324\202\271\202\334\202\271\202\361\201B [c:\\build-fa= rm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(1377): error C2059: \215\\\225\266\203G\203\211\201[:= ')' [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\postgres.vcxproj= ] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(1377): error C2143: \215\\\225\266\203G\203\211\201[:= ')' \202\252 '\222\350\220\224' \202\314\221O\202\311\202\240\202\350\202= \334\202\271\202\361\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.bu= ild\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(1377): error C2143: \215\\\225\266\203G\203\211\201[:= '{' \202\252 '\222\350\220\224' \202\314\221O\202\311\202\240\202\350\202= \334\202\271\202\361\201B [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.bu= ild\\postgres.vcxproj] c:\\build-farm-local\\buildroot\\head\\pgsql.build\\src\\backend\\libpq\= \be-secure-openssl.c(1377): error C2059: \215\\\225\266\203G\203\211\201[:= '\222\350\220\224' [c:\\build-farm-local\\buildroot\\HEAD\\pgsql.build\\p= ostgres.vcxproj] While I can't actually read these error messages, judging by the line numbers and the ASCII fragments, it's spitting up on uses of the typedef X509_NAME. There are also nearby warnings that look like some of the associated functions aren't declared. I observe that the OpenSSL docs say you are supposed to #include when using these functions. We are including that header in some other modules, but not here. I speculate that we've gotten away with that so far because of indirect inclusions; but hamerkop must be running an OpenSSL version that has rearranged the headers enough that that doesn't work anymore. That machine was offline for awhile right before it started to fail, so it seems plausible that it was rebuilt with some pretty bleeding-edge OpenSSL version. Anyway, I propose adding that #include. regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dhamerkop&dt=3D= 2021-10-29%2008%3A12%3A40