From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Condor <condor@stz-bg.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Unable to compile postgres 13.1 on Slackware current x64
Date: Mon, 16 Nov 2020 13:11:03 -0500
Message-ID: <774117.1605550263@sss.pgh.pa.us> (raw)
In-Reply-To: <6f728bb717a30a78a16a10fe592fefa8921b8566.camel@cybertec.at>
References: <7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com>
<72da0c8a1303691faed52afc641713a65b5eb80f.camel@cybertec.at>
<CA+hUKG+XnrPeVJaSE2cscA3ouvxeNzwTGU-cHpAKd-Jfzew8uA@mail.gmail.com>
<772035.1605547803@sss.pgh.pa.us>
<6f728bb717a30a78a16a10fe592fefa8921b8566.camel@cybertec.at>
Laurenz Albe <laurenz.albe@cybertec.at> 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
>> <stdbool.h>" into random places is either necessary (on modern platforms
>> anyway) or a good idea (if we're not using <stdbool.h>, 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
<stdbool.h> in some headers. That's fine on the platforms where we
use <stdbool.h> 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, <dlfcn.h> insists on including <stdbool.h>. 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
<stdbool.h> though. [ starts booting up spare PPC Mac ... ]
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, thomas.munro@gmail.com, condor@stz-bg.com
Subject: Re: Unable to compile postgres 13.1 on Slackware current x64
In-Reply-To: <774117.1605550263@sss.pgh.pa.us>
References: <7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com> <72da0c8a1303691faed52afc641713a65b5eb80f.camel@cybertec.at> <CA+hUKG+XnrPeVJaSE2cscA3ouvxeNzwTGU-cHpAKd-Jfzew8uA@mail.gmail.com> <772035.1605547803@sss.pgh.pa.us> <6f728bb717a30a78a16a10fe592fefa8921b8566.camel@cybertec.at> <774117.1605550263@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox