Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155922 - PPD parsing failure in kdeprint from 3.5.2
Summary: PPD parsing failure in kdeprint from 3.5.2
Status: RESOLVED DUPLICATE of bug 148180
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-22 02:27 UTC by Fred Labrosse
Modified: 2007-03-16 00:12 UTC (History)
3 users (show)

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 Fred Labrosse 2006-11-22 02:27:19 UTC
Since emerging kde-3.5.2, whenever I try to configure an existing printer or create a new printer, I get parsing errors from kdeprint.  For example, as root, when trying to configure an existing printer, I get:

# kcmshell printers
kbuildsycoca running...
kdeprint: WARNING: PPD syntax error, PPD parse failed

If I try to change the driver (PPD file) of an existing printer, I get:

Wrong driver format.
/home/ffl/Canol.ppd(line 37): syntax error, unexpected ':'

The actual error and error line cycles as follows:

/home/ffl/Canol.ppd(line 37): syntax error, unexpected ':'
/home/ffl/Canol.ppd(line 1): syntax error, unexpected OPTION
/home/ffl/Canol.ppd(line 176): parser stack overflow

If I try to create a new printer, with whatever driver, I get:

kdeprint: WARNING: PPD syntax error, PPD parse failed

cupstestppd passes Canol.ppd (just a few warnings about initial default options).

The same happens with a variety of printers on a variety of machines.  In fact, all printers I tried fail in similar ways (all resolving to PPD parsing errors).

Upgrading to kde-3.5.5 did not solve the problem. I therefore think it is a gentoo bug, not a kde bug.  I did emerge -UavD world, just in case it was an update of a dependent package that did not happen, but that did not solve the problem.

Here is my emerge --info:

---------------------------------------------
Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 22 Nov 2006 09:02:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
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.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.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB fr"
MAKEOPTS="-j3"
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 Xaw3d acpi alsa amarok amd arts artswrappersuid auctex audiofile avi berkdb bitmap-fonts boost bzip2 cdf cdr cli cpudetection cracklib crypt css ctype cups dba dbus dhcp directfb dlloader dpms dri dvd dvdread effects elibc_glibc encode ethereal exif expat fam fbcon font-server foomaticdb force-cgi-redirect fortran ftp gd gdal gdbm geos gif gimpprint glut glx gmp gphoto2 gpm gps grass gstreamer gtk gtk2 gtkhtml guile hal hdf hdf5 i8x0 iconv idn imagemagick imlib inkjar input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jbig jpeg kde kernel_linux lcms libg++ libwww linguas_en_GB linguas_fr lm_sensors lzo lzw mad memlimit mikmod mime mjpeg mmap mng motif mozilla moznoirc moznomail mozsvg mp3 mpeg mplayer ncurses ngui nls nptl nptlonly nsplugin ogg opengl oss pam pcre pda pdf pdflib perl php plotutils plugin png posix povray ppds pppd preview-latex python qt qt3 qt4 quicktime readline real reflection reiser4 reiserfs samba sdl sensord session simplexml slang soap sockets spell spl sse ssl subversion svg svga svgz tcpd tetex tga threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev usb userland_GNU video_cards_i810 visualization vorbis wmf x86 xcomposite xemacs xine xml xml2 xorg xosd xpm xsl xv zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
-----------------------------------------------------------

I use cups-1.2.6.

What else can I try?

Cheers.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-11-23 09:02:38 UTC
Please use kde-3.5.5. Please reopen if it does not work with that version.
Comment 2 Fred Labrosse 2006-11-23 09:17:51 UTC
Please, read carefully what I wrote:

"Upgrading to kde-3.5.5 did not solve the problem."

(Sorry, my initial description was long.)
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-11-23 10:39:09 UTC
Not reproducible here.
Comment 4 Fred Labrosse 2006-11-24 00:49:06 UTC
In reply to comment #3, I have exactly the same behaviour on 3 different machines using different printers.  Plus the fact that it is so obvious for me that something does not work properly but that I am the only one having reported that makes me think this is a packaging issue (something should have been upgraded but has not been or vice versa, or incompatible packages have been installed.

But I haven't got a clue what could create that...
Comment 5 Guilherme Cirne 2006-12-02 13:25:31 UTC
Same problem here.
kdelibs-3.5.5-r5
cups-1.2.6
Comment 6 Guilherme Cirne 2006-12-03 06:51:48 UTC
I found the solution (at least for me) in this forum post: http://forums.gentoo.org/viewtopic-t-467803.html

