8.71.0: gs_lev2.ps tries to run non-existent gs_devpxl.ps

2010-09-08 Thread gabriele balducci
hello,

Apologies if I am missing some blatant point.

Just installed 8.71.0 and stumbled on what looks like a regression.

Upon:

ps2pdf foo.ps

I get:

Can't find (or open) initialization file (gs_devpxl.ps)
While reading gs_lev2.ps:
Error: /undefined in .uninstallpagedevice
Operand stack:
   (gs_lev2.ps)   (gs_devpxl.ps)   (gs_devpxl.ps)
Execution stack:
   %interp_exit   --nostringval--   --nostringval--   --nostringval--   
%array_continue   --nostringval--   --nostringval--   --nostringval--   false   
1   %stopped_push   --nostringval--   --nostringval--   .runexec2   
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push   
--nostringval--
Dictionary stack:
   --dict:770/1123(G)--   --dict:63/200(L)--   --dict:770/1123(G)--   
--dict:140/251(G)--
Last OS error: 2


It turns out that gs_lev2.ps is actually trying to run gs_devpxl.ps,
which is not there, hence the error.

According to Details8.htm:

2008-08-11T14:16:18.397362Z Ken Sharp

Move the interpretation of PostScript (and PDF) color spaces from 
PostScript into C. 

DETAILS:
This has required a large number of changes, there are a few new .c or 
.h files, a
number of PostScript files have been removed, and a few others 
simplified. A few
documentation '.htm' files have also been modified to reflect these 
changes.


[src/int.mak src/zpcolor.c src/zicc.c Resource/Init/gs_devn.ps
src/zcssepr.c Resource/Init/gs_cspace.ps src/zcie.c src/zicc.h
src/zcie.h src/zcspixel.c Resource/Init/gs_lev2.ps
Resource/Init/gs_ciecs3.ps Resource/Init/gs_sepr.ps src/zcolor.c
src/ifunc.h src/zfunc4.c src/zcsdevn.c src/zcolor.h
Resource/Init/gs_patrn.ps src/zfsample.c doc/Develop.htm
src/zfunc.c Resource/Init/gs_ll3.ps src/zcsindex.c doc/Psfiles.htm
Resource/Init/gs_icc.ps Resource/Init/gs_devpxl.ps src/gscolor2.h
Resource/Init/gs_init.ps Resource/Init/gs_devcs.ps
Resource/Init/gs_indxd.ps Resource/Init/gs_ciecs2.ps]

So, as I understand it, it is right that gs_devpxl.ps is not there,
but it is wrong that gs_lev2.ps tries to run it.
There are no calls to gs_devpxl.ps in 8.64.0 (the version I used
before upgrading)

Looking into gs_lev2.ps, I find other "wrong" (see above) calls:


% Add the level 2 color spaces
% DevicePixel is actually a LanguageLevel 3 feature; it is here for
% historical reasons.
%% Replace 1 (gs_devpxl.ps) 
(gs_devpxl.ps) runlibfile

%% Replace 1 (gs_ciecs2.ps)
(gs_ciecs2.ps) runlibfile

%% Replace 1 (gs_indxd.ps)
(gs_indxd.ps) runlibfile

%% Replace 1 (gs_sepr.ps)
(gs_sepr.ps) runlibfile

%% Replace 1 (gs_patrn.ps)
(gs_patrn.ps) runlibfile


I hope to have been of some use

Thanks a lot for maintaining such a precious and useful piece of code!


ciao
gabriele

-- 
Gabriele Balducci - Dipartimento di Scienze Chimiche - Via L. Giorgieri 1
I-34127 TRIESTE tel: I-040-5583957 fax: I-040-5583903 e-mail: baldu...@units.it
Please, if possible, don't send me MS Word or PowerPoint attachments
Why? See: http://www.gnu.org/philosophy/no-word-attachments.html



Re: 8.71.0: gs_lev2.ps tries to run non-existent gs_devpxl.ps

2010-09-08 Thread Didier Link
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le Wed, 08 Sep 2010 16:23:14 +0200,
gabriele balducci  a écrit :

> hello,

Hello gabriele,

