Compile errors in hpux

Helge Blischke H.Blischke at srz-berlin.de
Sat Oct 30 09:54:12 PDT 2004


Anonymous wrote:
> 
> I try to compile (make) in HP-UX 11.11 and it fails with the following messages
> 
> ------------
> Compiling auth.c...
> In file included from auth.c:61:
> /usr/include/shadow.h:42: error: conflicting types for 'getspnam'
> /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here
> /usr/include/shadow.h:42: error: conflicting types for 'getspnam'
> /usr/include/prot.h:650: error: previous declaration of 'getspnam' was here
> auth.c: In function `IsAuthorized':
> auth.c:1017: warning: assignment from incompatible pointer type
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1
> 
> Stop.
> -------------
> 
> I have the gcc 3.4.2 with all dependencies installed - bison, flex, gettext, libiconv, m4.
> 
> I appreciate anyone's help to resolve this issue.
> 

Obviously HPUX provides different and conflicting definitions of the
getspnam
function. I've no HPUX at hand, but I suspect the definition in gstspnam
is the
"official" one, perhaps you may comment the one in prot.h out?

Helge


-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360




More information about the cups mailing list