PolicyKit requires pam ?

Frédéric L. W. Meunier fredlwm at gmail.com
Mon Jun 1 15:42:47 PDT 2009


I tried to compile PolicyKit 0.9.2 using --with-authfw=shadow, 
but it fails with

polkitagenthelper.c:30:31: error: security/pam_appl.h: No such file or directory
polkitagenthelper.c:47: warning: 'struct pam_response' declared inside parameter list
polkitagenthelper.c:47: warning: its scope is only this definition or declaration, which is probably not what you want
polkitagenthelper.c:47: warning: 'struct pam_message' declared inside parameter list
polkitagenthelper.c: In function 'main':
polkitagenthelper.c:55: error: storage size of 'pam_conversation' isn't known
polkitagenthelper.c:56: error: 'pam_handle_t' undeclared (first use in this function)
polkitagenthelper.c:56: error: (Each undeclared identifier is reported only once
polkitagenthelper.c:56: error: for each function it appears in.)
polkitagenthelper.c:56: error: 'pam_h' undeclared (first use in this function)
polkitagenthelper.c:108: warning: implicit declaration of function 'pam_start'
polkitagenthelper.c:108: warning: nested extern declaration of 'pam_start'
polkitagenthelper.c:112: error: 'PAM_SUCCESS' undeclared (first use in this function)
polkitagenthelper.c:114: warning: implicit declaration of function 'pam_strerror'
polkitagenthelper.c:114: warning: nested extern declaration of 'pam_strerror'
polkitagenthelper.c:114: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
polkitagenthelper.c:119: warning: implicit declaration of function 'pam_set_item'
polkitagenthelper.c:119: warning: nested extern declaration of 'pam_set_item'
polkitagenthelper.c:119: error: 'PAM_RUSER' undeclared (first use in this function)
polkitagenthelper.c:122: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
polkitagenthelper.c:127: warning: implicit declaration of function 'pam_authenticate'
polkitagenthelper.c:127: warning: nested extern declaration of 'pam_authenticate'
polkitagenthelper.c:130: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
polkitagenthelper.c:135: warning: implicit declaration of function 'pam_acct_mgmt'
polkitagenthelper.c:135: warning: nested extern declaration of 'pam_acct_mgmt'
polkitagenthelper.c:138: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
polkitagenthelper.c:143: warning: implicit declaration of function 'pam_get_item'
polkitagenthelper.c:143: warning: nested extern declaration of 'pam_get_item'
polkitagenthelper.c:143: error: 'PAM_USER' undeclared (first use in this function)
polkitagenthelper.c:146: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
polkitagenthelper.c:161: warning: implicit declaration of function 'pam_end'
polkitagenthelper.c:161: warning: nested extern declaration of 'pam_end'
polkitagenthelper.c:55: warning: unused variable 'pam_conversation'
polkitagenthelper.c: At top level:
polkitagenthelper.c:200: warning: 'struct pam_response' declared inside parameter list
polkitagenthelper.c:200: warning: 'struct pam_message' declared inside parameter list
polkitagenthelper.c:200: error: conflicting types for 'conversation_function'
polkitagenthelper.c:47: error: previous declaration of 'conversation_function' was here
polkitagenthelper.c: In function 'conversation_function':
polkitagenthelper.c:203: error: 'PAM_MAX_RESP_SIZE' undeclared (first use in this function)
polkitagenthelper.c:207: error: 'PAM_MAX_NUM_MSG' undeclared (first use in this function)
polkitagenthelper.c:208: error: 'PAM_CONV_ERR' undeclared (first use in this function)
polkitagenthelper.c:210: error: dereferencing pointer to incomplete type
polkitagenthelper.c:211: error: 'PAM_BUF_ERR' undeclared (first use in this function)
polkitagenthelper.c:215: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:215: error: dereferencing pointer to incomplete type
polkitagenthelper.c:216: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:216: error: dereferencing pointer to incomplete type
polkitagenthelper.c:217: error: dereferencing pointer to incomplete type
polkitagenthelper.c:220: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)
polkitagenthelper.c:224: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this function)
polkitagenthelper.c:227: error: dereferencing pointer to incomplete type
polkitagenthelper.c:228: error: dereferencing pointer to incomplete type
polkitagenthelper.c:228: error: dereferencing pointer to incomplete type
polkitagenthelper.c:228: error: dereferencing pointer to incomplete type
polkitagenthelper.c:239: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:239: error: dereferencing pointer to incomplete type
polkitagenthelper.c:240: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:240: error: dereferencing pointer to incomplete type
polkitagenthelper.c:244: error: 'PAM_ERROR_MSG' undeclared (first use in this function)
polkitagenthelper.c:248: error: 'PAM_TEXT_INFO' undeclared (first use in this function)
polkitagenthelper.c:251: error: dereferencing pointer to incomplete type
polkitagenthelper.c:252: error: dereferencing pointer to incomplete type
polkitagenthelper.c:253: error: dereferencing pointer to incomplete type
polkitagenthelper.c:253: error: dereferencing pointer to incomplete type
polkitagenthelper.c:264: error: 'PAM_SUCCESS' undeclared (first use in this function)
polkitagenthelper.c:270: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:270: error: dereferencing pointer to incomplete type
polkitagenthelper.c:271: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:271: error: dereferencing pointer to incomplete type
polkitagenthelper.c:271: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:271: error: dereferencing pointer to incomplete type
polkitagenthelper.c:272: error: invalid use of undefined type 'struct pam_response'
polkitagenthelper.c:272: error: dereferencing pointer to incomplete type
polkitagenthelper.c:275: error: dereferencing pointer to incomplete type
polkitagenthelper.c:203: warning: unused variable 'buf'
make[4]: *** [polkit_agent_helper_1-polkitagenthelper.o] Error 1
make[4]: Leaving directory `/home/fredlwm/tmp/objdir/policykit/src/polkitagent'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/fredlwm/tmp/objdir/policykit/src/polkitagent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fredlwm/tmp/objdir/policykit/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fredlwm/tmp/objdir/policykit'
make: *** [all] Error 2


More information about the hal mailing list