bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling CVS on HP-UX


From: Jay
Subject: compiling CVS on HP-UX
Date: Tue, 17 Feb 2009 15:51:14 +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.
 

Sorry, no GNU diff yet.
This diff works, but might need more work:
$ diff server.c.orig server.c
109a110,112
> #     define getspnam bogus_getspnam
> #     include 
> #     undef getspnam

 
and then it builds.
 

 - Jay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]