I recompiled kdelibs with optimization -O2 and the PPD syntax error is now gone.
Comment 7 Fred Labrosse 2006-12-04 02:01:51 UTC
Recompiling kdelibs with -O2 instead of -O3 fixed it for me too.  But surely this is not a good enough fix, and is probably not a gentoo bug.  Anybody from kde reading this?
Comment 8 Gregg Casillo 2007-02-03 17:56:17 UTC
I ran into this same problem. kdelibs-3.5.6-r2 and cups-1.2.7. My printer is an Canon Pixma MP760, and I am using the PPD from this unsupported ebuild (the bjfilter one):
http://gentoo-wiki.com/Canon_Pixma_Series
Comment 9 Marios Andreopoulos 2007-03-01 18:17:01 UTC
I confirm this bug on x86 and AMD64 setups. It annoyed me for months until today!

In both platforms it went away by emerging kdelibs with -O2 optimization flags instead of -O3.


Current x86 platform info: kdelibs-3.5.6-r2
emerge --info:
Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r5-ElectraWS i686)
=================================================================
System uname: 2.6.19-gentoo-r5-ElectraWS i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 28 Feb 2007 11:00:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe -funit-at-a-time"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe -funit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distclean distlocks icc metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB el en el_GR"
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="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/personal"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aiglx alsa aom apache2 asf avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo calendar cddb cdparanoia cdr cli cracklib crypt cups dbus dio divx4linux doc dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal examples exif fam fbcon festival ffmpeg firefox flac flash fortran ftp gcj gd gdbm gif gimpprint gnutls gpm gps gtk2 hal icc iconv id3 ieee1394 imagemagick imlib ipv6 isdnlog jack java javascript jikes jpeg jpeg2k junit kde kdehiddenvisibility kdepim kdexdeltas kipi ladspa lame lcms ldap libg++ libsamplerate lirc lm_sensors mad mbox memlimit mhash midi mikmod mime ming mmx modplug mozilla mp3 mpeg mpeg2 mplayer msn musepack musicbrainz mysql mysqli nas ncurses network nfs nls nocd nptl nptlonly nsplugin nvidia obex ogg openexr opengl pam pch pcre pda pdf pdflib perl php plotutils png portaudio posix ppds pppd prelude pulseaudio python qt qt3 qt4 quicktime readline real recode reflection samba scanner sdl session slp smp sndfile snmp sockets socks5 sox spell spl sql sqlite sse sse2 ssl svg svga tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts vorbis win32codecs x264 x86 xcomposite xine xinerama xlib xml xml2 xorg xprint xscreensaver xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB el en el_GR" LIRC_DEVICES="pctv" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Current AMD64 platform info: kdelibs-3.5.6-r2
emerge --info:
Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5-Hephaestus x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5-Hephaestus x86_64 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 16 Feb 2007 15:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -pipe -funit-at-a-time"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -pipe -funit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache confcache distclean distlocks icc metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB el"
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"
PORTDIR_OVERLAY="/usr/portage/local/personal"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 aom apache2 asf avi bash-completion berkdb bitmap-fonts bluetooth boost browserplugin bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dio divx4linux dlloader doc dri dts dvd dvdr dvdread eds emboss encode esd ethereal examples exif fam fbcon ffmpeg firefox flac flash fortran ftp gcj gd gdbm gif gimpprint gnutls gpm gstreamer gtk2 hal iconv id3 ieee1394 imagemagick imlib isdnlog jack java javascript jpeg jpeg2k junit kde kdeenablefinal kdehiddenvisibility kdepim kdexdeltas kipi lame ldap libg++ libsamplerate lirc lm_sensors mad mbox memlimit mhash midi mikmod mime ming mozilla mp3 mpeg mpeg2 mpi mplayer msn musepack musicbrainz mysql mysqli nas ncurses nfs nls nocd nptl nptlonly nsplugin nvidia ogg openexr opengl pam pch pcre pda pdflib perl php plotutils png portaudio posix ppds pppd prelude pulseaudio python qt qt3 qt4 quicktime readline recode reflection samba scanner sdl session slp sndfile snmp sockets socks5 spell spl sql sqlite ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vhosts vorbis xcomposite xine xlib xml xml2 xorg xprint xv xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB el" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 10 Ernst Bachmann 2007-03-09 14:22:36 UTC
Maybe another hint to whats wrong:

The Parsing error messages vary all the time, even on the same PPD file. When I try to edit my printer in the Printers KControl module, I get:

"parser stack overflow"
"syntax error, unexpected QUOTED"
"syntax error, unexpected STRINGPART"

(again, ALL on the same PPD file, I even compared the temporary files it downloads from the cups server)

The PPD File itself is OK, according to "cupstestppd".

Since there are reports that compiling with "-O2" instead of "-O3" fixes the problem, could this be a GCC Bug?
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-03-16 00:12:00 UTC

*** This bug has been marked as a duplicate of bug 148180 ***