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 1ueahW-00CATb-Ih for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jul 2025 14:44:11 +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 1ueahV-002eRy-ML for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jul 2025 14:44:09 +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 1ueahV-002eRp-Do for pgsql-bugs@lists.postgresql.org; Wed, 23 Jul 2025 14:44:09 +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 1ueahT-000Otd-3B for pgsql-bugs@lists.postgresql.org; Wed, 23 Jul 2025 14:44:08 +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 56NEi6aO1315196; Wed, 23 Jul 2025 10:44:06 -0400 From: Tom Lane To: awatkins1966@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message In-reply-to: <1313566.1753280855@sss.pgh.pa.us> References: <18995-82058da9ab4337a7@postgresql.org> <1313566.1753280855@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 23 Jul 2025 10:27:35 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1315194.1753281846.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Jul 2025 10:44:06 -0400 Message-ID: <1315195.1753281846@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > This doesn't look like a GCC version problem, but like a discrepancy > in the PAM header files, to wit, "const" or not in the expected > signature of pam_passwd_conv_proc. Can you verify whether or not > pam_appl.h and its subsidiary headers changed? I had a feeling we'd seen this before, and after digging in the archives indeed we have: https://www.postgresql.org/message-id/flat/16415.1184285944%40sss.pgh.pa.u= s#a0a2fac693665cc517f761e24f222574 So I take back the guess that it's not about GCC version. What seems more likely now is that it's been a warning right along, which you have been ignoring, and GCC 14 has decided to promote it to an error. We could perhaps install a configure check to see if this argument is expected to be const or not. But given the shortage of reports, I think it'd be sufficient to do what I suggested in that 2007 thread: >> The main issue in my mind would be how to determine whether to use >> const or not. If all Solaris releases are like this, and can be >> expected to stay that way, I'd be inclined to just put a "#define >> PAM_CONV_PROC_NOT_CONST" in include/port/solaris.h and drive the >> function declaration off that. As a short-term workaround, GCC has probably got a command-line option to knock the error back down to a warning. regards, tom lane