Skip Menu |
 

Download (untitled) / with headers
text/plain 3.6KiB
From jl@arioch.austin.ibm.com Tue Jun 22 14:22:22 1999
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id OAA16561 for <bugs@RT-11.MIT.EDU>; Tue, 22 Jun 1999 14:22:21 -0400
Received: from ausmail2.austin.ibm.com by MIT.EDU with SMTP
id AA18002; Tue, 22 Jun 99 14:22:49 EDT
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [9.53.250.96])
by ausmail2.austin.ibm.com (8.9.1/8.8.5) with ESMTP id NAA20516
for <krb5-bugs@mit.edu>; Tue, 22 Jun 1999 13:18:18 -0500
Received: from arioch.austin.ibm.com (arioch.austin.ibm.com [9.53.149.124])
by netmail1.austin.ibm.com (8.8.5/8.8.5) with ESMTP id NAA25426
for <krb5-bugs@mit.edu>; Tue, 22 Jun 1999 13:22:17 -0500
Received: (from jl@localhost) by arioch.austin.ibm.com (AIX4.3/UCB 8.8.8/8.7-client1.01) id NAA23864; Tue, 22 Jun 1999 13:22:16 -0500
Message-Id: <199906221822.NAA23864@arioch.austin.ibm.com>
Date: Tue, 22 Jun 1999 13:22:16 -0500
From: lackeyj@austin.ibm.com
Reply-To: lackeyj@austin.ibm.com
To: krb5-bugs@MIT.EDU
Subject: build problems on AIX 4.3.2.
X-Send-Pr-Version: 3.99

Show quoted text
>Number: 726
>Category: krb5-libs
>Synopsis: build problems on AIX 4.3.2.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: raeburn
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue Jun 22 14:23:00 EDT 1999
>Last-Modified: Fri Sep 14 19:59:03 EDT 2001
>Originator: Joshua Lackey
>Organization:
lackeyj@austin.ibm.com
Show quoted text
>Release: krb5-1.0.6
>Environment:

System: AIX arioch 3 4 000775304C00


Show quoted text
>Description:
In the files src/appl/user_user/client.c and src/appl/gssftp/ftpd/ftpd.c the external
variable h_errno is declared `extern int h_errno'. Yet h_errno is not neccessarily
an integer. (And certainly not on AIX 4.3.2.) In any case, it is already defined
in <netdb.h>


Show quoted text
>How-To-Repeat:
Build krb5-1.0.6 on an AIX 4.3.x machine.

Show quoted text
>Fix:
As /usr/include/netdb.h is included in both client.c and ftpd.c, there is no need
to declare h_errno a second time. I have checked Solaris 5.6, Redhat 6.1, and
FreeBSD 3.0 and they all define h_errno in /usr/include/netdb.h.

diff:


*** krb5-1.0.6/src/appl/user_user/client.c.orig Fri Jun 18 09:47:35 1999
--- krb5-1.0.6/src/appl/user_user/client.c Fri Jun 18 10:40:24 1999
***************
*** 83,90 ****

if ((host = gethostbyname (argv[1])) == NULL)
{
- extern int h_errno;
-
if (h_errno == HOST_NOT_FOUND)
fprintf (stderr, "uu-client: unknown host \"%s\".\n", argv[1]);
else
--- 83,88 ----


*** krb5-1.0.6/src/appl/gssftp/ftpd/ftpd.c.orig Fri Jun 18 10:37:30 1999
--- krb5-1.0.6/src/appl/gssftp/ftpd/ftpd.c Fri Jun 18 10:38:35 1999
***************
*** 2032,2038 ****
return 0;
}
if (!(hp = gethostbyname(localname))) {
- extern int h_errno;
reply(501, "couldn't canonicalize local hostname (%d)\n", h_errno);
syslog(LOG_ERR, "Couldn't canonicalize local hostname (%d)", h_errno);
return 0;
--- 2032,2037 ----
Show quoted text
>Audit-Trail:

State-Changed-From-To: open-analyzed
State-Changed-By: raeburn
State-Changed-When: Thu Jul 1 19:26:08 1999
State-Changed-Why:

Problems on other platforms have led to all h_errno references being
removed for all but the 1.0.x branch. The release tentatively
scheduled for around the end of the summer shouldn't have this
problem.

Responsible-Changed-From-To: gnats-admin->raeburn
Responsible-Changed-By: raeburn
Responsible-Changed-When: Thu Jul 1 19:30:25 1999
Responsible-Changed-Why:

State-Changed-From-To: analyzed-closed
State-Changed-By: tlyu
State-Changed-When: Fri Sep 14 19:58:45 2001
State-Changed-Why:

Old PR; likely fixed long ago.


Show quoted text
>Unformatted: