Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!news From: oliveria@srvr1 (ROQUE DONIZETE DE OLIVEIRA) Newsgroups: comp.sys.apollo Subject: Re: ghostscript 2.0 on apollo Message-ID: <1990Sep20.000348.21931@caen.engin.umich.edu> Date: 20 Sep 90 00:03:48 GMT References: Sender: news@caen.engin.umich.edu (CAEN Netnews) Distribution: comp Organization: The University of Michigan, Ann Arbor Lines: 81 From article , by michel@es.ele.tue.nl (Michel Berkelaar): > > We recently obtained version 2.0 of ghostscript. On our hp9000/835 it compiled > perfectly and seems to work ok. But on our Apollo 3000 and 2500 workstations > I have not been able to make a working version. > These are the changes I made in order to get ghostscript (postscript interpreter/previewer) to compile on the apollos running sr10.2 bsd4.3. Supposedly some of these changes will not be needed in sr10.3. ------------------------------------------------------------------------ 1) malloc_.h replaced # ifdef BSD4_2 by # if defined(BSD4_2) || defined(apollo) ------------------------------------------------------------------------ 2) cc-head.mak replaced GS_LIB_DEFAULT=`pwd` by GS_LIB_DEFAULT=/usr/caen/ghostscript/gs:/usr/caen/ghostscript/fonts:/usr/caen/ghostscript/hershey replaced CFLAGS=-O by # Add -A nansi for apollos (very important). CFLAGS=-O -A nansi replaced LDPLAT=-X by LDPLAT= replaced EXTRALIBS= -lX11 by # Apollos need -L/usr/X11/lib -lX11 EXTRALIBS= -L/usr/X11/lib -lX11 ------------------------------------------------------------------------ 3) unixtail.mak replaced $(CC) $(CFLAGS) $(LDPLAT) -o gs $(GSUNIX) -lX11 $(EXTRALIBS) -lm by $(CC) $(CFLAGS) $(LDPLAT) -o gs $(GSUNIX) $(EXTRALIBS) -lm ------------------------------------------------------------------------ 4) created a new unix-cc.mak by typing cat cc-head.mak ghost.mak gdevs.mak unixtail.mak > unix-cc.mak ------------------------------------------------------------------------ 5) Read the file make.doc for installing instructions. Note that there is no "make install" option so you have to copy the executable (gs) to the location you want. ------------------------------------------------------------------------ 6) The fonts were installed (all it it needs is to untar 2 files) in /usr/caen/ghostscript/fonts and /usr/caen/ghostscript/hershey ------------------------------------------------------------------------ 7) the man page (man.doc) was modified to include more information and examples. Original man page kept on man.doc.orig . ------------------------------------------------------------------------ I found it to be reasonably fast on a dn4000. I guess you could use -D_BUILTINS and -A cpu,3000 to speed it up even more. It supports color postscript files, symbol (greek) font, postscript files created by some dvi* converters, etc. The main drawback of ghostscript 2.0 is garbage collection is poor (a known/documented problem) in the sense that it may crash or give incorrect results if many postscript files are viewed in the same session. Another nice feature is a postscript to PPM converter. On the apollos it only runs under X11 (we are using Apollo's X11) although there are drivers for other systems (PCs, suns, etc). Before someone asks, it can be ftp'ed from the pub/gnu directory at prep.ai.mit.edu . It is about 1.7 megs (compressed tar files). Roque D. Oliveira oliveria@caen.engin.umich.edu 09/19/1990