IBM AIX 7.1 install pam_radius-1.3.17 error

Sam 林立山 sam at acom-networks.com
Wed May 14 05:48:08 CEST 2014


Hello every one,

I try install pam_radius-1.3.17 into IBM AIX 7.1 server.
I install Linux tool first.
When I make, have error:

    # make
             cc -Wall -fPIC -c pam_radius_auth.c -o pam_radius_auth.o
    pam_radius_auth.c: In function 'talk_radius':
    pam_radius_auth.c:886:10: warning: passing argument 6 of 'nrecvfrom'
    from incompatible pointer type [enabled by default]
               0, &saremote, &salen)) < 0) {
               ^
    In file included from pam_radius_auth.h:8:0,
                      from pam_radius_auth.c:65:
    /usr/include/sys/socket.h:552:9: note: expected 'socklen_t *' but
    argument is of type 'int *'
      ssize_t recvfrom(int, void *__restrict__, size_t, int, struct
    sockaddr *__restrict__, socklen_t *__restrict__);
              ^
    pam_radius_auth.c: In function 'rad_converse':
    pam_radius_auth.c:1027:3: 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 /usr/include/security/pam_modules.h:28:0,
                      from pam_radius_auth.c:63:
    /usr/include/security/pam_appl.h:193:1: note: expected 'void **' but
    argument is of type 'const void **'
      pam_get_item(
      ^
    pam_radius_auth.c:1030:3: warning: passing argument 2 of
    'conv->conv' from incompatible pointer type [enabled by default]
        retval = conv->conv(1, msg, &resp,conv->appdata_ptr);
        ^
    pam_radius_auth.c:1030:3: note: expected 'struct pam_message **' but
    argument is of type 'const struct pam_message **'
    pam_radius_auth.c: At top level:
    pam_radius_auth.c:1061:12: error: expected '=', ',', ';', 'asm' or
    '__attribute__' before 'int'
      PAM_EXTERN int
                 ^
    pam_radius_auth.c:1268:12: error: expected '=', ',', ';', 'asm' or
    '__attribute__' before 'int'
      PAM_EXTERN int
                 ^
    pam_radius_auth.c: In function 'pam_private_session':
    pam_radius_auth.c:1300:3: 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 /usr/include/security/pam_modules.h:28:0,
                      from pam_radius_auth.c:63:
    /usr/include/security/pam_appl.h:219:1: note: expected 'char **' but
    argument is of type 'const char **'
      pam_get_user(
      ^
    pam_radius_auth.c:1321:5: 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 /usr/include/security/pam_modules.h:28:0,
                      from pam_radius_auth.c:63:
    /usr/include/security/pam_appl.h:193:1: note: expected 'void **' but
    argument is of type 'const void **'
      pam_get_item(
      ^
    pam_radius_auth.c:1288:7: warning: variable 'ctrl' set but not used
    [-Wunused-but-set-variable]
        int ctrl;
            ^
    pam_radius_auth.c: At top level:
    pam_radius_auth.c:1369:12: error: expected '=', ',', ';', 'asm' or
    '__attribute__' before 'int'
      PAM_EXTERN int
                 ^
    pam_radius_auth.c:1376:12: error: expected '=', ',', ';', 'asm' or
    '__attribute__' before 'int'
      PAM_EXTERN int
                 ^
    pam_radius_auth.c:1387:12: error: expected '=', ',', ';', 'asm' or
    '__attribute__' before 'int'
      PAM_EXTERN int
                 ^
    pam_radius_auth.c:1616:12: error: expected '=', ',', ';', 'asm' or
    '__attribute__' before 'int'
      PAM_EXTERN int
                 ^
    pam_radius_auth.c:1014: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)
                 ^
    pam_radius_auth.c:1283:1: warning: 'pam_private_session' defined but
    not used [-Wunused-function]
      pam_private_session(pam_handle_t *pamh, int flags,
      ^
    make: 1254-004 The error code from the last command is 1.


    Stop.

-- 

Sam
==============================================================
Sam Lin 林立山
Acom Networks
E-MAIL : sam at acom-networks.com
OFFICE : +886.2.2313.1416
MOBILE : +886.930.895.633
==============================================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140514/09a59f30/attachment-0001.html>


More information about the Freeradius-Users mailing list