mit X11R4
Ric Anderson
ric at cs.arizona.edu
Tue Oct 23 09:08:20 AEST 1990
For those who requested the patches for making X11R4 (patch
level 18) compile under ultrix 4.0, here is what worked on my
monochrome Dec-3100.
This is a repost, because the original article was appearantly
mangled...
ric
---
Basic procedure.
1. cd to the top of the X11 tree.
2. unshare the two files fix-ultrix and ultrix-4.0.cf from the archive.
3. Now, save the ultrix 3 config file, and make the ultrix 4 config
file the default for ultrix builds via:
a. mv mit/config/ultrix.cf mit/config/ultrix-3.0.cf
b. mv ultrix-4.0.cf mit/config
c. cp mit/config/ultrix-4.0.cf mit/config/ultrix.cf
4. Next, apply the fixes via the "patch" utility, e.g.
patch -p0 <fix-ultrix
This will affect
mit/clients/xterm/{main.c,misc.c}
mit/server/ddx/dec/cfbpmax/{cfbpmax_io.c,cfbpmaxcolor.c}
mit/server/ddx/dec/mfbpmax/{init.c,mfbpmax_io.c}
5. Then do a "Make World". This took about 4 hours on an otherwise
idle Dec-3100.
Good Luck!!!
--
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: fix-ultrix.4.0 ultrix-4.0.cf
# Wrapped by ric at cheltenham on Sat Oct 20 09:26:27 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'fix-ultrix.4.0' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'fix-ultrix.4.0'\"
else
echo shar: Extracting \"'fix-ultrix.4.0'\" \(2969 characters\)
sed "s/^X//" >'fix-ultrix.4.0' <<'END_OF_FILE'
X*** /tmp/,RCSt1a29477 Wed Sep 19 08:53:39 1990
X--- mit/clients/xterm/misc.c Mon Sep 17 18:33:06 1990
X***************
X*** 431,437 ****
X--- 431,441 ----
X old_bufend = _bufend(stderr);
X #endif /* SYSV */
X close(fileno(stderr));
X+ #ifdef ultrix /* work around ultrix 4.0 stdio */
X+ stderr->_file = 2;
X+ #else
X fileno(stderr) = 2;
X+ #endif
X #ifdef SYSV
X _bufend(stderr) = old_bufend;
X #endif /* SYSV */
X*** /tmp/,RCSt1a29482 Wed Sep 19 08:53:44 1990
X--- mit/clients/xterm/main.c Mon Sep 17 10:12:35 1990
X***************
X*** 822,828 ****
X--- 822,832 ----
X fileno(stderr) = i;
X _bufend(stderr) = old_bufend;
X #else /* USE_SYSV_TERMIO */
X+ #ifdef ultrix /* work around ultrix4.0 stdio. */
X+ stderr->_file = i;
X+ #else
X fileno(stderr) = i;
X+ #endif
X #endif /* USE_SYSV_TERMIO */
X
X /* mark this file as close on exec */
X
X*** /tmp/,RCSt1a29436 Wed Sep 19 08:43:58 1990
X--- mit/server/ddx/dec/cfbpmax/cfbpmax_io.c Mon Sep 17 17:11:22 1990
X***************
X*** 31,38 ****
X #include <sys/tty.h>
X #include <errno.h>
X #include <sys/devio.h>
X! #include <machine/pmioctl.h>
X! #include <machine/dc7085cons.h>
X
X #include "misc.h"
X #include "X.h"
X--- 31,38 ----
X #include <sys/tty.h>
X #include <errno.h>
X #include <sys/devio.h>
X! #include <io/tc/pmioctl.h>
X! #include <io/tc/dc7085reg.h>
X
X #include "misc.h"
X #include "X.h"
X*** /tmp/,RCSt1a29444 Wed Sep 19 08:49:20 1990
X--- mit/server/ddx/dec/cfbpmax/cfbpmaxcolor.c Mon Sep 17 17:11:29 1990
X***************
X*** 49,56 ****
X #include <sys/tty.h>
X #include <errno.h>
X #include <sys/devio.h>
X! #include <machine/pmioctl.h>
X! #include <machine/dc7085cons.h>
X #include "X.h" /* required for DoRed ... */
X #include "Xproto.h" /* required for xColorItem */
X
X--- 49,56 ----
X #include <sys/tty.h>
X #include <errno.h>
X #include <sys/devio.h>
X! #include <io/tc/pmioctl.h>
X! #include <io/tc/dc7085reg.h>
X #include "X.h" /* required for DoRed ... */
X #include "Xproto.h" /* required for xColorItem */
X
X
X*** /tmp/,RCSt1a29413 Wed Sep 19 08:42:42 1990
X--- mit/server/ddx/dec/mfbpmax/mfbpmax_io.c Mon Sep 17 17:15:23 1990
X***************
X*** 31,38 ****
X #include <sys/tty.h>
X #include <errno.h>
X #include <sys/devio.h>
X! #include <machine/pmioctl.h>
X! #include <machine/dc7085cons.h>
X
X #include "misc.h"
X #include "X.h"
X--- 31,38 ----
X #include <sys/tty.h>
X #include <errno.h>
X #include <sys/devio.h>
X! #include <io/tc/pmioctl.h>
X! #include <io/tc/dc7085reg.h>
X
X #include "misc.h"
X #include "X.h"
X*** /tmp/,RCSt1a29418 Wed Sep 19 08:42:51 1990
X--- mit/server/ddx/dec/mfbpmax/init.c Mon Sep 17 17:16:35 1990
X***************
X*** 27,33 ****
X #include "X.h"
X #include "Xproto.h"
X #include <sys/types.h>
X! #include <machine/pmreg.h>
X
X #include "scrnintstr.h"
X #include "servermd.h"
X--- 27,33 ----
X #include "X.h"
X #include "Xproto.h"
X #include <sys/types.h>
X! #include <io/tc/pmreg.h>
X
X #include "scrnintstr.h"
X #include "servermd.h"
END_OF_FILE
if test 2969 -ne `wc -c <'fix-ultrix.4.0'`; then
echo shar: \"'fix-ultrix.4.0'\" unpacked with wrong size!
fi
# end of 'fix-ultrix.4.0'
fi
if test -f 'ultrix-4.0.cf' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'ultrix-4.0.cf'\"
else
echo shar: Extracting \"'ultrix-4.0.cf'\" \(1034 characters\)
sed "s/^X//" >'ultrix-4.0.cf' <<'END_OF_FILE'
X/*
X * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
X */
X
X#define OSName Ultrix V4.0
X#define OSMajorVersion 4
X#define OSMinorVersion 0
X#define SystemV NO
X#define HasVoidSignalReturn YES
X#define HasPutenv YES
X#define HasBsearch YES
X
X#undef ExtensionDefines
X#define ExtensionDefines -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC
X
X#ifdef VaxArchitecture
X#define XqvssServer Xqvss
X#define XqdssServer Xqdss
X#define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */
X#define HasSaberC YES
X#define ServerDefines StandardDefines ExtensionDefines -DXDMCP -DNOSTDHDRS -DX11R4
X/* gcc is *VERY USEFUL*, especially for the server; GET it */
X/* #define HasGcc YES */
X#endif
X
X#ifdef MipsArchitecture
X#define XmfbpmaxServer Xmfbpmax
X#define XcfbpmaxServer Xcfbpmax
X#define StandardDefines
X#define DefaultCCOptions -Wf,-XNh2000 -Olimit 2000
X#define ServerDefines StandardDefines ExtensionDefines -DXDMCP
X
X#endif
X
X/**/# platform: $XConsortium: ultrix.cf,v 1.20 89/12/22 15:56:14 rws Exp $
X/**/# operating system: OSName
END_OF_FILE
if test 1034 -ne `wc -c <'ultrix-4.0.cf'`; then
echo shar: \"'ultrix-4.0.cf'\" unpacked with wrong size!
fi
# end of 'ultrix-4.0.cf'
fi
echo shar: End of shell archive.
exit 0
---
More information about the Comp.unix.ultrix
mailing list