[comp.windows.x] Installing X11R4 on DECstation 2100 running Ultrix 4.0

albert@ee.su.oz.au (Albert Hirawan) (08/08/90)

I have a DECstation 2100 running Ultrix 4.0 and I want to run Xwindows
on it. But I failed to compile X11R4 because it could not find 3
include files:

	- machine/dc7085cons.h
	- machine/pwreg.h
	- machine/pmioctl.h

The listing of /usr/include/machine directory is as follows:

asm.h            dkio.h           kn220.h          s2681cons.h
cachectl.h       dvh.h            kn5800.h         sableclock.h
cca.h            entry.s          mc146818clock.h  sablecons.h
clock.h          entrypt.h        net/             sas@
conf/            fpu.h            nexus.h          scb.h
cons.h           frame.h          param.h          softfp.h
cons_sw.h        fs/              pcb.h            ssc.h
cpu.h            genassym.c       ps_data.h        swapgeneric.c
cpu_board.h      h@               psl.h            symbols.raw
cpuconf.h        hwconf.h         pte.h            symbols.sort
data/            inst.h           r2350mem.h       sys@
debug.h          io/              reg.h            vm/
dist@            kn210.h          regdef.h         vmparam.h


Can anybody help me with this problem? If so, please send me email.
My email address is "albert@ee.su.oz.au".

Thanks.


---------------------------------------------------------------------
Albert Hirawan
Faculty of Electrical Engineering
University of Sydney
N.S.W. 2006
AUSTRALIA

email: albert@ee.su.oz.au
---------------------------------------------------------------------

jg@crl.dec.com (Jim Gettys) (08/09/90)

Ultrix 4.0 reorganized headerfiles to deal with building multiple
architectures from the same source pool, and deal with the ever
increasing number of devices.  The files  you need are now
in "/usr/include/machine/io/tc".
				- Jim

mic@ut-emx.UUCP (Mic Kaczmarczik) (08/09/90)

In article <1990Aug8.043138.20032@metro.ucc.su.OZ.AU> albert@ee.su.oz.au (Albert Hirawan) writes:
>
>I have a DECstation 2100 running Ultrix 4.0 and I want to run Xwindows
>on it. But I failed to compile X11R4 because it could not find 3
>include files:
>
>	- machine/dc7085cons.h
>	- machine/pwreg.h
>	- machine/pmioctl.h
>

These include files were evidently moved into <io/tc> under 4.0 (at
least, that's where I found them).  I managed to get R4 (with fixes
1-12 applied) compiled and running on a demo DECstation 5000 running
Ultrix 4.0 using the following config file and changes. 

The patches are:
	1) clients/xterm/main.c -- compiler barfs on the line
		fileno(stderr) = i;

	2) server/ddx/dec/cfbpmax/{cfbpmax_io,cfbpmax_color}.c -- fix location
	of the include files mentioned above

	3) server/ddx/dec/mfbpmax/{init.c,mfbpmax_io}.c -- ditto

To apply and build:

	1) Rename config/ultrix.cf to config/ultrix-3.cf or
	config/ultrix.cf.dist, to keep a copy of the original Ultrix Imake
	config file. 

	2) Cd to the top level of your build tree and unpack the shell archive
	below

	3) Copy ultrix-4.0.cf into config/ultrix.cf

	4) Cd to the top of the build tree and type
	patch -p <ultrix-4.0.diffs

I didn't put much time into verifying that everything worked
perfectly, but xterm, xeyes, and the other bare necessities seem to
work ok. Your mileage may vary. 

--mic--

#! /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:  ultrix-4.0.cf ultrix-4.0.diffs
# Wrapped by mic@thumper.cc.utexas.edu on Thu Aug  9 11:18:23 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
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
if test -f 'ultrix-4.0.diffs' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'ultrix-4.0.diffs'\"
else
echo shar: Extracting \"'ultrix-4.0.diffs'\" \(3204 characters\)
sed "s/^X//" >'ultrix-4.0.diffs' <<'END_OF_FILE'
Xdiff -rc /usr/src/public/X11R4/mit/clients/xterm/main.c ./clients/xterm/main.c
X*** /usr/src/public/X11R4/mit/clients/xterm/main.c	Mon Mar 12 17:10:42 1990
X--- ./clients/xterm/main.c	Wed Aug  8 12:58:27 1990
X***************
X*** 820,826 ****
X--- 820,830 ----
X  		fileno(stderr) = i;
X  		_bufend(stderr) = old_bufend;
X  #else	/* USE_SYSV_TERMIO */
X+ #ifdef	ultrix
X+ 		_iob[2]._file = i;
X+ #else
X  		fileno(stderr) = i;
X+ #endif
X  #endif	/* USE_SYSV_TERMIO */
X  
X  		/* mark this file as close on exec */
Xdiff -rc /usr/src/public/X11R4/mit/server/ddx/dec/cfbpmax/cfbpmax_io.c ./server/ddx/dec/cfbpmax/cfbpmax_io.c
X*** /usr/src/public/X11R4/mit/server/ddx/dec/cfbpmax/cfbpmax_io.c	Wed Nov 29 16:09:29 1989
X--- ./server/ddx/dec/cfbpmax/cfbpmax_io.c	Wed Aug  8 11:30:44 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"
Xdiff -rc /usr/src/public/X11R4/mit/server/ddx/dec/cfbpmax/cfbpmaxcolor.c ./server/ddx/dec/cfbpmax/cfbpmaxcolor.c
X*** /usr/src/public/X11R4/mit/server/ddx/dec/cfbpmax/cfbpmaxcolor.c	Wed Jul 19 20:27:04 1989
X--- ./server/ddx/dec/cfbpmax/cfbpmaxcolor.c	Wed Aug  8 11:19:57 1990
X***************
X*** 46,53 ****
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--- 46,53 ----
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  
Xdiff -rc /usr/src/public/X11R4/mit/server/ddx/dec/mfbpmax/init.c ./server/ddx/dec/mfbpmax/init.c
X*** /usr/src/public/X11R4/mit/server/ddx/dec/mfbpmax/init.c	Tue Oct 10 09:16:43 1989
X--- ./server/ddx/dec/mfbpmax/init.c	Wed Aug  8 11:21:58 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"
Xdiff -rc /usr/src/public/X11R4/mit/server/ddx/dec/mfbpmax/mfbpmax_io.c ./server/ddx/dec/mfbpmax/mfbpmax_io.c
X*** /usr/src/public/X11R4/mit/server/ddx/dec/mfbpmax/mfbpmax_io.c	Wed Jan 24 19:09:22 1990
X--- ./server/ddx/dec/mfbpmax/mfbpmax_io.c	Wed Aug  8 11:21:13 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"
END_OF_FILE
if test 3204 -ne `wc -c <'ultrix-4.0.diffs'`; then
    echo shar: \"'ultrix-4.0.diffs'\" unpacked with wrong size!
fi
# end of 'ultrix-4.0.diffs'
fi
echo shar: End of shell archive.
exit 0

-- 
Mic Kaczmarczik                 remark@{emx,ix1,ccwf} (Unix consulting, 1-0251)
Unix / VMS / Cyber Services                 ...!cs.utexas.edu!ut-emx!mic (UUCP)
UT Austin Computation Center                      mic@emx.utexas.edu (Internet)
                                                            mic@utaivc (BITNET)