[5724] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Kerberos 5 B5 build on HP-UX is failing

daemon@ATHENA.MIT.EDU (William King)
Thu Aug 17 15:41:25 1995

Date: Thu, 17 Aug 1995 15:18:53 -0400
From: William King <William.King@cle.ab.com>
To: gym@legume.lanl.gov, kerberos@MIT.EDU, brian@ISI.EDU

I had the same problem with Solaris 2.4 and gcc 2.6.3. It seems that
Sun anyway defines the rename() and getopt() library calls in both
stdio.h and unistd.h.  There are many source files (including
ans1_decode.c) which include stdio.h.  I fixed the problem by removing
the include. It seems that stdio.h was included more as a matter of
course than need.

Bill

> From brian@ISI.EDU Thu Aug 17 14:48:03 1995
> Date: Thu, 17 Aug 1995 10:38:30 -0700
> From: brian@ISI.EDU (Brian Tung)
> To: gym@legume.lanl.gov, kerberos@MIT.EDU
> Subject: Re:  Kerberos 5 B5 build on HP-UX is failing
> Content-Length: 1329
> 
> Glenn Michel wrote:
> > We're trying to build the Kerberos V Beta 5 client software for an HP-UX
> > system running A.09.05.   We've tried using the ordinary CC compiler as
> > well as the C89 compiler, and we've specified the type=Aa switch.  I
> > understand that people have succeeded at this and I'm wondering what 
> > we're doing wrong.  The message we're seeing now is:
> > 
> > making in lib/krb5/asn.1...
> >         cc -Ae -I./../../../include -I../../../include -I./../../../include/krb5 
> > -I../../../include/krb5 -c asn1_decode.c
> > cc: "/usr/include/stdlib.h", line 169: error 1711: Inconsistent parameter list 
> > declaration for "getopt".
> > cc: "/usr/include/sys/unistd.h", line 226: error 1711: Inconsistent parameter 
> > list declaration for "getopt".
> > cc: "/usr/include/sys/unistd.h", line 245: error 1711: Inconsistent parameter 
> > list declaration for "rename".
> > *** Error code 1
> > 
> > Stop.
> > *** Error code 1
> > 
> > Can someone give us a hand with this?
> 
> I think I've seen this.  Try #undef'ing _PROTOTYPES.  For some reason,
> I had to go in and do this within the source code itself, rather than
> on the command line.  It would be undefined at the start, then,
> inexplicably, would become defined after including <stdio.h>.  Does
> anyone have any explanation for this?
> 
> Brian Tung
> brian@isi.edu
> http://info.broker.isi.edu/brian/
> 

home help back first fref pref prev next nref lref last post