[krbdev.mit.edu #2909] krb5-1.4 fails to build on alpha-dux40

Quanah Gibson-Mount via RT rt-comment at krbdev.mit.edu
Wed Feb 2 15:57:05 EST 2005



--On Wednesday, February 02, 2005 3:37 PM -0500 Ken Raeburn 
<raeburn at MIT.EDU> wrote:

> On Feb 2, 2005, at 15:23, Quanah Gibson-Mount via RT wrote:
>> When building krb5-1.4 on our DEC alpha box:
>>
>> checking build system type... alpha-dec-osf4.0f
>>
>> I found that MIT Krb5 1.4 fails to build because it incorrectly defines
>> HAVE_GETHOSTNAME_R and HAVE_GETSERVBYNAME.  In previous MIT Kerberos
>> releases, this did not happen.
>
> The tests for the function's existence are pretty simple.  If they're
> getting incorrect results, that may be an autoconf bug.
>
> We've had some minor problems before with our code not getting the set of
> arguments right, as these functions vary a little between systems, but I
> haven't seen a case yet where we incorrectly conclude that they are
> available...
>
> Can you send some output from the config.log files where these tests are
> actually run?  (Probably at top level, or in include.)

Ken,

Sure, no problem.

The error I was getting was a mismatch between the number of arguments and 
the actual number of arguments the function allows on the DEC.  undef'ing 
those two bits uses the MIT prototype instead, and that is what happened in 
krb5-1.3 and earlier.  Maybe the DEC version of those functions is 
particularly odd. ;)

Attached are the config.log files from the top level (src) and include.

netdb.h for DEC has these declarations:

extern int gethostbyname_r __((const char *, struct hostent *,
                                        struct hostent_data *));

extern int getservbyname_r __((const char *, const char *, struct servent 
*, \
                                        struct servent_data *));

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin


More information about the krb5-bugs mailing list