Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197639 - x11-libs/gtk+-2.12.1 (ppc) : GIMP / Sylpheed / evince refused to print
Summary: x11-libs/gtk+-2.12.1 (ppc) : GIMP / Sylpheed / evince refused to print
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 14:51 UTC by oRo
Modified: 2007-11-05 18:24 UTC (History)
1 user (show)

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


Attachments
Patch file for printing in gtk applications (gtkcupsutils_type_fix.diff,663 bytes, patch)
2007-11-05 16:01 UTC, oRo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description oRo 2007-10-31 14:51:24 UTC
I just wanted to print some files in Gimp 2.4.0_rc3 and nothing happened (no message but no printing)
In Sylpheed 2.4.7, when I want to print a mail I've got this error message :
Too many failed attempts


Reproducible: Always

Steps to Reproduce:
1. In Sylpheed, opening a mail
2. Click menu File, select Print...
3. Selecting a real printer (not to a file), and click Print
4. "Too many failed attempts"

In Gimp, no message but not printing
Actual Results:  
Not printing


After setting Cups-1.2.12-r1 to debug2 level, I can see the con->data_remaining is set to 0, which is not possible

It's probably a bug from gtk+ 
Here's my error_log from cups

d [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient(lis=0x100623f0) 4 Clients = 0
D [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient: 8 from localhost (Domain)
d [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient: 8 connected to server on localhost:631
d [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient: Adding fd 8 to InputSet...
d [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8, used=0, file=-1 state=0
D [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8 POST /printers/HP-LaserJet-1100A HTTP/1.1
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: uri = "/printers/HP-LaserJet-1100A"...
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location /admin/conf Limit 7f
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location /admin Limit 7f
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location / Limit 7f
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: best = /
d [31/Oct/2007:12:56:03 +0100] cupsdAuthorize: con->uri="/printers/HP-LaserJet-1100A", con->best=0x10062890(/)
d [31/Oct/2007:12:56:03 +0100] cupsdAuthorize: Authorization=""
D [31/Oct/2007:12:56:03 +0100] cupsdAuthorize: No authentication data provided.
d [31/Oct/2007:12:56:03 +0100] cupsdIsAuthorized: con->uri="/printers/HP-LaserJet-1100A", con->best=0x10062890(/)
d [31/Oct/2007:12:56:03 +0100] cupsdIsAuthorized: level=AUTH_ANON, type=AUTH_NONE, satisfy=AUTH_SATISFY_ALL, num_names=0
d [31/Oct/2007:12:56:03 +0100] cupsdIsAuthorized: auth=AUTH_ALLOW...
d [31/Oct/2007:12:56:03 +0100] POST /printers/HP-LaserJet-1100A
d [31/Oct/2007:12:56:03 +0100] CONTENT_TYPE = application/ipp
d [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8 con->data_encoding=HTTP_ENCODE_LENGTH, con->data_remaining=0, con->file=-1
E [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8 IPP Read Error!
D [31/Oct/2007:12:56:03 +0100] cupsdSendError: 8 code=400 (Bad Request)
D [31/Oct/2007:12:56:03 +0100] cupsdCloseClient: 8
d [31/Oct/2007:12:56:03 +0100] cupsdCloseClient: Removing fd 8 from InputSet and OutputSet...
d [31/Oct/2007:12:56:04 +0100] select_timeout: 295 seconds to browse timeout a printer
Comment 1 oRo 2007-10-31 14:53:25 UTC
~ $ emerge --info
Portage 2.1.3.16 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r5 ppc)
=================================================================
System uname: 2.6.22-gentoo-r5 ppc 7455, altivec supported
Timestamp of tree: Wed, 31 Oct 2007 01:47:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR.UTF-8"
LINGUAS="fr"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa altivec berkdb bitmap-fonts bluetooth bogofilter bzip2 cdr cli cracklib crypt cups dbus dri dvd esd ffmpeg flac fortran gdbm gnome gpm gtk gtk2 iconv ipv6 isdnlog jpeg jpg live mad midi mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png ppc pppd python readline reflection session spl ssl svg tcpd tiff truetype-fonts type1-fonts unicode vorbis wavpack wma x264 xcb xinerama xorg xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-03 13:56:55 UTC
Does the patch in that bug fix your problem?  None of us have PPC64, so we can't test (and on amd64, sizeof(long) == 8)
Comment 4 oRo 2007-11-05 16:01:02 UTC
Created attachment 135254 [details, diff]
Patch file for printing in gtk applications

It solved the problem
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-05 18:24:32 UTC
Okay, fixed in 2.12.1-r1.