This is a multi-part message in MIME format.
--------------050405090809070408080204
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Anders Liljegren wrote:
> When compiling openssh-4.0p1 under AIX 5.3 ML01 using gcc 3.4.3 I get
> the following error:

[setauthdb conflicting definitions]
> I guess this really should be done in a smarter way using a test.


Yes it should. Please try this patch. You will need to rebuild configure
by running "autoreconf" then run ./configure again. If you don't have
autoconf handy I have uploaded the rebuilt configure to
http://www.zip.com.au/~dtucker/tmp/c...e-setauthdb.gz, just download,
decompress and rename to "configure".

--
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.

--------------050405090809070408080204
Content-Type: text/plain;
name="openssh-aix-setauthdb.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="openssh-aix-setauthdb.patch"

Index: configure.ac
================================================== =================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v
retrieving revision 1.254
diff -u -p -r1.254 configure.ac
--- configure.ac 18 Mar 2005 00:52:21 -0000 1.254
+++ configure.ac 18 Mar 2005 22:25:10 -0000
@@ -123,7 +123,7 @@ case "$host" in
])
dnl Check for various auth function declarations in headers.
AC_CHECK_DECLS([authenticate, loginrestrictions, loginsuccess,
- passwdexpired], , , [#include ])
+ passwdexpired, setauthdb], , , [#include ])
dnl Check if loginfailed is declared and takes 4 arguments (AIX >= 5.2)
AC_CHECK_DECLS(loginfailed,
[AC_MSG_CHECKING(if loginfailed takes 4 arguments)
Index: openbsd-compat/port-aix.h
================================================== =================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-aix.h,v
retrieving revision 1.24
diff -u -p -r1.24 port-aix.h
--- openbsd-compat/port-aix.h 16 Feb 2005 11:49:31 -0000 1.24
+++ openbsd-compat/port-aix.h 18 Mar 2005 22:23:20 -0000
@@ -47,7 +47,9 @@

/* These should be in the system headers but are not. */
int usrinfo(int, char *, int);
+#if (HAVE_DECL_SETAUTHDB == 0)
int setauthdb(const char *, char *);
+#endif
/* these may or may not be in the headers depending on the version */
#if (HAVE_DECL_AUTHENTICATE == 0)
int authenticate(char *, char *, int *, char **);

--------------050405090809070408080204
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev

--------------050405090809070408080204--