Re: BUG #18026: compile error / fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this function)

From: Marcel Hofstetter <hofstetter(at)jomasoft(dot)ch>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18026: compile error / fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this function)
Date: 2023-07-17 18:46:50
Message-ID: 3bd7eb9f-15f6-e4d6-290b-cea9b890c826@jomasoft.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Am 17.07.2023 um 18:21 schrieb Marcel Hofstetter:
> Am 17.07.2023 um 18:15 schrieb Tom Lane:
>> PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
>>> fe-auth.c: In function 'check_expected_areq':
>>> fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this
>>> function)
>>
>> Hmm.  This problem seems straightforward enough to fix, but what I
>> don't understand is why we've not seen it already.  We do have a
>> buildfarm animal running on Solaris 11.4 [1], and it's not unhappy.
>> Are you using any unusual build options or toolchain?
>>
>>             regards, tom lane
>>
>> [1]
>> https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=margay&br=HEAD
>
> I'm the owner of margay. No idea why it works there.
> buildfarm tests and building this beta2 is on the same system.
>
> Using just defaults and --without-icu on buildfarm and beta2 compile.

I found it fails after

./configure --prefix /usr/local/16-pgsql --without-icu

but compiles with

./configure --prefix /usr/local/16-pgsql --without-icu --with-openssl

Best regards,
Marcel

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2023-07-17 18:55:50 Re: BUG #18026: compile error / fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this function)
Previous Message Marcel Hofstetter 2023-07-17 16:21:43 Re: BUG #18026: compile error / fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this function)