Hello Arran,

Thanks for your reply, I download pam_radius-master.
./configure and make, still not work.
looks like same problem.
# make
        cc -Wall -fPIC -c src/pam_radius_auth.c -o pam_radius_auth.o
src/pam_radius_auth.c: In function 'rad_converse':
src/pam_radius_auth.c:1004:2: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type [enabled by default]
  retval = pam_get_item(pamh, PAM_CONV, (CONST void **) &conv);
  ^
In file included from src/pam_radius_auth.h:25:0,
                 from src/pam_radius_auth.c:61:
/usr/include/security/pam_appl.h:193:1: note: expected 'void **' but argument is of type 'const void **'
 pam_get_item(
 ^
src/pam_radius_auth.c:1007:2: warning: passing argument 2 of 'conv->conv' from incompatible pointer type [enabled by default]
  retval = conv->conv(1, msg, &resp,conv->appdata_ptr);
  ^
src/pam_radius_auth.c:1007:2: note: expected 'struct pam_message **' but argument is of type 'const struct pam_message **'
src/pam_radius_auth.c: At top level:
src/pam_radius_auth.c:1037:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc,CONST char **argv)
                          ^
src/pam_radius_auth.c:1240:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc,CONST char **argv)
                          ^
src/pam_radius_auth.c: In function 'pam_private_session':
src/pam_radius_auth.c:1268:2: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type [enabled by default]
  retval = pam_get_user(pamh, &user, NULL);
  ^
In file included from src/pam_radius_auth.h:25:0,
                 from src/pam_radius_auth.c:61:
/usr/include/security/pam_appl.h:219:1: note: expected 'char **' but argument is of type 'const char **'
 pam_get_user(
 ^
src/pam_radius_auth.c:1288:3: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type [enabled by default]
   retval = pam_get_item(pamh, PAM_SERVICE, (CONST void **) &config.client_id);
   ^
In file included from src/pam_radius_auth.h:25:0,
                 from src/pam_radius_auth.c:61:
/usr/include/security/pam_appl.h:193:1: note: expected 'void **' but argument is of type 'const void **'
 pam_get_item(
 ^
src/pam_radius_auth.c:1256:6: warning: variable 'ctrl' set but not used [-Wunused-but-set-variable]
  int ctrl;
 ^
src/pam_radius_auth.c: At top level:
src/pam_radius_auth.c:1335:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, CONST char **argv)
                          ^
src/pam_radius_auth.c:1340:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc, CONST char **argv)
                          ^
src/pam_radius_auth.c:1349:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, CONST char **argv)
                          ^
src/pam_radius_auth.c:1575:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh,int flags,int argc,CONST char **argv)
                          ^
src/pam_radius_auth.c:991:12: warning: 'rad_converse' defined but not used [-Wunused-function]
 static int rad_converse(pam_handle_t *pamh, int msg_style, char *message, char **password)
                          ^
src/pam_radius_auth.c:1253:12: warning: 'pam_private_session' defined but not used [-Wunused-function]
 static int pam_private_session(pam_handle_t *pamh, int flags, int argc, CONST char **argv, int status)
                          ^
make: 1254-004 The error code from the last command is 1.


Stop.

      於 2014/5/14 下午2:06, Arran Cudbard-Bell 提到:
On 14 May 2014, at 04:48, Sam 林立山 <sam@acom-networks.com> wrote:

Hello every one,

I try install pam_radius-1.3.17 into IBM AIX 7.1 server.
Try the code from the git repo first 

https://github.com/FreeRADIUS/pam_radius

If that doesn't work, provide extracts from the man pages for
the functions it's complaining about, and we can try and fix it.

-Arran

Arran Cudbard-Bell <a.cudbardb@freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html