Unable to build 1.4.2 on FreeBSD

Vladimir Terziev vladimir.terziev at sun-fish.com
Thu Aug 11 08:08:35 EDT 2005


	I found the answer. It's not good for me, but it's an answer :(

	FreeBSD 4.x do not have the re-entrant version of getpwuid (e.g. getpwuid_r). FreeBSD 5.x has it, but not 4.x.

	I managed to workaround it. Including stdio.h explicitly in import_name.c solves the problem.

	Thanks for the help!

		Vlady


On Thu, 11 Aug 2005 12:10:22 +0100 (BST)
Dennis Davis <D.H.Davis at bath.ac.uk> wrote:

> On Thu, 11 Aug 2005, Vladimir Terziev wrote:
> 
> > From: Vladimir Terziev <vladimir.terziev at sun-fish.com>
> > To: Dennis Davis <D.H.Davis at bath.ac.uk>
> > Cc: ccsdhd at bath.ac.uk, kerberos at mit.edu
> > Date: Thu, 11 Aug 2005 13:29:04 +0300
> > Subject: Re: Unable to build 1.4.2 on FreeBSD
> > 
> > 	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.
> 
> ...
> 
> getpwuid_r is the re-entrant version of getpwuid.  You may need
> this in threaded applications.  getpwuid_r is available on modern
> versions of Solaris, isn't there on OpenBSD and presumably isn't
> there on FreeBSD.
> 
> However I'm not sure that things are as simple as getpwuid_r being
> (quite rightly) undefined.  At first glance the code in krb5-1.4.2
> doesn't look much different to the code in krb5-1.4.1.  And I didn't
> see this problem with krb5-1.4.1.
> -- 
> Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
> D.H.Davis at bath.ac.uk               Phone: +44 1225 386101
> ________________________________________________
> Kerberos mailing list           Kerberos at mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos


More information about the Kerberos mailing list