[2151] in Kerberos-V5-bugs
KRB5 build error on Digital Unix 4.0
daemon@ATHENA.MIT.EDU (Doug Engert)
Thu Aug 15 10:40:28 1996
Date: Thu, 15 Aug 1996 09:39:50 -0500
From: Doug Engert <DEEngert@anl.gov>
To: Ossama Othman <othman@curly.tn.cornell.edu>
Cc: krb5-bugs@MIT.EDU
In-Reply-To: <Pine.A32.3.91.960814152713.16666A-100000@curly.tn.cornell.edu>
Ossama Othman writes:
> Hi, I get the following errors whenever I try to build Kerberos V5 BETA6 on my
> DEC Alpha running Digital Unix 4.0:
>
> ./../include/krb5 -DKERBEROS -I. -I. -c ./update_wtmp.c
> ./update_wtmp.c: In function `ptyint_update_wtmp':
> ./update_wtmp.c:53: `WTMPX_FILE' undeclared (first use this function)
> ./update_wtmp.c:53: (Each undeclared identifier is reported only once
> ./update_wtmp.c:53: for each function it appears in.)
>
>
> Could you please tell me how to correct this.
>
> Thanks so much.
>
>
> ________________________________________________
> Ossama Othman
> othman@astrosun.tn.cornell.edu
>
> Center for Radiophysics and Space Research
> Cornell University
> Ithaca, NY
>
Try this which I sent into MIT some time ago:
*** ./util/pty/,update_wtmp.c Tue Apr 16 21:11:22 1996
--- ./util/pty/update_wtmp.c Tue Jun 11 07:17:30 1996
***************
*** 40,45 ****
--- 40,46 ----
struct utmp ut;
struct stat statb;
int fd;
+ #ifdef HAVE_UPDWTMPX
#ifdef HAVE_SETUTXENT
struct utmpx utx;
***************
*** 51,56 ****
--- 52,58 ----
if (user)
strncpy(utx.ut_user, user, sizeof(utx.ut_user));
updwtmpx(WTMPX_FILE, &utx);
+ #endif
#endif
#ifdef HAVE_UPDWTMP
*** ./util/pty/,update_utmp.c Tue Apr 16 21:11:19 1996
--- ./util/pty/update_utmp.c Mon Jun 10 16:45:49 1996
***************
*** 124,129 ****
--- 124,130 ----
pututline(&ent);
endutent();
+ #ifdef HAVE_UPDWTMPX
#ifdef HAVE_SETUTXENT
setutxent();
getutmpx(&ent, &utx);
***************
*** 134,139 ****
--- 135,141 ----
pututxline(&utx);
endutxent();
#endif /* HAVE_SETUTXENT */
+ #endif
#else /* HAVE_SETUTENT */
if (flags&PTY_TTYSLOT_USABLE)
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444 <New Area Code 8/3/96>
PGP Key fingerprint = 20 2B 0C 78 43 8A 9C A6 29 F7 A3 6D 5E 30 A6 7F