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 1keiy7-0002nz-OH for pgsql-general@arkaria.postgresql.org; Mon, 16 Nov 2020 18:11:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1keiy6-0003JW-OZ for pgsql-general@arkaria.postgresql.org; Mon, 16 Nov 2020 18:11:10 +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 1keiy6-0003JP-GS for pgsql-general@lists.postgresql.org; Mon, 16 Nov 2020 18:11:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1keiy1-0004pd-GR for pgsql-general@lists.postgresql.org; Mon, 16 Nov 2020 18:11:09 +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 0AGIB3QN774118; Mon, 16 Nov 2020 13:11:03 -0500 From: Tom Lane To: Laurenz Albe cc: Thomas Munro , Condor , "pgsql-generallists.postgresql.org" Subject: Re: Unable to compile postgres 13.1 on Slackware current x64 In-reply-to: <6f728bb717a30a78a16a10fe592fefa8921b8566.camel@cybertec.at> References: <7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com> <72da0c8a1303691faed52afc641713a65b5eb80f.camel@cybertec.at> <772035.1605547803@sss.pgh.pa.us> <6f728bb717a30a78a16a10fe592fefa8921b8566.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Mon, 16 Nov 2020 19:02:55 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <774116.1605550263.1@sss.pgh.pa.us> Date: Mon, 16 Nov 2020 13:11:03 -0500 Message-ID: <774117.1605550263@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Laurenz Albe writes: > On Mon, 2020-11-16 at 12:30 -0500, Tom Lane wrote: >> In this case, I see one use of the constant TRUE in collationcmds.c, >> but I wonder how come that's there given that we deprecated upper-case >> TRUE some time ago. I find it hard to believe that sprinkling "#include >> " into random places is either necessary (on modern platforms >> anyway) or a good idea (if we're not using , this seems pretty >> much guaranteed to break things); so I think the rest of that patch is >> foolhardy. > How about this patch? It fixes the problem for me. What's wrong with s/TRUE/true/ in get_icu_language_tag? (I have zero interest in undoing 6337865f3, which is what this patch would amount to.) A larger issue is that it looks like ICU68 may insist on importing in some headers. That's fine on the platforms where we use anyway, but it's distinctly not fine elsewhere. We might be able to work around that the same way that dfmgr.h does: /* * On macOS, insists on including . If we're not * using stdbool, undef bool to undo the damage. */ #ifndef PG_USE_STDBOOL #ifdef bool #undef bool #endif #endif This is going to be hard to test without a platform that doesn't use though. [ starts booting up spare PPC Mac ... ] regards, tom lane