Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Andrew Watkins <awatkins1966@gmail.com>
From: Andrew Watkins <awatkins1966@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2025-07-23T15:31:10Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix build breakage on Solaris-alikes with late-model GCC.
- e6dfd068ed45 19 (unreleased) landed
- e4d585455509 16.10 landed
- b252ce31116f 15.14 landed
- 868b39a544ed 14.19 landed
- 635a856279ef 17.6 landed
- 3d039b53a133 18.0 landed
- 1ccb3851db5d 13.22 landed
>
>
>
> 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