Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136502 - CUPS 1.2.1 does not work for HP Printers.
Summary: CUPS 1.2.1 does not work for HP Printers.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-11 18:55 UTC by Jon
Modified: 2006-06-17 04:03 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 Jon 2006-06-11 18:55:18 UTC
Hi,

I marked this one as critical because I cannot use my printer at all. I decided to try out the new CUPS 1.2.1, and these are the steps I took to get it:

I wanted to redo my system from the start so I thought this would be a perfect time to do so, so a couple of days ago, I reformatted and started from Stage 1. I made sure that CUPS 1.2.1 was unmasked. I used ~x86 so I would get KDE 3.5.3. By the time I got to the KDE install, I was able to use the kdelibs-3.5.3-r1 ebuild with the CUPS 1.2 fixes in it. I mention this so you know that my whole system was linked to CUPS 1.2.1, well, anything that needed it. :) I also unmasked the latest HPLIP. So, I have everything new.

I tried adding a printer in Control Center. When it came time to select my printer, there were two options: HP DeskJet 970C and HP DeskJet 970C HPIJS. If I were to choose the HPIJS driver, I would get a popup message saying this:
Unable to load the requested driver:
/usr/share/cups/model/foomatic-ppds/HP-Deskjet_970C-hpijs.ppd(line 141): parser stack overflow.

However, if I would go and choose the driver without the HPIJS on the end and click next, I would get a list of drivers for various things, like gimp-print and so forth, but there is one that is recommended, the one that has (foomatic + hpijs) in it. However, I would then get the message:
Unable to load the requested driver:
Unable to create the Foomatic driver [HP-Deskjet_970C,hpijs]. Either that driver does not exist, or you don't have the required permissions to perform that operation.

But, I was in Administrator mode. :S That is confusing and I checked and saw that the driver was there. So, does it look in the wrong directory when you want to create the driver? That's my only guess. Either that, or there is a wrong permission somewhere that even denies root. :S

I was talking with genstef on IRC about this andwe tried various other things. He told me to update the hpijs drivers in the hplip ebuild. I did that, and I also bumped foomatic-db foomatic-db-engine and foomatic-filters as well. All four of the foomatic files were now version 20060611. All the patches worked and everything compiled, so I restarted hplip and cupsd and tried again. I got the same errors. -_- I have even tried to install via the web interface, but CUPS gives the error that: hp:/net/DESKJET_970C?ip=192.168.1.69 is an invalid URI. <_< So, something is wrong here. :(

I read this bug http://bugs.gentoo.org/show_bug.cgi?id=126256 so I downgraded to a version that's not hard masked, I bumped the hpijs up to the latest in the ebuild, restarted cupsd and hplip, and I still get the same error, so I don't think this is the same error as that link. I think it has to do with something in CUPS 1.2.1 not liking HPLIP at all.

My info:
Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r4, 2.6.16-emission4 i686)
=================================================================
System uname: 2.6.16-emission4 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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.93
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -frename-registers -fweb -pipe"
DISTDIR="/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j1"
PKGDIR="/portage/distfiles/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="/portage/gentoo"
PORTDIR_OVERLAY="/portage/main-overlay /portage/java-experimental /portage/nx-overlay /portage/pertty-overlay /portage/kernel-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aalib acl acpi alsa amarok apache2 apm arts asf async avi bash-completion berkdb bitmap-fonts bzip2 cairo ccache cdda cddb cdinstall cdparanoia cdrom cli cpudetection crypt css cups curl dba dbus dmx dri dts dvb dvd dvdr dvdread elf emboss encode enscript esd exif expat extrafilters fastbuild ffmpeg firefox flac foomaticdb gd gdbm gif gimpprint glep glibc-omitfp glitz glut glx gpgme gpm graphviz gs gstreamer gtk gtk2 hal idn ieee1394 imagemagick imlib imlib2 input_devices_keyboard input_devices_mouse isdnlog ithreads java javascript jp2 jpeg jpeg2k kde kdeenablefinal lcms libwww mad md5sum mikmod mime mmap mmx mmxext mng mono motif moznocompose moznoirc moznomail moznoxft mozsvg mp3 mp4live mpeg mpeg2 mpeg4 mplayer mysql ncurses nls no-old-linux nocd nptl nptlonly nsplugin nvidia offensive ogg on-the-fly-crypt opengl pam pcre pdf pdflib perl pic png ppds pppd python qt quicktime rdesktop readline real reflection samba sblive sdk sdl session slang smime snmp spamassassin spell spl sse sse2 ssl subversion svg swat sysfs syslog szip tcltk tcpd threads tidy tiff toolbar truetype truetype-fonts type1 type1-fonts udev userlocales video_cards_none video_cards_nv video_cards_nvidia visualization vorbis webdav win32codecs wmf wxwindows xcomposite xine xinerama xml xmlrpc xorg xpm xrandr xscreensaver xv xvid zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

I hope this is enough info.

Cheers.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-14 15:16:36 UTC
Have you actually tried upgrading the hpijs ppds that you are using?

http://www.linuxprinting.org/download/foomatic/foomatic-db-hpijs-current.tar.gz

I suspect the new ones might work better.

Regards,
Stefan
Comment 2 Francois Chenier 2006-06-17 04:02:10 UTC
(In reply to comment #0)
Just FYI, no problem here with ...

  cups-1.2.1-r1
  hplip-1.6.6
  foomatic-db-engine-3.0.20060601
  foomatic-filters-3.0.20060601

I have a PhotoSmart 1115 printer. Not sure it makes a difference but I'm a Gnome user.

Cheers.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-17 04:03:57 UTC
assume it is fixed in hplip-1.6.6, the changelog said something about cups-1.2 ;)