Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message - Mailing list pgsql-bugs

From Andrew Watkins
Subject Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Date
Msg-id CAH5VfSHUdo1-OPtTn2rbr6LK9eYOtPpjh0=ctNiEMQmYL7BpPw@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
List 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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Next
From: Tom Lane
Date:
Subject: Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message