Regression in CUPS 1.4.7: printers no longer visible with HTTP

Vincent Lefevre vincent-news at vinc17.net
Mon Aug 1 02:37:16 PDT 2011


Hi,

I've reported the following bug that occurs in Debian/sid:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635096

After upgrading from 1.4.6-11+b1 to 1.4.7-1, I get errors like:

ypig:~> lpq -Plip-multi-3
lpq: Unknown destination "lip-multi-3"!

i.e. the printers are no longer visible. The bug is in the library
(libcups2 package).

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635096#15 shows an
excerpt of the differences between the strace with 1.4.6 and 1.4.7.

Is this a known bug and is there a patch?

Note: I've tried to rebuild the package with debug information but
the compilation fails in debug.c for both 1.4.6 and 1.4.7, e.g.

Compiling debug.c...
gcc  -Wall -Wno-format-y2k -fPIC -g -fstack-protector -D_GNU_SOURCE -Ifontembed -I.. -D_CUPS_SOURCE -I/usr/include/poppler -I/usr/include/poppler -I/usr/include/poppler  -g -O2 -g -O2 -Wall -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -DDEBUG -D_REENTRANT    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE   -c -o debug.o debug.c
debug.c: In function ???_cups_debug_printf???:
debug.c:428:5: warning: implicit declaration of function ???pthread_mutex_lock??? [-Wimplicit-function-declaration]
debug.c:428:25: error: ???debug_mutex??? undeclared (first use in this function)
debug.c:428:25: note: each undeclared identifier is reported only once for each function it appears in
debug.c:466:5: warning: implicit declaration of function ???pthread_mutex_unlock??? [-Wimplicit-function-declaration]
debug.c:522:8: warning: ignoring return value of ???write???, declared with attribute warn_unused_result [-Wunused-result]
make[2]: *** [debug.o] Error 1
make[2]: Leaving directory `/home/vlefevre/software/cups-1.4.6/cups'

Indeed some parts are not protected by

#ifdef HAVE_PTHREAD_H

Regards,

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)




More information about the cups mailing list