| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Date: Thu, 11 Aug 2005 15:08:35 +0300 From: Vladimir Terziev <vladimir.terziev@sun-fish.com> To: Dennis Davis <D.H.Davis@bath.ac.uk> Message-Id: <20050811150835.263fd8b4.vlady@sun-fish.com> In-Reply-To: <Pine.GSO.4.63.0508111203210.18614@hinault.bath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: kerberos@mit.edu Errors-To: kerberos-bounces@mit.edu 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@bath.ac.uk> wrote: > On Thu, 11 Aug 2005, Vladimir Terziev wrote: > > > From: Vladimir Terziev <vladimir.terziev@sun-fish.com> > > To: Dennis Davis <D.H.Davis@bath.ac.uk> > > Cc: ccsdhd@bath.ac.uk, kerberos@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@bath.ac.uk Phone: +44 1225 386101 > ________________________________________________ > Kerberos mailing list Kerberos@mit.edu > https://mailman.mit.edu/mailman/listinfo/kerberos ________________________________________________ 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 |