> 
> Apologies if I am missing some blatant point.
> 
> Just installed 8.71.0 and stumbled on what looks like a regression.
> 
> Upon:
> 
> ps2pdf foo.ps
> 
> I get:
> 
> Can't find (or open) initialization file (gs_devpxl.ps)
> While reading gs_lev2.ps:
> Error: /undefined in .uninstallpagedevice
> Operand stack:
>(gs_lev2.ps)   (gs_devpxl.ps)   (gs_devpxl.ps)
> Execution stack:
>%interp_exit   --nostringval--   --nostringval--
> --nostringval--   %array_continue   --nostringval--
> --nostringval--   --nostringval--   false   1   %stopped_push
> --nostringval--   --nostringval--   .runexec2   --nostringval--
> --nostringval--   --nostringval--   2   %stopped_push
> --nostringval-- Dictionary stack: --dict:770/1123(G)--
> --dict:63/200(L)--   --dict:770/1123(G)--   --dict:140/251(G)-- Last
> OS error: 2
> 
> 
> It turns out that gs_lev2.ps is actually trying to run gs_devpxl.ps,
> which is not there, hence the error.
> 
[...]
> 
> I hope to have been of some use
> 
> Thanks a lot for maintaining such a precious and useful piece of code!
> 
> 
> ciao
> gabriele
> 

There is a duplicate of this file because of the cvs merge between GNU
and GPL versions, sorry for that, the "lib" directory is a little bit
populated with some old files.

Can you try to remove the "lib/gs_lev2.ps" from your installation, the
good file is in "Resource/init/gs_lev2.ps"

I investigate to remove completely obsoletes files from the main tree
and publish a 8.71.1 version as soon as possible.

Thanks to report the problem !

Regards

Didier

- -- 
Didier Link 
Jabber : didier_l...@jabber.fr
Web : http://www.famille-link.fr/

Clé GPG : 75BAC9EE
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAkyH5GwACgkQkyPwinW6ye67FACfXCQwJWYjanw8PkGXR7jVhs5D
5fYAoLDYuNJ6yjuuCz/IvzjFir9I8RuU
=LMbR
-END PGP SIGNATURE-


GNU ghostscript 8.71.1 released

2010-09-08 Thread Didier Link
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I'm pleased to announce the availability of a new GNU Ghostscript
maintenance release: gnu-ghostscript-8.71.1.

This release is an adaptation of GPL Ghostscript version 8.71, with
changes to make it compliant with GNU standards and policies.  It is
available from the GNU Ghostscript project page:
http://www.gnu.org/software/ghostscript/

This release include some bugs fixes and cosmetic changes over GNU
Ghostscript 8.71.0 :

* remove some obsoletes files to avoid resources finding errors
* --help and --version options now displaying the patch number

Happy printing !

Didier Link


- - - - -- 
Didier Link 
Jabber : didier_l...@jabber.fr
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAkyIKwoACgkQkyPwinW6ye7KRACdF/sODrExbpdUp57iqAax03fb
XHgAoIC1TdytwmP+iUCz5CSCaeZssBd+
=yYwg
-END PGP SIGNATURE-


Re: 8.71.0: gs_lev2.ps tries to run non-existent gs_devpxl.ps

2010-09-08 Thread gabriele balducci

hi didier,

thanks for the quick reply.

> There is a duplicate of this file because of the cvs merge between GNU
> and GPL versions, sorry for that, the "lib" directory is a little bit
> populated with some old files.
> 
> Can you try to remove the "lib/gs_lev2.ps" from your installation, the
> good file is in "Resource/init/gs_lev2.ps"
> 


after removing lib/gs_lev2.ps, gs now reads Resource/Init/gs_lev2.ps,
but I'm getting another error:

**#> 
GS_LIB=/tmp/gs-broken/usr/local/share/ghostscript/8.71/lib:/tmp/gs-broken/usr/local/share/ghostscript/8.71/Resource/Init
 strace -o /tmp/gs.strace /tmp/gs-broken/usr/local/bin/ps2pdf 000-root.ps
While reading gs_lev2.ps:
Error: /undefined in --get--
Operand stack:
   (gs_lev2.ps)   --dict:770/1123(G)--   colorspacedict
Execution stack:
   %interp_exit   --nostringval--   --nostringval--   --nostringval--   
%array_continue   --nostringval--   --nostringval--   --nostringval--   false   
1   %stopped_push   --nostringval--
Dictionary stack:
   --dict:770/1123(G)--   --dict:63/200(L)--   --dict:770/1123(G)--   
--dict:136/251(G)--
Current file position is 23920
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
gs_lev2.ps  --nostringval--  colorspacedict
###> 


hope this helps you.

ciao
gabriele

-- 
Gabriele Balducci - Dipartimento di Scienze Chimiche - Via L. Giorgieri 1
I-34127 TRIESTE tel: I-040-5583957 fax: I-040-5583903 e-mail: baldu...@units.it
Please, if possible, don't send me MS Word or PowerPoint attachments
Why? See: http://www.gnu.org/philosophy/no-word-attachments.html