I am having difficulties compiling openssh3.6p2 under AIX 5.2. I grabbed the latest from the contrib section from openssh.com, applied passexpire19.patch successfully and configure --prefix=/opt/freeware/ --with xauth=/usr/bin/X11/xauth. i get the following @ the end of the make: In file included from auth.c:41: /usr/include/usersec.h:656: warning: `struct aud_rec' declared inside parameter list /usr/include/usersec.h:657: warning: `struct aud_rec' declared inside parameter list auth.c: In function `allowed_user': auth.c:283: warning: long unsigned int format, unsigned int arg (arg 3) auth.c: In function `generate_login_message': auth.c:341: warning: passing arg 1 of `loginsuccess' discards qualifiers from pointer target type auth.c:341: warning: passing arg 2 of `loginsuccess' discards qualifiers from pointer target type auth.c: In function `auth_log': auth.c:403: warning: passing arg 2 of `loginfailed' discards qualifiers from pointer target type auth.c:403: too few arguments to function `loginfailed' auth.c: In function `expand_filename': auth.c:481: warning: implicit declaration of function `snprintf' auth.c: In function `getpwnamallow': auth.c:630: warning: passing arg 1 of `loginfailed' discards qualifiers from pointer target type auth.c:630: warning: passing arg 2 of `loginfailed' discards qualifiers from pointer target type auth.c:630: too few arguments to function `loginfailed' auth.c: In function `auth_debug_add': auth.c:666: warning: implicit declaration of function `vsnprintf' make: 1254-004 The error code from the last command is 1. Stop. =================any ideas? __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
ira fuse wrote:> I am having difficulties compiling openssh3.6p2 under > AIX 5.2. I grabbed the latest from the contrib > section from openssh.com, applied passexpire19.patch > successfully and configure --prefix=/opt/freeware/ > --with xauth=/usr/bin/X11/xauth. i get the following > @ the end of the make:This appears to be the problem, the rest are warnings:> auth.c:403: too few arguments to function > `loginfailed'I don't have access to AIX 5.2 but I have tested the patch on 5.1. According to the doco [1], on AIX 5.2, loginfailed now takes 4 arguments, rather than the original 3: int loginfailed ( User, Host, Tty, Reason) char *User; char *Host; char *Tty; int Reason; That piece of code currently only supplies three as that's what previous AIX versions took: #ifdef WITH_AIXAUTHENTICATE loginfailed(user, get_canonical_hostname(options.verify_reverse_mapping), "ssh"); #endif From the man page, I'm guessing that you need to add "#include <sys/audit.h>" to the top of auth.c and add a 4th paramter (AUDIT_FAIL_AUTH) to the loginfailed() call. The modified code will look like: #ifdef WITH_AIXAUTHENTICATE loginfailed(user, get_canonical_hostname(options.verify_reverse_mapping), "ssh", AUDIT_FAIL_AUTH); #endif I'm not sure about the 4th parameter, if you can send me the AUDIT_FAIL lines from "/usr/include/sys/audit.h" it may help. -Daz. [1] http://publib16.boulder.ibm.com/pseries/en_US/libs/basetrf1/loginfailed.htm -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.