[2766] in Kerberos-V5-bugs

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

krb5-build/453: krb5-1.0/src/util/pty/update_utmp.c compilation failure

daemon@ATHENA.MIT.EDU (DShambroom@gte.com)
Fri Aug 1 16:18:52 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, DShambroom@gte.com
Date: Fri, 1 Aug 1997 16:15:16 -0400
From: DShambroom@gte.com
Reply-To: DShambroom@gte.com
To: krb5-bugs@MIT.EDU
Cc: DShambroom@gte.com


>Number:         453
>Category:       krb5-build
>Synopsis:       krb5-1.0/src/util/pty/update_utmp.c compilation failure
>Confidential:   yes
>Severity:       critical
>Priority:       medium
>Responsible:    tlyu
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Fri Aug 01 16:16:00 EDT 1997
>Last-Modified:
>Originator:     W. David Shambroom
>Organization:
--
W. David Shambroom                         E-mail:  DShambroom@gte.com
Principal Member of Technical Staff             Phone:  (617) 466-2584
GTE Laboratories Incorporated                     Fax:  (617) 466-3339
PGP key:  1024/09CC2121  fingerprint=68A47DA6FF484189 97B5B4C8DFF8B443
>Release:        1.0
>Environment:

Machine: IBM RS/6000 model 43P
OS: AIX 4.2.0
Compiler: CSet++ 3.1.4


>Description:
	Using AIX 4.2.0, compilation of krb5-1.0/src/util/pty/update_utmp.c
	fails at line 46 as follows:
	
	cc  -DHAVE_FCHMOD=1 -DHAVE_FCHOWN=1 -DHAVE_REVOKE=1 -DHAVE_KILLPG=1
	-DSTDC_HEADERS=1 -DHAVE_GETUTENT=1 -DHAVE_SETREUID=1 -DHAVE_SETSID=1
	-DHAVE_TTYNAME=1 -DHAVE_PTSNAME=1 -DHAVE_GRANTPT=1 -DHAVE_UNISTD_H=1
	-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UTMPX_H=1 -DHAVE_UTMP_H=1
	-DHAVE_TTYENT_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_WAIT_H=1
	-DHAVE_WAITPID=1 -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1
	-Dkrb5_sigtype=void -DPOSIX_SIGTYPE=1 -DPOSIX_SIGNALS=1
	-DPOSIX_SETJMP=1 -DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_TERMIOS=1
	-DHAVE_SETUTENT=1 -DHAVE_SETUTXENT=1 -DHAVE_STREAMS=1 -DHAVE_SETOWN=1
	-I./../../include -I../../include -I./../../include/krb5
	-I../../include/krb5 -DKERBEROS -I. -I. -c ./update_utmp.c
	"./update_utmp.c", line 146.5: 1506-022 (S) "ut_exit" is not a member
	of "struct utmpx".

	Note that HAVE_SETUTXENT is defined, HAVE_GETUTMPX is not.
	
	struct utmpx is defined in /usr/include/utmpx.h as follows:
	
	struct utmpx
  {
        char ut_user[8] ;               /* User login name */
        char ut_id[14] ;                /* /etc/inittab id */
        char ut_line[12] ;              /* device name (console, lnxx) */
        short ut_type ;                 /* type of entry */
        pid_t ut_pid ;                  /* process id */
        struct timeval ut_tv;           /* time entry was made */
        char ut_host[16];               /* host id */
  } ;

>How-To-Repeat:
	See Description.
>Fix:
	
>Audit-Trail:
>Unformatted:

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