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

Поиск
Список
Период
Сортировка
От Andrew Watkins
Тема Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Дата
Msg-id CAH5VfSHUdo1-OPtTn2rbr6LK9eYOtPpjh0=ctNiEMQmYL7BpPw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #18995: Building with GCC 14 fails: incompatible pointer struct pam_message
Список 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 по дате отправления: