Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139560 - Unknown device: gdi / Unrecoverable error: undefined in .uninstallpagedevice
Summary: Unknown device: gdi / Unrecoverable error: undefined in .uninstallpagedevice
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 08:07 UTC by Christopher Cprek
Modified: 2006-07-23 19:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Cprek 2006-07-07 08:07:59 UTC
I've done a completely new emerge of my gentoo system to clean out some of the cruft over the past year or two. CUPS previously worked with my printer and configuration files and I copied over those exact same configuration files first, as well as reconfiguring my printers from scratch. 

This is cups-1.1.23-r8, emerged from a freshly installed version of Gentoo 2006.0. Here are relevant packages and use flags that are emerged:

net-print/cups-1.1.23-r8  USE="nls pam ssl -gnutls -samba -slp" 0 kB
net-print/foomatic-3.0.2  0 kB
net-print/foomatic-filters-3.0.2-r1  USE="cups -samba" 0 kB
net-print/foomatic-db-20050910  USE="cups ppds" 0 kB

The printer is a Samsung ML-1740, and I've used both the driver supplied with the printer as well as the driver supplied in foomatic (they are the same driver, but just to be sure). 

Here's the error I get every time I attempt to print a test page:

D [06/Jul/2006:21:57:05 -0400] [Job 10]
D [06/Jul/2006:21:57:05 -0400] [Job 10] -----------
D [06/Jul/2006:21:57:05 -0400] [Job 10] New page:  1 1
D [06/Jul/2006:21:57:05 -0400] [Job 10] Inserting option code into "PageSetup" section.
D [06/Jul/2006:21:57:05 -0400] [Job 10] No page header or page header not DSC-conforming
D [06/Jul/2006:21:57:05 -0400] [Job 10] Found: %%BeginFeature: *HalftoningAlgorithm Accurate
D [06/Jul/2006:21:57:05 -0400] [Job 10] Option: HalftoningAlgorithm=Accurate --> Option will be set by PostScript interpreter
D [06/Jul/2006:21:57:05 -0400] [Job 10] Stopping search for page header options
D [06/Jul/2006:21:57:05 -0400] [Job 10] Found:
D [06/Jul/2006:21:57:05 -0400] [Job 10] 2 copy moveto                           % Move to x & y
D [06/Jul/2006:21:57:05 -0400] [Job 10] --> Output goes directly to the renderer now.
D [06/Jul/2006:21:57:05 -0400] [Job 10]
D [06/Jul/2006:21:57:05 -0400] [Job 10]
D [06/Jul/2006:21:57:05 -0400] [Job 10] Starting renderer
D [06/Jul/2006:21:57:05 -0400] [Job 10] JCL: <job data>
D [06/Jul/2006:21:57:05 -0400] [Job 10]
D [06/Jul/2006:21:57:05 -0400] [Job 10] renderer PID kid4=23838
D [06/Jul/2006:21:57:05 -0400] [Job 10] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=gdi -sOutputFile=- - | perl -p -e 's/PJL PAGE LETTER/PJL PAGE LETTER/; s/PJL PAGE (\S*) AUTO/PJL PAGE $1 AUTO/; s/PJL SET TONERSAVE = OFF/PJL SET TONERSAVE = OFF\r\n\@PJL SET ECONOMODE = OFF/; s/PJL SET PAPERTYPE = NORMAL/PJL SET PAPERTYPE = NORMAL/; s/PJL SET DENSITY = 1/PJL SET DENSITY = 3/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET RET = OFF\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET JAMRECOVERY = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET REPRINT = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET ALTITUDE = OFF\r\n$1/; s/PJL COPIES = 1/PJL COPIES = 1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT TIMEOUT = 15\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT POWERSAVE = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT POWERSAVETIME = 5\r\n$1/; '
D [06/Jul/2006:21:57:05 -0400] [Job 10]
D [06/Jul/2006:21:57:05 -0400] [Job 10] Closing renderer
D [06/Jul/2006:21:57:05 -0400] [Job 10] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=gdi' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
D [06/Jul/2006:21:57:05 -0400] [Job 10] Unknown device: gdi
D [06/Jul/2006:21:57:05 -0400] [Job 10] Unrecoverable error: undefined in .uninstallpagedevice
D [06/Jul/2006:21:57:05 -0400] [Job 10] Operand stack:
D [06/Jul/2006:21:57:05 -0400] [Job 10] defaultdevice
D [06/Jul/2006:21:57:05 -0400] [Job 10] KID3 exited with status 0
D [06/Jul/2006:21:57:05 -0400] [Job 10] tail process done writing data to STDOUT
D [06/Jul/2006:21:57:05 -0400] [Job 10] KID4 exited with status 0
D [06/Jul/2006:21:57:05 -0400] [Job 10] Renderer exit stat: 0
D [06/Jul/2006:21:57:05 -0400] [Job 10] KID4 finished
D [06/Jul/2006:21:57:05 -0400] [Job 10] KID3 finished
D [06/Jul/2006:21:57:05 -0400] [Job 10] Renderer process finished
D [06/Jul/2006:21:57:05 -0400] [Job 10]
D [06/Jul/2006:21:57:05 -0400] [Job 10] Closing foomatic-rip.
D [06/Jul/2006:21:57:05 -0400] UpdateJob: job 10, file 0 is complete.
D [06/Jul/2006:21:57:05 -0400] CancelJob: id = 10
D [06/Jul/2006:21:57:05 -0400] StopJob: id = 10, force = 0
D [06/Jul/2006:21:57:05 -0400] StopJob: printer state is 3

***The important part here seems to be:
D [06/Jul/2006:21:57:05 -0400] [Job 10] Unknown device: gdi
D [06/Jul/2006:21:57:05 -0400] [Job 10] Unrecoverable error: undefined in .uninstallpagedevice

I'm not sure why CUPS would have gdi as an unknown device and/or why it's undefined in .uninstallpagedevice. I've tried troubleshooting with various USE flags. It's chronicled here: http://forums.gentoo.org/viewtopic-t-477806.html
It was suggested that I file a bug report since I've exhausted all over options. 

Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 avi bash-completion berkdb bitmap-fonts cdr cjk cli crypt cups dlload dlloader dri dvd eds emacs emboss encode foomaticdb fortran gif gimpprint gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jack java javascript jpeg lzw lzw-tiff mp3 mpeg ncurses nls nptl nvidia ogg openal opengl pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session sox spell spl ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis xmms xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christopher Cprek 2006-07-08 08:32:05 UTC
It looks like this issue is resolved by emerging net-print/cups-1.2.1-r2.

ACCEPT_KEYWORDS="~amd64" emerge cups
Comment 2 Maxim Didenko 2006-07-23 19:27:51 UTC
net-print/cups-1.2.1-r2 does not fix the problem for me. I have the same errors in /var/log/cups/erorr_log :


