Greetings list,
This host is running CentOS 4.3. uname -r output "2.6.9-67.0.4.plus.c4smp". I have tried looking for an already compiled module for PAM on centos without success, my google-foo is weak apparently. I downloaded the tar file straight from freeradius.org. When I unpacked and tried using "make" (as root) in the folder I get the following output. I am not much of a programmer so this error looks very confusing to me. Any help would be greatly appreciated.
[root@host pam_radius-1.3.17]# make
cc -Wall -fPIC -c pam_radius_auth.c -o pam_radius_auth.o
pam_radius_auth.c:63:34: security/pam_modules.h: No such file or directory
pam_radius_auth.c:156: error: syntax error before '*' token
pam_radius_auth.c: In function `_int_free':
pam_radius_auth.c:158: error: `x' undeclared (first use in this function)
pam_radius_auth.c:158: error: (Each undeclared identifier is reported only once
pam_radius_auth.c:158: error: for each function it appears in.)
pam_radius_auth.c: In function `host2server':
pam_radius_auth.c:270: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_radius_auth.c:312: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c: In function `initialize':
pam_radius_auth.c:600: error: `PAM_ABORT' undeclared (first use in this function)
pam_radius_auth.c:659: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_radius_auth.c:691: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c: In function `talk_radius':
pam_radius_auth.c:798: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c:995: error: `PAM_IGNORE' undeclared (first use in this function)
pam_radius_auth.c:997: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_radius_auth.c: At top level:
pam_radius_auth.c:1014: error: syntax error before '*' token
pam_radius_auth.c: In function `rad_converse':
pam_radius_auth.c:1017: error: storage size of 'resp_msg' isn't known
pam_radius_auth.c:1022: error: `msg_style' undeclared (first use in this function)
pam_radius_auth.c:1023: error: `message' undeclared (first use in this function)
pam_radius_auth.c:1027: warning: implicit declaration of function `pam_get_item'
pam_radius_auth.c:1027: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c:1027: error: `PAM_CONV' undeclared (first use in this function)
pam_radius_auth.c:1028: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c:1030: error: dereferencing pointer to incomplete type
pam_radius_auth.c:1030: error: dereferencing pointer to incomplete type
pam_radius_auth.c:1033: error: `password' undeclared (first use in this function)
pam_radius_auth.c:1042: error: dereferencing pointer to incomplete type
pam_radius_auth.c:1017: warning: unused variable `resp_msg'
pam_radius_auth.c: At top level:
pam_radius_auth.c:1061: error: syntax error before "int"
pam_radius_auth.c:1062: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_sm_authenticate':
pam_radius_auth.c:1070: error: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_radius_auth.c:1078: error: `argc' undeclared (first use in this function)
pam_radius_auth.c:1078: error: `argv' undeclared (first use in this function)
pam_radius_auth.c:1081: warning: implicit declaration of function `pam_get_user'
pam_radius_auth.c:1081: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c:1082: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c:1082: warning: implicit declaration of function `pam_set_data'
pam_radius_auth.c:1088: error: `PAM_USER_UNKNOWN' undeclared (first use in this function)
pam_radius_auth.c:1097: error: `PAM_RUSER' undeclared (first use in this function)
pam_radius_auth.c:1102: warning: assignment from incompatible pointer type
pam_radius_auth.c:1121: error: `PAM_SERVICE' undeclared (first use in this function)
pam_radius_auth.c:1135: error: `PAM_AUTHTOK' undeclared (first use in this function)
pam_radius_auth.c:1152: error: `PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)
pam_radius_auth.c:1168: error: `PAM_RHOST' undeclared (first use in this function)
pam_radius_auth.c:1199: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
pam_radius_auth.c:1216: error: `PAM_PROMPT_ECHO_ON' undeclared (first use in this function)
pam_radius_auth.c:1241: warning: implicit declaration of function `pam_set_item'
pam_radius_auth.c: At top level:
pam_radius_auth.c:1268: error: syntax error before "int"
pam_radius_auth.c:1269: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_sm_setcred':
pam_radius_auth.c:1273: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c:1275: warning: implicit declaration of function `pam_get_data'
pam_radius_auth.c:1275: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c: At top level:
pam_radius_auth.c:1283: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_private_session':
pam_radius_auth.c:1289: error: `PAM_AUTH_ERR' undeclared (first use in this function)
pam_radius_auth.c:1297: error: `argc' undeclared (first use in this function)
pam_radius_auth.c:1297: error: `argv' undeclared (first use in this function)
pam_radius_auth.c:1300: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c:1301: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c:1301: error: `PAM_SESSION_ERR' undeclared (first use in this function)
pam_radius_auth.c:1306: error: `PAM_USER_UNKNOWN' undeclared (first use in this function)
pam_radius_auth.c:1321: error: `PAM_SERVICE' undeclared (first use in this function)
pam_radius_auth.c:1336: error: `status' undeclared (first use in this function)
pam_radius_auth.c:1355: error: `PAM_PERM_DENIED' undeclared (first use in this function)
pam_radius_auth.c: At top level:
pam_radius_auth.c:1369: error: syntax error before "int"
pam_radius_auth.c:1370: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_sm_open_session':
pam_radius_auth.c:1373: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c:1373: error: `flags' undeclared (first use in this function)
pam_radius_auth.c:1373: error: `argc' undeclared (first use in this function)
pam_radius_auth.c:1373: error: `argv' undeclared (first use in this function)
pam_radius_auth.c: At top level:
pam_radius_auth.c:1376: error: syntax error before "int"
pam_radius_auth.c:1377: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_sm_close_session':
pam_radius_auth.c:1380: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c:1380: error: `flags' undeclared (first use in this function)
pam_radius_auth.c:1380: error: `argc' undeclared (first use in this function)
pam_radius_auth.c:1380: error: `argv' undeclared (first use in this function)
pam_radius_auth.c: At top level:
pam_radius_auth.c:1387: error: syntax error before "int"
pam_radius_auth.c:1388: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_sm_chauthtok':
pam_radius_auth.c:1395: error: `PAM_AUTHTOK_ERR' undeclared (first use in this function)
pam_radius_auth.c:1404: error: `argc' undeclared (first use in this function)
pam_radius_auth.c:1404: error: `argv' undeclared (first use in this function)
pam_radius_auth.c:1407: error: `pamh' undeclared (first use in this function)
pam_radius_auth.c:1408: error: `PAM_SUCCESS' undeclared (first use in this function)
pam_radius_auth.c:1413: error: `PAM_USER_UNKNOWN' undeclared (first use in this function)
pam_radius_auth.c:1428: error: `PAM_SERVICE' undeclared (first use in this function)
pam_radius_auth.c:1437: error: `PAM_OLDAUTHTOK' undeclared (first use in this function)
pam_radius_auth.c:1442: error: `PAM_AUTHTOK' undeclared (first use in this function)
pam_radius_auth.c:1447: error: `flags' undeclared (first use in this function)
pam_radius_auth.c:1447: error: `PAM_PRELIM_CHECK' undeclared (first use in this function)
pam_radius_auth.c:1449: error: `PAM_PROMPT_ECHO_OFF' undeclared (first use in this function)
pam_radius_auth.c:1475: error: `PAM_PERM_DENIED' undeclared (first use in this function)
pam_radius_auth.c:1500: error: `PAM_ERROR_MSG' undeclared (first use in this function)
pam_radius_auth.c:1552: error: `PAM_UPDATE_AUTHTOK' undeclared (first use in this function)
pam_radius_auth.c: At top level:
pam_radius_auth.c:1616: error: syntax error before "int"
pam_radius_auth.c:1617: error: syntax error before '*' token
pam_radius_auth.c: In function `pam_sm_acct_mgmt':
pam_radius_auth.c:1620: error: `PAM_SUCCESS' undeclared (first use in this function)
make: *** [pam_radius_auth.o] Error 1
Thanks,
Chase