From parv@pair.com  Mon Apr 15 20:55:24 2002
Return-Path: <parv@pair.com>
Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74])
	by hub.freebsd.org (Postfix) with ESMTP id 02B7D37B404
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Apr 2002 20:55:24 -0700 (PDT)
Received: from sdn-ar-007dcwashp108.dialsprint.net ([63.178.91.68] helo=moo.holy.cow)
	by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1)
	id 16xK3u-0005nW-00
	for FreeBSD-gnats-submit@freebsd.org; Mon, 15 Apr 2002 20:55:23 -0700
Received: by moo.holy.cow (Postfix, from userid 1001)
	id E0A8E50B84; Mon, 15 Apr 2002 23:57:51 -0400 (EDT)
Message-Id: <20020416035751.E0A8E50B84@moo.holy.cow>
Date: Mon, 15 Apr 2002 23:57:51 -0400 (EDT)
From: parv@pair.com
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: building in "www" dies due to ghostscript error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37125
>Category:       docs
>Synopsis:       building in "www" dies due to ghostscript error
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 15 21:00:06 PDT 2002
>Closed-Date:    Sat Apr 20 13:51:06 PDT 2002
>Last-Modified:  Sat Apr 20 13:51:06 PDT 2002
>Originator:     parv
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD moo.holy.cow 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Mar 17 01:01:43 EST 2002

updated docs tree as of 2002.04.15 00.54.20 utc

ghostscript-gnu-nox11-6.53_1

below is env...

ENGLISH_ONLY=YES
DOC_LANG=en_US.ISO-8859-1
CVSROOT=/home/ncvs
NOPORTSCVS=YES
DESTDIR=/source/contribute/public_web
TIDYOPTS="-i -m -f /dev/null"

SGML_ROOT=/usr/local/share/sgml
SGML_CATALOG_FILES=${SGML_ROOT}/jade/catalog
SGML_CATALOG_FILES=${SGML_ROOT}/iso8879/catalog:$SGML_CATALOG_FILES
SGML_CATALOG_FILES=${SGML_ROOT}/html/catalog:$SGML_CATALOG_FILES
SGML_CATALOG_FILES=${SGML_ROOT}/docbook/4.1/catalog:$SGML_CATALOG_FILES

>Description:

building in "www" dies with this message...

	
/usr/local/bin/jade -V nochunks -ioutput.html -d /source/contribute/doc/en_US.ISO8859-1/articles/pxe/../../../share/sgml/default.dsl  -ioutput.html.images   -D /usr/obj/source/contribute/doc/en_US.ISO8859-1/articles/pxe -c /source/contribute/doc/en_US.ISO8859-1/articles/pxe/../../../en_US.ISO8859-1/share/sgml/catalog -c /source/contribute/doc/en_US.ISO8859-1/articles/pxe/../../../share/sgml/catalog  -c /usr/local/share/sgml/docbook/dsssl/modular/catalog -c /usr/local/share/sgml/iso8879/catalog  -c /usr/local/share/sgml/docbook/catalog -c /usr/local/share/sgml/jade/catalog   -t sgml /source/contribute/doc/en_US.ISO8859-1/articles/pxe/article.sgml > article.html ||  (/bin/rm -f article.html && false)
/usr/local/bin/tidy -i -m -f /dev/null article.html
Can't open "/usr/home/parv/.tidyrc"
*** Error code 1 (ignored)
===> en/doc/articles/releng
groff -p -S -Wall -mtty-char -man branches.pic > branches.ps
/usr/local/bin/ps2epsi /source/contribute/doc/en_US.ISO8859-1/articles/releng/branches.ps /source/contribute/doc/en_US.ISO8859-1/articles/releng/branches.eps
Error: /invalidaccess in --.setdevice--
Operand stack:
   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   1   4   %oparray_pop   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1037/1476(ro)(G)--   --dict:0/20(G)--   --dict:68/200(L)--   --dict:19/30(L)--
Current allocation mode is local
Current file position is 8771
GNU Ghostscript 6.53: Unrecoverable error, exit code 1
/usr/local/bin/peps -p -r 100  -o branches.png branches.pic branches.eps
peps: branches.eps is not a valid EPS file.
*** Error code 4

Stop in /source/contribute/doc/en_US.ISO8859-1/articles/releng.
*** Error code 1


>How-To-Repeat:

updating either docs tree and/or ghostscript-gnu port may show above
problem during build.  i can produce it every time.

>Fix:


>Release-Note:
>Audit-Trail:

From: "Bruce A. Mah" <bmah@FreeBSD.ORG>
To: parv@pair.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: docs/37125: building in "www" dies due to ghostscript error 
Date: Tue, 16 Apr 2002 06:42:12 -0700

 If memory serves me right, parv@pair.com wrote:
 
 > ===> en/doc/articles/releng
 > groff -p -S -Wall -mtty-char -man branches.pic > branches.ps
 > /usr/local/bin/ps2epsi /source/contribute/doc/en_US.ISO8859-1/articles/releng
 > /branches.ps /source/contribute/doc/en_US.ISO8859-1/articles/releng/branches.
 > eps
 > Error: /invalidaccess in --.setdevice--
 > Operand stack:
 >    --nostringval--
 > Execution stack:
 >    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringv
 > al--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval-
 > -   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop  
 >  1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nos
 > tringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostri
 > ngval--   1   4   %oparray_pop   --nostringval--   --nostringval--   --nostri
 > ngval--
 > Dictionary stack:
 >    --dict:1037/1476(ro)(G)--   --dict:0/20(G)--   --dict:68/200(L)--   --dict
 > :19/30(L)--
 > Current allocation mode is local
 > Current file position is 8771
 > GNU Ghostscript 6.53: Unrecoverable error, exit code 1
 > /usr/local/bin/peps -p -r 100  -o branches.png branches.pic branches.eps
 > peps: branches.eps is not a valid EPS file.
 > *** Error code 4
 
 I see this as well, both during a release build and when simply trying
 to build an HTML version of the releng article.  (Actually, just invoking
 "ps2epsi branches.ps branch.eps" will trigger this bug as well, so it's
 pretty well localized.)  No idea what the problem is or how to fix it, 
 however.  :-(
 
 Bruce.
 
 

From: "Bruce A. Mah" <bmah@FreeBSD.ORG>
To: parv@pair.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: docs/37125: building in "www" dies due to ghostscript error 
Date: Tue, 16 Apr 2002 22:11:43 -0700

 Following up to myself:  ps2epsi seems to have broken at some point 
 between ghostscript-gnu-6.52_4 and ghostscript-gnu-6.53_1.  The 
 breakage affects all the files I've tried, including some from the 
 ghostscript examples/ directory.  Symptoms are identical to the 
 original PR.
 
 I *believe* that the problem lies somewhere within the gs executable; 
 the ps2epsi script and the ps2epsi.ps file it uses appear not to have 
 changed.
 
 We need to get this fixed because it's causing release builds to fall 
 over when they try to render the documentation.
 
 Bruce.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: bmah 
State-Changed-When: Sat Apr 20 13:49:23 PDT 2002 
State-Changed-Why:  
ghostscript-gnu-6.53_2 fixes this problem; it contains a  
patch to unbreak ps2epsi. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37125 
>Unformatted:
