Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message

From: Andrew Watkins <awatkins1966(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Date: 2025-07-23 15:31:10
Message-ID: CAH5VfSHUdo1-OPtTn2rbr6LK9eYOtPpjh0=ctNiEMQmYL7BpPw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>
>
>
> On my Linux box I find this in /usr/include/security/_pam_types.h:
>
> struct pam_conv {
> int (*conv)(int num_msg, const struct pam_message **msg,
> struct pam_response **resp, void *appdata_ptr);
> void *appdata_ptr;
> };

You are right Solaris is missing "const"

struct pam_conv {
int (*conv)(int, struct pam_message **, struct pam_response **,
void *);
void *appdata_ptr;
};

Sorry, for digging up an old problem . I did some searching of the archive
but never found that link going back to 2007.

Now with your pointer I can see Oracle Solaris get over this problem by
patching source code of software. Guess they can't afford to fix
the pam_appl.h file.

Thanks
Andrew

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2025-07-23 15:43:19 Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Previous Message Tom Lane 2025-07-23 14:44:06 Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message