[24442] in Kerberos

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

Re: Unable to build 1.4.2 on FreeBSD

daemon@ATHENA.MIT.EDU (Dennis Davis)
Thu Aug 11 06:20:31 2005

Date: Thu, 11 Aug 2005 11:19:44 +0100 (BST)
From: Dennis Davis <ccsdhd@bath.ac.uk>
To: Vladimir Terziev <vladimir.terziev@sun-fish.com>
In-Reply-To: <20050811123138.49fa1836.vlady@sun-fish.com>
Message-ID: <Pine.GSO.4.63.0508111115340.18455@hinault.bath.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: kerberos@mit.edu
Reply-To: Dennis Davis <D.H.Davis@bath.ac.uk>
Errors-To: kerberos-bounces@mit.edu

On Thu, 11 Aug 2005, Vladimir Terziev wrote:

> From: Vladimir Terziev <vladimir.terziev@sun-fish.com>
> To: kerberos@mit.edu
> Date: Thu, 11 Aug 2005 12:31:38 +0300
> Subject: Unable to build 1.4.2 on FreeBSD
> 
> 	Hi,
> 
> 	i tryed to build Kerberos 1.4.2 on FreeBSD 4.10, but i failed. The error i got is the following:

...

> In file included from ../../../include/krb5.h:100,
>                  from gssapiP_krb5.h:50,
>                  from import_name.c:27:
> /usr/include/stdlib.h:111: warning: ANSI C does not support `long long'
> /usr/include/stdlib.h:117: warning: ANSI C does not support `long long'
> import_name.c: In function `krb5_gss_import_name':
> import_name.c:125: `BUFSIZ' undeclared (first use in this function)
> import_name.c:125: (Each undeclared identifier is reported only once
> import_name.c:125: for each function it appears in.)
> import_name.c:125: warning: unused variable `pwbuf'
> import_name.c:124: warning: unused variable `pwx'
> gmake[3]: *** [import_name.o] Error 1
> 
> 	As i managed to investigate, BUFSIZ is really undeclared, but why?
> 
> 	Could someone explain me what could be wrong?

I've just been looking at this on OpenBSD.  I strongly suspect that
it's because stdio.h isn't being included for some reason.  I bodged
things by applying the following patch:


*** ./src/lib/gssapi/krb5/import_name.c.orig	Mon Jul 18 23:12:42 2005
--- ./src/lib/gssapi/krb5/import_name.c	Thu Aug 11 10:06:34 2005
***************
*** 39,44 ****
--- 39,48 ----
  #include <strings.h>
  #endif
  
+ #ifdef __OpenBSD__
+ #include <stdio.h>
+ #endif /* __OpenBSD__ */
+ 
  /*
   * errors:
   * GSS_S_BAD_NAMETYPE	if the type is bogus


Something similar may work for you on FreeBSD.  Note that this *is*
a bodge, not a fix.
-- 
Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
D.H.Davis@bath.ac.uk               Phone: +44 1225 386101
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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