[gnu.ghostscript.bug] Problem with gs 1.2 using tcc 1.5

reilly@SCOTTY.DCCS.UPENN.EDU (G. Brendan Reilly) (06/06/89)

This is the result of running gs.exe.  Should it be?

Is there an effort to port this to printers underway?


Reading ghost.ps... 
Interp returns -23
ostack:
51852b22:  7 name ----------    0 56c91b84
51852b2a:  5 int  ----------  141        e
51852b32:  5 int  ----------    0        b
estack:
51853b42:  9 oper x---------    0 30420281
51853b4a:  3 file xe-r------    5 51850000
51853b52:  0 arry xewr------    e 56c91a7c

snoopy@sopwith.UUCP (Snoopy) (06/08/89)

In article <8906061446.AA26554@scotty.dccs.upenn.edu> reilly@SCOTTY.DCCS.UPENN.EDU (G. Brendan Reilly) writes:
| This is the result of running gs.exe.  Should it be?
|
| Reading ghost.ps... 
| Interp returns -23

Whenever you get "Interp returns -<num>", grep for the number in
errors.h.  In this case:

	#define e_undefinedresult (-23)

The red book says this means that a numeric computation blew up.
(underflow, overflow, division by zero, etc)

Judging from your reference to "gs.exe", I'll assume you're using the
EGA driver on a MS-DOS machine.  Ghostscript is blowing up somewhere
in ghost.ps.  Look through the ghost.ps file and make sure that the setup
for EGA is turned on and X-windows is turned off.  If that's not it you
could insert lines like

	(Got here 1.0\n) print flush

at various places and find what statement is blowing up.

| Is there an effort to port this to printers underway?

Just today I got ghostscript to handle the output of psroff and print
correctly on the dot-matrix, using three fonts (regular, bold, and oblique)
and multiple pages.  Graphics stuff and non-roffed text has been working for
some time.  Everything isn't totally kosher yet, I'm faking save and restore
using gsave and grestore and depending on unix having lots of virtual memory.
I've improved the Hershey fonts somewhat, and I'm working on a symbol font,
but I haven't tried tbl/eqn yet.  Support for multiple devices and multiple
fonts is working.  I have it setup so that it knows how to load a font off
disk on demand rather than having to remember to hand-feed fonts to it.

Hopefully I can finish cleaning things up in the next few days and start
beta testing and ship a copy off to Peter in time that he can include it in
the 1.3 release.


    _____     						  .-----.
   /_____\    Snoopy					./  RIP	 \.
  /_______\   qiclab!sopwith!snoopy			|  	  |
    |___|     parsely!sopwith!snoopy			| tekecs  |
    |___|     sun!nosun!illian!sopwith!snoopy		|_________|

		"I *was* the next man!"  -Indy

ghost@aladdin.com (L. Peter Deutsch) (06/09/89)

I don't recognize "tcc".  Is this Borland Turbo C?  In any case, there
is a subtle incompatibility between 1.5 and 2.0, and Ghostscript must be
compiled with the correct one.  I've switched to 2.0, and I think I
made the switch before release 1.2; in any case release 1.3 will require
Turbo C 2.0, but we will also distribute gs.exe already compiled and
linked.

There are several people doing printer back ends.  You should be hearing
from them.  The only ones I remember are doing dot matrix or fax, but
it should be easy to write a driver that puts out, e.g., whatever the
H-P printers eat.

		- P. D.

		ghost@aladdin.com
		...{uunet,parcplace.com}!aladdin!ghost
		P. O. box 60264, Palo Alto, CA 94306