Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Ghostview 1.5 on alpha
@ 1994-03-01 21:30 Bill Wang
  1994-03-03 21:39 ` Bill Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Wang @ 1994-03-01 21:30 UTC (permalink / raw)



I have successfully compiled ghostview 1.5 under OSF 1.2 on Alpha but
go the following error message every time I want to preview any
postscript files.

"gs: Malformed ghostview color property."

gs is running ok but ghostview is not.  

Any hints or helps would be appreciated.  

-- 
Bill Wang
US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
Internet = wcwang@cs.indiana.edu


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ghostview 1.5 on alpha
  1994-03-01 21:30 Ghostview 1.5 on alpha Bill Wang
@ 1994-03-03 21:39 ` Bill Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Wang @ 1994-03-03 21:39 UTC (permalink / raw)


Here is the fix for gs261.  Thanks.

From george@ziggy.eng.miami.edu Wed Mar  2 14:55:02 1994
Subject: ghostview 1.5 error
To: wcwang@olympian.psych.indiana.edu

In case you have not gotten any answer yet:

grep the word "malformed" from the c-files. You will find it in a 
file named gdevxini.c. It is a error message that pops up when a 
condition is met, which precedes the line with the printf() message. 
The 'if' statement is incorrect. It has incorrect "and's" and "or's". 

The original block  reads:

 type == XA_STRING) {
            nitems = sscanf(buf, "%*s %d %d", &(xdev->foreground),
                                              &(xdev->background));
error!->     if (nitems != 2 || *buf != 'M' || *buf != 'G' || *buf != 'C') {
                eprintf("gs: Malformed ghostview color property.\n");
                exit(1);
            }
            palette = max(palette, *buf);

And it should read:

 type == XA_STRING) {
            nitems = sscanf(buf, "%*s %d %d", &(xdev->foreground),
                                              &(xdev->background));
fix ->      if (nitems != 2 || (*buf != 'M' && *buf != 'G' && *buf != 'C')) {
                eprintf("gs: Malformed ghostview color property.\n");
addition        eprintf2("gs: got \"%s\" (nitems=%d).\n", buf, nitems);
addition        eprintf("gs: expected \"%%*s %%d %%d\".\n");
                exit(1);
            }
            palette = max(palette, *buf);

 
Hope this helps.

Good luck.

George


-- 
Bill Wang
US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
Internet = wcwang@cs.indiana.edu


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-03-03 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-03-01 21:30 Ghostview 1.5 on alpha Bill Wang
1994-03-03 21:39 ` Bill Wang

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