Date: Thu, 27 Jun 1996 12:43:57 -0700 (PDT) From: Gordon Fox To: apollo-archivist@archive.umich.edu Message-Id: <199606271943.MAA15632@jeeves.ucsd.edu> Subject: ghostscript & ghostview Jim, The following are my notes on compiling ghostscript 3.33 and ghostview 1.5. They compile out of the box, but there're a couple of things that need to be defined to get it to work on my DN3500. Anyway, if you're collecting notes like this, I thought they might be useful. Cheers, Gordon ******************************************************************* The following refers to my experience with a DN3500, with ANSI C and the X11-R5 library from the Michigan archive. Ghostscript 3.33 compiles easily out of the box, using the cc compiler. [ ed note -- Gordon says it's cc version 6.9. - Jim Rees ] There're some statements in one of the documentation files about funny things with Apollos, suggesting that you might have to use gcc. I actually had a fair amount of difficulty trying to compile with gcc, and got an executable > 4 Mb. Using cc with the ANSI C headers (it probably won't work without ANSI C), it compiled effortlessly, and the executable is just over 1 Mb. The only trick I had to use was to define _INCLUDE_BSD_SOURCE so the compiler didn't choke on . The command line I used was: make XCFLAGS="-D_INCLUDE_BSD_SOURCE -W0,-inlib,/lib/x11r5lib" though others would want to inlib whatever their x11r5 shared library is called. I used the provided unixansi.mak as the Makefile. I didn't follow the provided directions about how to modify it -- I just copied it to Makefile, and edited it to add pdf.dev to the DEVS, so the executable can (supposedly -- I haven't tried it yet) read pdf files. I suspect that more substantive changes would necessitate following their directions, though. It seems to work fine. Ghostview-1.5 compiles about as easily. I actually didn't use their Makefile at all, since it's a small program -- just compiled all the routines with cc -O -DNON_BLOCKING_IO -DSELFILE -W0,-inlib,/usr/local/lib/x11r5lib / -A inlib,/usr/local/lib/x11r5lib -A cpu,3000 -c *.c and then linked them. Again I had to -D_INCLUDE_BSD_SOURCE to get Dir.c to compile, but otherwise the above command line worked fine. The cc compiler did a better job than gcc (smaller executable, and there were some features that didn't work when I compiled with gcc). There's one bug on my version: clicking in the display window to zoom crashes Ghostview, with no error message. However, changing to a different magstep works fine, and since I've never wanted to zoom on my gview for Windows, I can probably live without it on my Apollo -- there're enough other things to fix.