pending/1061: minor Ultrix compatibility fixes
Dan Riley
dsr at mail.lns.cornell.edu
Fri Feb 22 14:18:00 EST 2002
>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 <unistd.h>
-#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:
More information about the krb5-bugs
mailing list