Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) X-RT-Original-Encoding: iso-8859-1 Content-Length: 3249 From dsr@lnscu5.lns.cornell.edu Fri Feb 22 14:18:01 2002 Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by rt-11.mit.edu (8.9.3/8.9.3) with ESMTP id OAA20708 for ; Fri, 22 Feb 2002 14:18:01 -0500 (EST) Received: from lnscu5.lns.cornell.edu (lnscu5.lns.cornell.edu [128.84.44.111]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id OAA03134 for ; Fri, 22 Feb 2002 14:18:00 -0500 (EST) Received: from lnscu6.lns.cornell.edu (lnscu6.lns.cornell.edu [128.84.45.151]) by lnscu5.lns.cornell.edu (8.12.1/8.12.1) with ESMTP id g1MJI0o2012130 for ; Fri, 22 Feb 2002 14:18:00 -0500 (EST) Received: by lnscu6.lns.cornell.edu (8.8.8/1.1.22.3/15Feb00-0854AM) id OAA0000019552; Fri, 22 Feb 2002 14:18:00 -0500 (EST) Message-Id: <200202221918.OAA0000019552@lnscu6.lns.cornell.edu> Date: Fri, 22 Feb 2002 14:18:00 -0500 (EST) From: Dan Riley Reply-To: dsr@mail.lns.cornell.edu To: krb5-bugs@mit.edu Subject: minor Ultrix compatibility fixes X-Send-Pr-Version: 3.99 >Number: 1061 >Category: pending >Synopsis: 1.2.3 has various minor Ultrix problems >Confidential: no >Severity: non-critical >Priority: low >Responsible: gnats-admin >State: open >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Fri Feb 22 14:19:00 EST 2002 >Last-Modified: >Originator: Dan Riley >Organization: LNS, Cornell U. >Release: krb5-1.2.3 >Environment: System: ULTRIX lns596.lns.cornell.edu 4.4 0 RISC >Description: krb5-1.2.3 (particularly the new utmp/wtmp code) has minor problems on Ultrix. >How-To-Repeat: Try to build krb5-1.2.3 under Ultrix... >Fix: Workaround: retire all Ultrix systems, or apply these patches: diff -ur krb5-1.2.3/src/clients/kinit/kinit.c krb5/clients/kinit/kinit.c --- krb5-1.2.3/src/clients/kinit/kinit.c Wed Jan 9 17:27:01 2002 +++ krb5/clients/kinit/kinit.c Fri Jan 11 12:33:17 2002 @@ -43,7 +43,7 @@ #else #ifdef HAVE_UNISTD_H #include -#ifdef sun +#if defined(sun) || defined(__ultrix) /* SunOS4 unistd didn't declare these; okay to make unconditional? */ extern int optind; extern char *optarg; diff -ur krb5-1.2.3/src/util/pty/configure.in krb5/util/pty/configure.in --- krb5-1.2.3/src/util/pty/configure.in Wed Jan 9 17:28:37 2002 +++ krb5/util/pty/configure.in Thu Dec 6 14:30:12 2001 @@ -24,6 +24,7 @@ echo "Disabling initial vhangup and setsid because they break under Ultrix..." AC_DEFINE([OPEN_CTTY_ONLY_ONCE],[1]) ac_cv_func_setsid=no # setsid doesn't do the right thing under Ultrix even though present +ac_cv_func_setutent=no # has it, but BSD style utmp ;; *-*-aix3*) # AIX has streams include files but not streams TTY diff -ur krb5-1.2.3/src/util/pty/update_utmp.c krb5/util/pty/update_utmp.c --- krb5-1.2.3/src/util/pty/update_utmp.c Wed Jan 9 17:28:37 2002 +++ krb5/util/pty/update_utmp.c Thu Dec 6 15:44:12 2001 @@ -634,6 +634,10 @@ #else /* !(HAVE_SETUTXENT || HAVE_SETUTENT) */ +#ifdef __ultrix +typedef int ssize_t; +#endif + long pty_update_utmp(int process_type, int pid, const char *username, const char *line, const char *host, int flags) >Audit-Trail: >Unformatted: