From: ghazi@caip.rutgers.edu (Kaveh R. Ghazi)
Newsgroups: comp.sys.m88k
Subject: XD88 newsletter
Date: 27 Jan 93 21:38:03 GMT
Organization: Rutgers Univ., New Brunswick, N.J.


	I have a couple of Tektronix XD88's for a while and since Tektronix
no longer produces these workstations (the machines are orphaned,) I thought
it would be helpful if I shared some of the information I have gathered along
with pointers to public software which works on them.

	Are there any other Tektronix XD88 users out there?  If you'd like,
mail me your email address and I'll see about starting a mailing list.

	Here is my list of helpful hints so far.  Feel free to send me things
to add to it.

		--Kaveh


A fix to /usr/include/sys/stat.h:
---------------------------------

---------------------------Cut here------------------------------------------
/* This file is intended to correct errors in the defines of the S_IS*(P)
   macros in <sys/stat.h> on systems derived from UniSoft's System V/88.
   Try S_ISBLK() on a directory as an example.

   It is definitely needed for the following systems but is probably
   applicable elsewhere:

        Tektronix XD88/10 running UTekV Release 3.2e
        Motorola MPC3062 running System V/88 Release R32V2.

   To use this file, move the original <sys/stat.h> to <sys/stat.h.orig>
   and install this file as <sys/stat.h>.

   By Kaveh Ghazi  (ghazi@caip.rutgers.edu)  7/2/92.
*/

#include <sys/stat.h.orig>
#undef S_ISDIR
#undef S_ISCHR
#undef S_ISBLK
#undef S_ISREG
#undef S_ISFIFO
#undef S_ISLNK
#define S_ISDIR(P) (((P)&S_IFMT)==S_IFDIR)
#define S_ISCHR(P) (((P)&S_IFMT)==S_IFCHR)
#define S_ISBLK(P) (((P)&S_IFMT)==S_IFBLK)
#define S_ISREG(P) (((P)&S_IFMT)==S_IFREG)
#define S_ISFIFO(P) (((P)&S_IFMT)==S_IFIFO)
#ifdef S_IFLNK
#define S_ISLNK(P) (((P)&S_IFMT)==S_IFLNK)
#endif
---------------------------Cut here------------------------------------------

Various program ports:
-----------------
tcsh:	Port patches included as of v6.03, use config.tekXD88.  Read the
	file "Ported" in the main directory.  Port includes job control and
	resource limits.  Very solid port.  Don't optimize if you're using the
	Green Hills compiler.
perl:	Port patches included with v4.035, use the utekv hints.  You may need
	to delete some of the makefile dependency lines if you use the bundled
	make program because it can't handle the resulting large Makefile.
	Use gnu make if possible.  The binary passes all tests in the suite.
X11R5:	Compile using the Motorola System V/88 R32V2 patches.  That means
	that BOOTSTRAPCFLAGS="-DSYSV -DMOTOROLA".  You'll need gnu make-3.63.
	You'll often encounter problems which are easily solved by #including
	the relevant <*.h> file.  I also found that I had to define
	USE_SYSV_UTMP and USE_POSIX_WAIT in xterm/main.c.  Will someone do
	a server port?
-----------------------------------------------------------------------------

GNU programs:	(Thanks to autoconf, many programs are now easy to build.)
-------------
bash:		Version 1.12, type "make" to build.
bison:		Version 1.19, type "configure; make" to build.
diff:		Version 2.0, type "configure; make" to build.
emacs:		Version 18.59, see related posting to find m-tekXD88.h.
fileutils:	Version 3.4, type "configure; make" to build.
find:		Version 3.7, type "configure; make" to build.
less:		Version 177, type "sh linstall", answer questions and "make".
make:		Version 3.63, type "configure; make" to build.
rcs:		Get gnu diff.  Version 5.6 compiles and passes test suite.
sed:		Version 1.13, type "configure; make" to build.  You will have
		to hand link in a copy of alloca.c from another gnu package.
		You should compile alloca.c with "-Dxmalloc=ck_malloc" if ld
		says _xmalloc is undefined.  You may also have to insert
		"-DHAVE_BCOPY" in the Makefile.
shellutils:	Version 1.8, type "configure; make" to build.
textutils:	Version 1.4, type "configure; make" to build.
-----------------------------------------------------------------------------

ToDo list:
gcc:		Try gcc with dg-rtp.dg.com version as a starting point.
amd:		Try amd (yeah right, dream on...)
-- 
Kaveh R. Ghazi			CAIP Center, Rutgers University.
ghazi@caip.rutgers.edu		rutgers!caip.rutgers.edu!ghazi