[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
building CVS on HP-UX
From: |
Jay |
Subject: |
building CVS on HP-UX |
Date: |
Thu, 19 Feb 2009 11:35:04 +0000 |
cvs-1.11.23
-bash-3.2$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.6/specs
Configured with: /src/gcc-3.3.6/configure -verbose -with-as=/usr/local/bin/gas -
with-gnu-as
Thread model: single
gcc version 3.3.6
-bash-3.2$ uname -a
HP-UX jkhpux1 B.11.11 U 9000/800 1595760578 unlimited-user license
In file included from server.c:110:
/usr/include/shadow.h:42: error: conflicting types for `getspnam'
/usr/include/prot.h:650: error: previous declaration of `getspnam'
gmake[2]: *** [server.o] Error 1
gmake[2]: Leaving directory `/home/jay/src/cvs-1.11.23/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/jay/src/cvs-1.11.23'
gmake: *** [all] Error 2
$ grep getspnam /usr/include/*h
/usr/include/prot.h:extern struct spwd *getspnam __((char *));
/usr/include/shadow.h: extern struct spwd * getspnam(const char *);
/usr/include/shadow.h: struct spwd * getspnam();
$
This is lame of HP.
shadow.h #includes prot.h, but they have different prototypes for getspnam.
-bash-3.2$ diff -C4 server.c.orig server.c
*** server.c.orig Thu Feb 19 06:20:41 2009
--- server.c Thu Feb 19 06:21:37 2009
***************
*** 106,113 ****
--- 106,118 ----
# ifdef AUTH_SERVER_SUPPORT
# ifdef HAVE_GETSPNAM
+ # ifdef __hpux
+ # define getspnam hide_getspnam
+ # include <prot.h>
+ # undef getspnam
+ # endif
# include <shadow.h>
# endif
/* The cvs username sent by the client, which might or might not be
-bash-3.2$
and then it builds.
I didn't really search around the web for similar.
- Jay
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- building CVS on HP-UX,
Jay <=