Can't compile FreeRADIUS with pam module

Chico Sokol chico.sokol at gmail.com
Fri Nov 6 13:48:40 CET 2009


Hy guys,
I'm using version 2.1.7. And I'm having trouble at building freeradius
from de source with pam module (rlm_pam). Here's what I'm doing:

# ./configure --with-modules=rlm_pam
# make

Then I get the following error, during the pam module compilation:

rlm_pam.c:123: warning: 'struct pam_response' declared inside
parameter list
rlm_pam.c:123: warning: its scope is only this definition or
declaration, which is probably not what you want
rlm_pam.c:123: warning: 'struct pam_message' declared inside parameter
list
rlm_pam.c: In function 'PAM_conv':
rlm_pam.c:131: error: invalid application of 'sizeof' to incomplete
type 'struct pam_response'
rlm_pam.c:132: error: invalid application of 'sizeof' to incomplete
type 'struct pam_response'
rlm_pam.c:134: error: dereferencing pointer to incomplete type
rlm_pam.c:135: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in
this function)
rlm_pam.c:135: error: (Each undeclared identifier is reported only
once
rlm_pam.c:135: error: for each function it appears in.)
rlm_pam.c:136: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:136: error: dereferencing pointer to incomplete type
rlm_pam.c:136: error: 'PAM_SUCCESS' undeclared (first use in this function)
rlm_pam.c:137: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:137: error: dereferencing pointer to incomplete type
rlm_pam.c:139: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in
this function)
rlm_pam.c:140: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:140: error: dereferencing pointer to incomplete type
rlm_pam.c:141: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:141: error: dereferencing pointer to incomplete type
rlm_pam.c:143: error: 'PAM_TEXT_INFO' undeclared (first use in this function)
rlm_pam.c:146: error: 'PAM_ERROR_MSG' undeclared (first use in this function)
rlm_pam.c:150: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:150: error: dereferencing pointer to incomplete type
rlm_pam.c:152: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:152: error: dereferencing pointer to incomplete type
rlm_pam.c:152: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:152: error: dereferencing pointer to incomplete type
rlm_pam.c:153: error: invalid use of undefined type 'struct pam_response'
rlm_pam.c:153: error: dereferencing pointer to incomplete type
rlm_pam.c:158: error: 'PAM_CONV_ERR' undeclared (first use in this function)


Any ideas? Am I doing something wrong?

Thank you,

-- 
Chico Sokol



More information about the Freeradius-Users mailing list