Re: Unable to compile postgres 13.1 on Slackware current x64

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Condor <condor(at)stz-bg(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Unable to compile postgres 13.1 on Slackware current x64
Date: 2020-11-16 17:14:06
Message-ID: d0d43e6b3794a85bf769023a4e8b36d1bbf23d59.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2020-11-16 at 22:17 +1300, Thomas Munro wrote:
> On Mon, Nov 16, 2020 at 10:10 PM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> > On Mon, 2020-11-16 at 09:15 +0200, Condor wrote:
> > > collationcmds.c: In function ‘get_icu_language_tag’:
> > > collationcmds.c:467:51: error: ‘TRUE’ undeclared (first use in this
> > > function); did you mean ‘IS_TRUE’?
> > > 467 | uloc_toLanguageTag(localename, buf, sizeof(buf), TRUE, &status);
> > > | ^~~~
> > > | IS_TRUE
>
>
> > "UBool" and "TRUE" are defined in "umachine.h", which is a header file for the
> > "libicu" library.
> > PostgreSQL includes "unicode/ucol.h", which will include "umachine.h"
> > (via "utypes.h"), so that should be fine.
> > Are your libicu headers installed under /usr/include/unicode?
> > Do you get any messages about missing include files earlier?
>
> It looks like something happened to ICU's boolean macros . See this
> commit in FreeBSD ports:
>
> https://github.com/freebsd/freebsd-ports/commit/81a88b4506ec06d07be10d199170ef4003eb0e30
>
> ... which references:
>
> https://github.com/unicode-org/icu/commit/c3fe7e09d844

Ugh, you are right. Joy.
This will be annoying to work around.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-11-16 17:30:03 Re: Unable to compile postgres 13.1 on Slackware current x64
Previous Message Tom Lane 2020-11-16 15:03:41 Re: "invalid record length" after restoring pg_basebackup