[2579] in Kerberos-V5-bugs
pending/296: Problems with HPUX-10.10 build/getutmpx() missing
daemon@ATHENA.MIT.EDU (Von Welch)
Thu Dec 12 12:04:49 1996
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, Von Welch <vwelch@ncsa.uiuc.edu>
Date: Thu, 12 Dec 1996 11:02:27 -0600 (CST)
From: Von Welch <vwelch@ncsa.uiuc.edu>
To: krb5-bugs@MIT.EDU
Cc: vwelch@ncsa.uiuc.edu (Von Welch)
>Number: 296
>Category: pending
>Synopsis: Problems with HPUX-10.10 build/getutmpx() missing
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Dec 12 12:04:00 EST 1996
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Hello,
When building the beta 7 release of kerberos 5 on a HP 9000 running
HPUX 10.10 I ran across the problem that HPUX is apparently missing the
function getutmpx() which is called in util/pty/update_utmp.c and
util/pty/update_wtmp.c
I've attached the changes I made to get it to build just to show where
the problem is. My changed are obviously not a good fix. I believe
something needs to be added to configure to detect and fix this.
Thank you,
Von
------------------------------------------------------------------------
Von Welch Senior Network Engineer vwelch@ncsa.uiuc.edu
National Center for Supercomputing Applications
------------------------------------------------------------------------
*** update_utmp.c 1996/12/12 16:52:16 1.1
--- update_utmp.c 1996/12/12 14:43:15
***************
*** 124,129 ****
--- 124,130 ----
pututline(&ent);
endutent();
+ #if 0
#ifdef HAVE_SETUTXENT
setutxent();
getutmpx(&ent, &utx);
***************
*** 134,139 ****
--- 135,141 ----
pututxline(&utx);
endutxent();
#endif /* HAVE_SETUTXENT */
+ #endif /* 0 */
#else /* HAVE_SETUTENT */
if (flags&PTY_TTYSLOT_USABLE)
*** update_wtmp.c 1996/12/12 16:52:16 1.1
--- update_wtmp.c 1996/12/12 14:38:27
***************
*** 40,45 ****
--- 40,46 ----
struct utmp ut;
struct stat statb;
int fd;
+ #if 0
#ifdef HAVE_UPDWTMPX
struct utmpx utx;
***************
*** 52,57 ****
--- 53,59 ----
strncpy(utx.ut_user, user, sizeof(utx.ut_user));
updwtmpx(WTMPX_FILE, &utx);
#endif
+ #endif /* 0 */
#ifdef HAVE_UPDWTMP
#ifndef HAVE_UPDWTMPX