Skip Menu |
 

Date: Wed, 02 Feb 2005 08:36:29 -0800
From: Quanah Gibson-Mount <quanah@stanford.edu>
To: krb5-bugs@mit.edu
Subject: krb5-1.4 fails to build on alpha-dux40
Download (untitled) / with headers
text/plain 1.1KiB
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.

Example diff between krb5/autoconf.h from krb5-1.3.6 and krb5-1.4:

/* Define if gethostbyname_r exists and its return type is known */
-/* #undef HAVE_GETHOSTBYNAME_R */
+#define HAVE_GETHOSTBYNAME_R 1
+


/* Define if getservbyname_r exists and its return type is known */
-/* #undef HAVE_GETSERVBYNAME_R */
+#define HAVE_GETSERVBYNAME_R 1
+


If I change the above to "#undef <variable>" the build will then continue
properly.

--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
From: Ken Raeburn <raeburn@MIT.EDU>
Subject: Re: [krbdev.mit.edu #2909] krb5-1.4 fails to build on alpha-dux40
Date: Wed, 2 Feb 2005 15:37:53 -0500
To: rt-comment@krbdev.mit.edu, Quanah Gibson-Mount <quanah@stanford.edu>
RT-Send-Cc:
On Feb 2, 2005, at 15:23, Quanah Gibson-Mount via RT wrote:
Show quoted text
> 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
Date: Wed, 02 Feb 2005 12:56:52 -0800
From: Quanah Gibson-Mount <quanah@stanford.edu>
To: Ken Raeburn <raeburn@MIT.EDU>, rt-comment@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #2909] krb5-1.4 fails to build on alpha-dux40
RT-Send-Cc:


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

Show quoted text
> 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
Download config.log
application/octet-stream 54.7KiB

Message body not shown because it is not plain text.

Download config.log
application/octet-stream 54.4KiB

Message body not shown because it is not plain text.