[2923] in Kerberos-V5-bugs

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

krb5-build/591: krlogin.c fails to build on Linux/Alpha running RedHat 5.0

daemon@ATHENA.MIT.EDU (tryanc@robotuna.mit.edu)
Wed May 20 18:02:55 1998

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, tryanc@MIT.EDU
Date: Wed, 20 May 1998 17:55:36 -0400
From: tryanc@robotuna.mit.edu
Reply-To: tryanc@MIT.EDU
To: krb5-bugs@MIT.EDU


>Number:         591
>Category:       krb5-build
>Synopsis:       krlogin.c fails to build on Linux/Alpha running RedHat 5.0
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    tlyu
>State:          open
>Class:          support
>Submitter-Id:   unknown
>Arrival-Date:   Wed May 20 17:56:01 EDT 1998
>Last-Modified:
>Originator:     Ryan Cleary
>Organization:
MIT
	
>Release:        krb5-1.0.5
>Environment:
PC164 Alpha, RedHat 5.0 (Linux 2.0.30), target is same, glibc2
	
System: Linux robotuna.mit.edu 2.0.30 #2 Wed May 20 14:16:33 EDT 1998 alpha unknown
Architecture: alpha

>Description:
The stock krlogin.c doesn't compile on my Linux/Alpha 
machine running RedHat 5.0 (based on Linux 2.0.30 and glibc 2).  
gcc can't find a type definition for struct ltchars.  However, I did 
not have a problem buiding any krb5 with the RedHat 4.2's kernel sources 
(also based on 2.0.30, but with glibc 1.9).
	
>How-To-Repeat:
Build krlogin.c with stock source distribution on 
RedHat 5.0/Alpha system.
	
>Fix:
I found the type definition for struct ltchars in 
/usr/include/asm/termios.h (/usr/src/linux/include/asm/termios.h) and 
copied the definitions for structs ltchars and tchars to a separate header 
file, and included this header in krlogin.c.  make was happy, and the 
binaries seem to work fine, but this fix is admittedly a very
poor kludge.  Unfortunately, I no longer have RedHat 4.2 installed, 
and therefore can't see which header file in that distribution contained 
the struct definitions.
	

>Audit-Trail:
>Unformatted:

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