pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: On-going issues with cups-2.0.3



On Tue, 16 Jun 2015, Tom Spindler (moof) wrote:

D [17/Jun/2015:09:27:04 +0800] [Job 16] Can't use 'defined(@array)'
(Maybe you should just omit the defined()?) at
/usr/pkg/libexec/cups/filter/foomatic-rip-hplip line 1658.

I'm not a perl programmer so I really have no idea how to fix this
problem.  But it certainly doesn't look like "omit the defined()" is
going to fix things.

It should, actually. There's probably a line like

 if (!defined(@foo)) { .....

just change that to
 if (! @foo) { .....

OK, the original code was

	if ((!defined(@{$dat->{'args'}})) ||
	    ($#{$dat->{'args'}} < 0)) {
	...
	} else {
	...
	}

I changed the 'if' as follows:

	if ((! @{$dat->{'args'}}) ||
	    ($#{$dat->{'args'}} < 0)) {


Now the printer produces a single page two short lines of text:

	%PDF-1.5
	%<upside-down-?>

and cups reports that the job is still "Connected to printer". Any further attempts to print just "stall", since the printer appears to be busy. As soon as I manually Cancel the job, the next job starts, and gets into the same state, and with the same output.

The /var/run/cups/access_log file contains only one line (per job):

localhost - - [17/Jun/2015:09:59:25 +0800] "POST /printers/Deskjet_2540_series HTTP/1.1" 200 49781 Print-Job successful-ok


I also notice in the build log for print/hplip that the foomatic-rip-hpijs filter is deprecated

...
checking for foomatic ppd install... yes
configure: WARNING: foomatic static ppd install is deprecated. Feature can be used as is. Fixes or updates will not be provided
checking for foomatic drv install... yes
configure: WARNING: foomatic dynamic ppd install is deprecated. Feature can be used as is. Fixes or updates will not be provided
checking for cups drv install... yes
checking for cups ppd install... yes
checking for foomatic-rip-hplip install... yes
configure: WARNING: foomatic-rip-hplip install is deprecated. Feature can be used as is. Fixes or updates will not be provided
...


Is there some other PPD file I should be using for this printer (HP DeskJet 2545)?



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index