Anders Liljegren
2005-Mar-18 13:43 UTC
Setauthdb defined twice in openssh-4.0p1 on AIX 5.3
When compiling openssh-4.0p1 under AIX 5.3 ML01 using gcc 3.4.3 I get the following error:> (cd openbsd-compat && make) > make[1]: Entering directory > `/usr/local/src/openssh-4.0p1/openbsd-compat' > gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. > -I./.. -I/usr/local/ssl/include -DHAVE_CONFIG_H -c bsd-arc4random.c > In file included from ../openbsd-compat/openbsd-compat.h:171, > from ../includes.h:199, > from bsd-arc4random.c:17: > ../openbsd-compat/port-aix.h:50: error: conflicting types for > 'setauthdb' > /usr/include/usersec.h:590: error: previous declaration of 'setauthdb' > was here > ../openbsd-compat/port-aix.h:50: error: conflicting types for > 'setauthdb' > /usr/include/usersec.h:590: error: previous declaration of 'setauthdb' > was here > make[1]: *** [bsd-arc4random.o] Error 1 > make[1]: Leaving directory > `/usr/local/src/openssh-4.0p1/openbsd-compat' > make: *** [openbsd-compat/libopenbsd-compat.a] Error 2When compiling openssh-3.9p1 in exactly the same way I don't get this error. After applying the following simplistic patch I can compile 4.0p1 without a problem:> *** openbsd-compat/port-aix.h.orig Fri Mar 18 14:20:28 2005 > --- openbsd-compat/port-aix.h Fri Mar 18 14:21:16 2005 > *************** > *** 47,53 **** > > /* These should be in the system headers but are not. */ > int usrinfo(int, char *, int); > ! int setauthdb(const char *, char *); > /* these may or may not be in the headers depending on the version */ > #if (HAVE_DECL_AUTHENTICATE == 0) > int authenticate(char *, char *, int *, char **); > --- 47,53 ---- > > /* These should be in the system headers but are not. */ > int usrinfo(int, char *, int); > ! /*int setauthdb(const char *, char *);*/ > /* these may or may not be in the headers depending on the version */ > #if (HAVE_DECL_AUTHENTICATE == 0) > int authenticate(char *, char *, int *, char **);I guess this really should be done in a smarter way using a test. -- Anders Liljegren Mail: IT-st?d, Uppsala universitet Phone: +46 18 4717751 Box 887 mailto:anders.liljegren at its.uu.se SE-751 08 UPPSALA http://www.anst.uu.se/andelilj Sweden
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/configure-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. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: openssh-aix-setauthdb.patch Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20050319/774bf25d/attachment.ksh