[2878] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

pending/549: Building krb5 under glibc-2.06 (RH Linux)

daemon@ATHENA.MIT.EDU (ayn2@cornell.edu)
Sat Feb 14 20:11:10 1998

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, ayn2@cornell.edu
Date: Sat, 14 Feb 1998 20:07:43 -0500
From: ayn2@cornell.edu
Reply-To: ayn2@cornell.edu
To: krb5-bugs@MIT.EDU
Cc: ayn2@cornell.edu


>Number:         549
>Category:       pending
>Synopsis:       Building krb5 under glibc-2.06 (RH Linux)
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Sat Feb 14 20:10:01 EST 1998
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Description:
I was trying to compile krb5-1.0.4 on a RedHat 5.0 Linux 2.0.32 Glibc-2.0.6 machine. And had the following problems:
	1) /usr/include/errnos.h (included from /usr/include/errno.h) has the following lines:

#  if !defined _LIBC || defined _LIBC_REENTRANT
/* When using threads, errno is a per-thread value.  */
#   define errno (*__errno_location ())
#  endif

which makes a big trouble when src/util/db2/hash/hash.h tries to define an "errno" field in struct htab.

	2) Error compiling src/appl/bsd/v4rcp.c:
v4rcp.c:315: conflicting types for `sys_errlist'

	3) Error compiling src/appl/gssftp/ftpd/logwtmp.c:
logwtmp.c:63: conflicting types for `logwtmp'

Fix:
	I've made some quick fix for 1 and 3, but it is definitely not the best one. 2) can be easily fixed:

--- src/appl/bsd/v4rcp.c.glibc  Mon Feb  9 12:12:09 1998
+++ src/appl/bsd/v4rcp.c        Mon Feb  9 12:12:52 1998
@@ -311,7 +311,7 @@
 #endif
 int    errno;
 /* Kludge!!!! */
-#if (!defined(__NetBSD__) && !defined(__FreeBSD__))
+#if (!defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__GLIBC__))
 extern char    *sys_errlist[];
 #endif
 int    iamremote, targetshouldbedirectory;




--------------------------------------------------------------
Home Page: http://www.cs.cornell.edu/nogin/
E-Mail: nogin@cs.cornell.edu (office), ayn2@cornell.edu (home)
Office: Upson 5162, tel: 1-607-255-7421

home help back first fref pref prev next nref lref last post