tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [SUMMARY] GhostScript and DU4.0B
@ 1998-03-03  3:09 Biswamber Lal Gurubacharya
  0 siblings, 0 replies; only message in thread
From: Biswamber Lal Gurubacharya @ 1998-03-03  3:09 UTC (permalink / raw)
  To: tru64-unix-managers

ORIGINAL POSTING
----------------
I would appreciate some assistance in compiling and installing ghostscript
in a DU4.0B machine.

I have tried to compile a number of versions of ghostscript. The
compilation process proceeds without any errors (some warnings with a
couple of versions). When I execute gs, it inevitably ends up with
unaligned access errors. I have tried various versions of source codes
from both GNU and Aladdin.  The modified source code supplied with the
freeware CD from Digital produced the same result. I also tried compiling
with cc as well as gcc.

SUMMARY
-------
Thanks to the following for their helpful responses:

  Jim Belonis <belonis@dirac.phys.washington.edu>
  Dejan Muhamedagic <dejan@yunix.co.yu>
  Dr Kevin McManus <K.McManus@greenwich.ac.uk>
  Bjorn S. Nilsson <Bjorn.S.Nilsson@nbi.dk>

The consensus is that Ghostscript compiles in DU4.0B without problems. 
However the binary produced generates a lot of unaligned access errors
while running. As Dejan Muhamedagic <dejan@yunix.co.yu> puts it 'Unaligned
access should not be "too much trouble", i.e. take a look at man page for
uac(1).' I was able to suppress the error messages with the command:

 'uac p noprint'

Rather than include this command in shell startup scripts, I included the
following in the Ghostscript source file "gs.c":

  #include <sys/sysinfo.h>
  #include <machine/hal_sysinfo.h>
  #include <sys/proc.h>
   .
   .
  int uacbuf[2];
  uacbuf[0] = SSIN_UACPROC;
  uacbuf[1] = UAC_NOPRINT;
  setsysinfo(SSI_NVPAIRS, uacbuf, 1, 0, 0);

The binary produced does not generate unalligned access error messages
while running. Not very elegant, but it works.

-biswamber
-----------------------------
Biswamber Lal Gurubacharya
Asian Institute of Technology
Bangkok
THAILAND

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-03-03  3:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-03  3:09 [SUMMARY] GhostScript and DU4.0B Biswamber Lal Gurubacharya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox