Scientific Operations Bellum Gratia Artis

testing - 1998 - February - this message

[ next ]

Subject: [9fans] Ghostscript 5.10

From: Nigel Roles <ngr@[REDACTED]>
Date: Mon, 23 Feb 1998 08:27:25 -0000

OK. It was not the linker. It was linked correctly, but crashed so badly
wasn't a stackframe! The bin/file "boot image" message comes from
/sys/src/libmach/executable.c which makes a test along the following
lines in

if (entrypoint & kbase)
string = "386 Plan 9 boot image"

Since the 386 kbase is 0x80100000 executables of more than a megabyte
may pass this test.

In consultation with forsyth we think that

if (entrypoint >= kbase)

might be closer to the truth. Or even,

if ((entrypoint & kbase) == kbase)

As for gs5.10, it's fixed. An executable is available as

Note that this does not have Plan 9 bitmap output yet, but does have the
Digiboard fax support required by bin/page.

This version of gs expects the 5.10 libraries and fonts to be in
so that they don't overwrite the standard 3.22 version (in
These can be obtained as

Thus Plan 9 can now display .pdf files:

gs -sDEVICE'='dfaxlow -sOUTPUTFILE'='/tmp/xxx%.3d -dNOPAUSE -dSAFER
-dQUIET whatever.pdf

page /tmp/xxx*

Or you might like to modify page.c to accept .pdf files and treat them
as if they are .ps.