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 1uk258-00EtfQ-1Q for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Aug 2025 14:59:02 +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 1uk256-005Nae-NE for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Aug 2025 14:59:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uk256-005NaW-DO for pgsql-hackers@lists.postgresql.org; Thu, 07 Aug 2025 14:59:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uk253-001ElO-2g for pgsql-hackers@lists.postgresql.org; Thu, 07 Aug 2025 14:58:59 +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 577Ewu2P1571546; Thu, 7 Aug 2025 10:58:56 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@lists.postgresql.org Subject: Re: headerscheck warnings with late-model gcc In-reply-to: <331f9ea7-8ddc-40c6-8a36-3e8994d3d3b3@eisentraut.org> References: <1127775.1754417387@sss.pgh.pa.us> <9b7ef918-302e-4c84-bc04-a37f5c2b5f92@eisentraut.org> <1440669.1754507496@sss.pgh.pa.us> <331f9ea7-8ddc-40c6-8a36-3e8994d3d3b3@eisentraut.org> Comments: In-reply-to Peter Eisentraut message dated "Thu, 07 Aug 2025 16:15:19 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1571544.1754578736.1@sss.pgh.pa.us> Date: Thu, 07 Aug 2025 10:58:56 -0400 Message-ID: <1571545.1754578736@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > Attached are three patches to fix some unrelated problems with > headerscheck in my environment. 0001 seems fine; it's an oversight that I'd not noticed because ICU_CFLAGS is empty in my usage. Don't like 0002 as-is. I'd be okay with skipping that header if --with-llvm isn't given. However, we already tell users that they'd better configure --with-perl and --with-python, so maybe just add --with-llvm to that list? 0003: +1, I noticed that too yesterday. 0004: I prefer the solution I exhibited yesterday, ie add externs to those headers. > kwlist_d.h doesn't show up in my run, probably because I'm using a > separate build directory, which headerscheck doesn't handle? Another > thing to fix. Yeah, as it stands headerscheck is really only meant for in-tree builds. We will definitely have to do something about that to make it handle built headers in meson builds, and I guess it'd be nice if VPATH works that way as well. One idea could be to redefine it as searching the installation include-file tree instead of the source tree, so that the build process washes out of the matter. regards, tom lane