| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Date: Thu, 11 Aug 2005 13:29:04 +0300 From: Vladimir Terziev <vladimir.terziev@sun-fish.com> To: Dennis Davis <D.H.Davis@bath.ac.uk> Message-Id: <20050811132904.201b930b.vlady@sun-fish.com> In-Reply-To: <Pine.GSO.4.63.0508111115340.18455@hinault.bath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: kerberos@mit.edu cc: ccsdhd@bath.ac.uk Errors-To: kerberos-bounces@mit.edu 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@bath.ac.uk> wrote: > 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 |