Unable to build 1.4.2 on FreeBSD

Vladimir Terziev vladimir.terziev at sun-fish.com
Thu Aug 11 06:29:04 EDT 2005


	This is from import_name.c:

[snip] ... [snip]

#include "gssapiP_krb5.h"

#ifndef NO_PASSWORD
#include <pwd.h>
#ifdef HAVE_GETPWUID_R
#include <stdio.h>
#endif
#endif

[snip] ... [snip]

	It seems the configure script doesn't define HAVE_GETPWUID_R for some reason. Respectively stdio.h is not included.

	Vlady


On Thu, 11 Aug 2005 11:19:44 +0100 (BST)
Dennis Davis <ccsdhd at bath.ac.uk> wrote:

> On Thu, 11 Aug 2005, Vladimir Terziev wrote:
> 
> > From: Vladimir Terziev <vladimir.terziev at sun-fish.com>
> > To: kerberos at 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 at bath.ac.uk               Phone: +44 1225 386101


More information about the Kerberos mailing list