[3085] in Kerberos-V5-bugs
pending/726: build problems on AIX 4.3.2.
daemon@ATHENA.MIT.EDU (lackeyj@austin.ibm.com)
Tue Jun 22 14:23:13 1999
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, lackeyj@austin.ibm.com
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
>Number: 726
>Category: pending
>Synopsis: build problems on AIX 4.3.2.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue Jun 22 14:23:00 EDT 1999
>Last-Modified:
>Originator: Joshua Lackey
>Organization:
lackeyj@austin.ibm.com
>Release: krb5-1.0.6
>Environment:
System: AIX arioch 3 4 000775304C00
>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>
>How-To-Repeat:
Build krb5-1.0.6 on an AIX 4.3.x machine.
>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 ----
>Audit-Trail:
>Unformatted: