Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 51038

Summary: Foomatic-configure crashes with error when trying to add printer to system
Product: Gentoo Linux Reporter: Chris <grooveman>
Component: [OLD] PrintingAssignee: Printing Team <printing>
Status: VERIFIED TEST-REQUEST    
Severity: minor CC: ajc, ivo.welch
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris 2004-05-14 05:51:10 UTC
I issue this on the command line:
foomatic-configure -s cups -p HP-LaserJet_8150 -c "smb://MYDOMAIN/MYSERVER/accthp8150" -n "accthp8150" -d Postscript

it crashes with this:
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.2/Foomatic/DB.pm line 3389.

I have done this many times on other (older) gentoo systems with no problems (installed this very printer with this very command)

I have tried renamaing the printer, I have tried installing other printers, always crashes -- whether local or network.

Printers are not installed.

net-print/foomatic-3.0.1
dev-lang/perl-5.8.2-r1
net-print/cups-1.1.20-r1

Cupsd is running.

Entire system is up to date as of today (5/14/2004).  No unstable packages installed.


Reproducible: Always
Steps to Reproduce:
1.Issue this command:
foomatic-configure -s cups -p HP-LaserJet_8150 -c "smb://MYDOMAIN/MYSERVER/accthp8150" -n "accthp8150" -d Postscript
2.Read error output: Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.2/Foomatic/DB.pm line 3389   (line # varies depending upon printer model)
3.Curse, swear, rant and rave then finally post to gentoo forum.  
4.After post to forum is ignored, then post bug :0)

Actual Results:  
Crashes.

Printer not installed.

Expected Results:  
My printer should have installed to cups
Comment 1 Chris 2004-05-14 11:12:29 UTC
Okay,

I unmerged foomatic and cups and remerged them.  Now the printers install, but I still get the error output.

That is very minor, however, since it seems to be working now...

Chris
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-05-14 13:48:15 UTC
*** Bug 51045 has been marked as a duplicate of this bug. ***
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-05 05:08:18 UTC
do you still get this error message?
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-04 09:21:41 UTC
can you still reproduce that?
Comment 5 Chris 2004-08-06 15:52:50 UTC
No.  Everything seems kosher now. 

Thanks!
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-22 06:01:52 UTC
-> close
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-22 06:02:00 UTC
*** Bug 63458 has been marked as a duplicate of this bug. ***
Comment 8 Matt Drew (RETIRED) gentoo-dev 2004-12-29 15:03:31 UTC
I am seeing this bug on an Athlon 700 (march=athlon), LaserJet 4L on a parallel port.  At first I thought it was related to not having IEEE1284 transport options in my kernel -- I rebuilt for that, rebooted, and it came back.  I also am seeing the behavior of "foomatic-configure crashes, but the printer gets configured".

net-print/foomatic-3.0.2
net-print/foomatic-filters-3.0.2
net-print/foomatic-db-engine-3.0.2
net-print/foomatic-db-20040302
dev-lang/perl-5.8.5-r2
sys-devel/libperl-5.8.5
dev-perl/XML-Parser-2.34
net-print/cups-1.1.20-r5

# foomatic-configure -s cups -p HP-LaserJet_4L -c file:/dev/lp0 -n lp -d hpijs

Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 1895

I also saw substitution error listed in the original bug, and I can sometimes reproduce it by substituting HP-LaserJet_4 for HP-LaserJet_4L in the command:

Use of uninitialized value in substition (s///) at /usr/lib/perl5/vendor_perl/5.8.5/Foomatic/DB.pm line 3427

I've re-emerged foomatic with no change in the "crashes but configures printer" behavior.  cupsd is running.  System is up to date as of today (29 Dec 04).

Reproducible: reliably.

Steps to Reproduce: see above.

Actual result: error message from foomatic-configure script, printer does get set up.

Expected results: no error messages.
Comment 9 Alex Chapman 2005-02-08 13:19:07 UTC
I'm getting this problem too. I've tried remerging cups, foomatic, foomatic-filters, foomatic-db, and foomatic-db-engine with no luck.

Here's the output I get:

# foomatic-configure -s cups -p Canon-S300 -c smb://username:password@joachim/CanonS300 -n CanonS300 -d gimp-print-ijs
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 1895.
Comment 10 Peter Humphrey 2005-04-08 08:31:12 UTC
I'm getting this error too on my ~amd64 box:

# foomatic-configure -s cups -p HP-DeskJet_870C -c file:/dev/lp0 -n DJ870Cxi -d hpijs
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.6/Foomatic/DB.pm line 3427.

But the printer is installed.

prh@wstn ~ $ emerge --info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r5 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr  5 2005, 14:31:04)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=opteron -mtune=opteron"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/xdm/Xservers /etc/fonts /etc/gconf /etc/rc.d /etc/rsync /etc/terminfo /etc/wget /etc/env.d"
CXXFLAGS="-O3 -march=opteron -mtune=opteron"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo             http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-z,now"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa bash-completion berkdb bitmap-fonts cdr crypt cups curl dvd font-server foomaticdb fortran gif gpm gtk imagemagick imlib ipv6 jp2 jpeg lzw lzw-tiff mp3 ncurses nls nptl opengl oss pam perl png ppds python readline ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales xml2 xpm xrandr xv zlib linguas_en_GB"
Unset:  ASFLAGS, CBUILD, CTARGET