Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qLV3Y-003I8y-VL for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Jul 2023 20:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qLV3W-00EnfO-Sb for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Jul 2023 20:42:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qLV3W-00EnfF-KI for pgsql-bugs@lists.postgresql.org; Mon, 17 Jul 2023 20:42:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qLV3T-0018CJ-U1 for pgsql-bugs@lists.postgresql.org; Mon, 17 Jul 2023 20:42: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 36HKglAu4073251; Mon, 17 Jul 2023 16:42:47 -0400 From: Tom Lane To: Marcel Hofstetter cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18026: compile error / fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this function) In-reply-to: <3bd7eb9f-15f6-e4d6-290b-cea9b890c826@jomasoft.ch> References: <18026-d5bb69f79cd16203@postgresql.org> <4037095.1689610559@sss.pgh.pa.us> <3bd7eb9f-15f6-e4d6-290b-cea9b890c826@jomasoft.ch> Comments: In-reply-to Marcel Hofstetter message dated "Mon, 17 Jul 2023 20:46:50 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4073249.1689626567.1@sss.pgh.pa.us> Date: Mon, 17 Jul 2023 16:42:47 -0400 Message-ID: <4073250.1689626567@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marcel Hofstetter writes: > 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 Ah. Further digging shows that: * On Linux, macOS, and NetBSD (probably all *BSD), is included by , which fe-auth.c includes. So that explains why we didn't see a problem most places, regardless of compile options. AFAICT is not specified by POSIX, so it's unsurprising if Solaris has a different idea of what it should expose. * The openssl headers #include from ossl_typ.h, which is pulled in indirectly from most other openssl headers. So that's why margay didn't complain. So I'm now satisfied that the problem is explained, and I'll go put in the needful #include. Thanks for the report! regards, tom lane