This is more a ghostscript than cups problem actually. I have this problem with all the ghostscript-7.05.5 ebuilds. When GS is emerged, the paths hard coded into the gs binary are the virtual portage paths and not the absolute root paths. Due to this wrong coding, the gs binary won't work as it can't find its lib/ files until you set the GS_LIB path correctly. However, when called from within cups during a printing session, GS_LIB seems to be ignored and gs falls back to the hard coded paths which of course are the wrong ones. Result: all printing attempts fail. You can find output of gs --help and emerge info below. Reproducible: Always Steps to Reproduce: 1. 2. 3. localhost root # gs --help ESP Ghostscript 7.05.5 (2002-09-02) Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved. Usage: gs [switches] [file1.ps file2.ps ...] Most frequently used switches: (you can use # in place of =) -dNOPAUSE no pause after page | -q `quiet', fewer messages -g<width>x<height> page size in pixels | -r<res> pixels/inch resolution -sDEVICE=<devname> select device | -dBATCH exit after last file -sOutputFile=<file> select output file: - for stdout, |command for pipe, embed %d or %ld for page # Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF Available devices: x11 x11alpha x11cmyk x11mono x11cmyk2 x11cmyk4 x11cmyk8 x11rg16x x11rg32x x11gray2 x11gray4 bbox bff bit bitcmyk bitrgb bmp16 bmp16m bmp256 bmp32b bmpa16 bmpa16m bmpa256 bmpa32b bmpamono bmpasep1 bmpasep8 bmpgray bmpmono bmpsep1 bmpsep8 ccr cfax cgm24 cgm8 cgmmono cif dfaxhigh dfaxlow epswrite faxg3 faxg32d faxg4 inferno jpeg jpeggray mag16 mag256 mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 pbm pbmraw pcx16 pcx24b pcx256 pcx2up pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw pkm pkmraw pksm pksmraw plan9bm png16 png16m png256 pnggray pngmono pnm pnmraw ppm ppmraw psgray psmono psrgb pswrite sgirgb sunhmono sxlcrt tiff12nc tiff24nc tiffcrle tiffg3 tiffg32d tiffg4 tifflzw tiffpack alc2000 alc4000 alc8500 alc8600 ap3250 appledmp atx23 atx24 atx38 bj10e bj10v bj10vh bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono cdeskjet cdj1600 cdj500 cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono chp2200 cljet5 cljet5c cljet5pr coslw2p coslwxl cp50 declj250 deskjet dj505j djet500 djet500c djet820c dl2100 dmprt dnj650c epl2050 epl2050p epl2120 epl5800 epl5900 epl6100 eps9high eps9mid epson epsonc escp escpage escpc fmlbp fmpr fs600 gdi hl1240 hl1250 hl7x0 hpdj1120c hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdjplus hpdjportable ibmpro imagen iwhi iwlo iwlq jetp3852 jj100 la50 la70 la75 la75plus laserjet lbp310 lbp320 lbp8 lex2050 lex3200 lex5700 lex7000 lips2p lips3 lips4 lips4v lj250 lj3100sw lj4dith lj4dithp lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d ljet4pjl ljetplus ln03 lp1800 lp1900 lp2000 lp2200 lp2563 lp3000c lp7700 lp8000 lp8000c lp8100 lp8200c lp8300c lp8300f lp8400f lp8500c lp8600 lp8600f lp8700 lp8800c lp8900 lp9300 lp9400 lp9600 lp9600s lq850 lx5000 lxm3200 lxm5700m m8510 md1xMono md2k md50Eco md50Mono md5k mj500c mj6000c mj700v2c mj8000c ml600 necp6 npdl oce9050 oki182 oki4w okiibm paintjet pcl3 photoex picty180 pj pjetxl pjxl pjxl300 pr1000 pr1000_4 pr150 pr201 pxlcolor pxlmono r4081 samsunggdi sj48 st800 stcolor t4693d2 t4693d4 t4693d8 tek4696 uniprint xes cups ijs omni stp nullpage Search path: . : /usr/share/ghostscript/7.05/lib/ : <- GS_LIB path, ignored by cupsd /var/tmp/portage/ghostscript-7.05.5-r2/image//usr/share/ghostscript/7.05/lib : /var/tmp/portage/ghostscript-7.05.5-r2/image//usr/share/ghostscript/fonts : /usr/share/fonts/default/ghostscript : /usr/share/fonts/default/Type1 : /usr/share/fonts/default/TrueType : /usr/lib/DPS/outline/base : /usr/openwin/lib/X11/fonts/Type1 : /usr/openwin/lib/X11/fonts/TrueType For more information, see /var/tmp/portage/ghostscript-7.05.5-r2/image//usr/share/ghostscript/7.05/doc/Use.htm. Report bugs to bug-gs@ghostscript.com, using the form in Bug-form.htm. localhost root # emerge info Portage 2.0.46-r12 (default-ppc-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-ppc-crypto ppc GENTOO_MIRRORS="http://gentoo.linux.no/ http://distro.ibiblio.org/gentoo " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="xv nls mitshm kde ppc gnome-libs berkdb slang readline tetex bonobo guile gpm pam libwww perl python qt opengl ldap cdr scanner X gtk gtk2 gnome gnome2 arts motif tcltk imlib ncurses sdl gif jpeg tiff png avi mpeg quicktime esd oss dvd oggvorbis encode xmms ssl socks5 tcpd mozilla spell truetype xml2 pdflib mysql gdbm cups java -alsa crypt" COMPILER="gcc3" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char" CXXFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char" ACCEPT_KEYWORDS="ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="cvs://doctomoe@gentoo.org:/home/cvsroot" FEATURES="ccache"
I get this error too. I cannot even call gs directly. Here is the output of gs: ESP Ghostscript 7.05 (2002-09-02) Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /typecheck in --.setglobal-- Operand stack: false _pdfStyleDicts --dict:0/4(L)-- Adobe-Japan1 --dict:2/4(L)-- false HeiseiMaruGo-W4-83pv-RKSJ-H Font (HeiseiMaruGo-W4-83pv-RKSJ-H) 15 HeiseiMaruGo-W4 83pv-RKSJ-H 83pv-RKSJ-H false --dict:0/10(G)-- --dict:0/10(G)-- 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-- 15 8 %oparray_pop 15 8 %oparray_pop 15 8 %oparray_pop --nostringval-- --nostringval-- --nostringval-- Dictionary stack: --dict:1046/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:30/89(L)-- --dict:75/160(L)-- --dict:24/78(L)-- --dict:0/4(L)-- --dict:2/4(L)-- Current allocation mode is local Last OS error: 2 Current file position is 29860 ESP Ghostscript 7.05.5: Unrecoverable error, exit code 1 -- This postscript file works a treat on a standard suse 8.1 gs (which is 7.0.5 too).
Created attachment 9561 [details] ghostscript-7.0.5.6-r1.ebuild
I guess you realised that the attached ghostscript-7.0.5.6-r1.ebuild doesn't fix anything... I wonder, does anyone have the slightest clue on how we could fix this?
will have a look .. sorry for the delay there was a problem with the mail alias so i didn't get the Bugzilla mails
is this bug still valid?
*** Bug 18084 has been marked as a duplicate of this bug. ***
a complete emerge log may be usefull ;)
Looks like it's working fine with ghostscript-7.05.6-r2 now...
-> close ;)