D [23/Jul/2006:22:08:27 -0400] [Job 17] -----------
D [23/Jul/2006:22:08:27 -0400] [Job 17] New page:  1 1
D [23/Jul/2006:22:08:27 -0400] [Job 17] Inserting option code into "PageSetup" section.
D [23/Jul/2006:22:08:27 -0400] [Job 17]
D [23/Jul/2006:22:08:27 -0400] [Job 17] Found: %%BeginPageSetup
D [23/Jul/2006:22:08:27 -0400] [Job 17] Found: %%EndPageSetup
D [23/Jul/2006:22:08:27 -0400] [Job 17] End of page header
D [23/Jul/2006:22:08:27 -0400] [Job 17] Stopping search for page header options
D [23/Jul/2006:22:08:27 -0400] [Job 17] Found:
D [23/Jul/2006:22:08:27 -0400] [Job 17] wheelSize -0.4 mul 0 rlineto    % Left side...
D [23/Jul/2006:22:08:27 -0400] [Job 17] --> Output goes directly to the renderer now.
D [23/Jul/2006:22:08:27 -0400] [Job 17]
D [23/Jul/2006:22:08:27 -0400] [Job 17]
D [23/Jul/2006:22:08:27 -0400] [Job 17] Starting renderer
D [23/Jul/2006:22:08:27 -0400] [Job 17] JCL: <job data>
D [23/Jul/2006:22:08:27 -0400] [Job 17]
D [23/Jul/2006:22:08:27 -0400] [Job 17] renderer PID kid4=32508
D [23/Jul/2006:22:08:27 -0400] [Job 17] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=gdi -sOutputFile=- - | perl -p -e 's/PJL PAGE LETTER/PJL PAGE LETTER/; s/PJL PAGE (\S*) AUTO/PJL PAGE $1 AUTO/; s/PJL SET TONERSAVE = OFF/PJL SET TONERSAVE = OFF\r\n\@PJL SET ECONOMODE = OFF/; s/PJL SET PAPERTYPE = NORMAL/PJL SET PAPERTYPE = NORMAL/; s/PJL SET DENSITY = 1/PJL SET DENSITY = 3/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET RET = OFF\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET JAMRECOVERY = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET REPRINT = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL SET ALTITUDE = OFF\r\n$1/; s/PJL COPIES = 1/PJL COPIES = 1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT TIMEOUT = 15\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT POWERSAVE = ON\r\n$1/; s/(\@PJL ENTER LANGUAGE)/\@PJL DEFAULT POWERSAVETIME = 5\r\n$1/; '
D [23/Jul/2006:22:08:27 -0400] [Job 17]
D [23/Jul/2006:22:08:27 -0400] [Job 17] Closing renderer
D [23/Jul/2006:22:08:27 -0400] [Job 17] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=gdi' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
D [23/Jul/2006:22:08:27 -0400] [Job 17] Unknown device: gdi
D [23/Jul/2006:22:08:27 -0400] [Job 17] Unrecoverable error: undefined in .uninstallpagedevice
D [23/Jul/2006:22:08:27 -0400] [Job 17] Operand stack:
D [23/Jul/2006:22:08:27 -0400] [Job 17] defaultdevice
D [23/Jul/2006:22:08:27 -0400] [Job 17] tail process done writing data to STDOUT
D [23/Jul/2006:22:08:27 -0400] [Job 17] KID4 finished
D [23/Jul/2006:22:08:27 -0400] [Job 17] KID3 exited with status 0
D [23/Jul/2006:22:08:27 -0400] [Job 17] KID4 exited with status 0
D [23/Jul/2006:22:08:27 -0400] [Job 17] Renderer exit stat: 0
D [23/Jul/2006:22:08:27 -0400] [Job 17] KID3 finished
D [23/Jul/2006:22:08:27 -0400] [Job 17] Renderer process finished
D [23/Jul/2006:22:08:27 -0400] [Job 17]
D [23/Jul/2006:22:08:27 -0400] [Job 17] Closing foomatic-rip.
D [23/Jul/2006:22:08:27 -0400] [Job 17] File 0 is complete.


My printer is Samsung ML-1740. These are packages I have:

net-print/foomatic-filters-ppds-20060720
net-print/foomatic-db-ppds-20060720
net-print/foomatic-db-engine-3.0.20060720  USE="perl -minimal"
net-print/foomatic-db-20060720 
net-print/foomatic-3.0.20060601  USE="foomaticdb ppds"
net-print/cups-1.2.1-r2  USE="jpeg nls pam png ppds samba ssl tiff -dbus -gnutls -slp"

Portage 2.1.1_pre3-r3 (default-linux/x86/2005.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r2 i686)
=================================================================
System uname: 2.6.17-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr cgi cli crypt cups dga dlloader dri dts dv dvd dvdr dvdread eds emboss encode exif fam fame fastcgi flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal howl iconv ieee1394 imlib isdnlog java javascript jpeg kde kdeenablefinal libcaca libg++ libwww live mad matroska mikmod mmx mmxext mp3 mpeg mythtv ncurses nls nptl nptlonly nsplugin nvidia oav ogg oggvorbis opengl pam pcre pdf pdflib perl png postgres ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc samba sdl server session spell spl sqlite sqlite3 sse sse2 ssl subtitles svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd visualization vorbis win32codecs xanim xcomposite xine xml xml2 xmms xorg xsl xv xvid zeroconf zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en linguas_ru userland_GNU video_cards_nvidia video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS