Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-17-2016, 12:04 PM
|
#1
|
Member
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 208
Rep:
|
error in foomatic-rip-hplip (14.2 cups-filters package)
After upgrading to 14.2 I fail to print. Jobs get queued but always fail with message "Filter failed". After changing cups logging to debug I find that everytime a job is sent to cups the filter /usr/lib64/cups/filter/foomatic-rip-hplip fails with this message:
Code:
Can\'t use \'defined(@array)\' (Maybe you should just omit the defined()?) at /usr/lib64/cups/filter/foomatic-rip-hplip line 1656.
I even reinstalled cups-filters-1.9.0-x86_64-2.txz just in case something had gone wrong in the upgrade, but the problem continues.
Any ideas? (I'm tempted to delve into foomatic-rip-hplip line 1656 to see the code that is failing...)
|
|
|
07-17-2016, 01:43 PM
|
#2
|
Senior Member
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 3,055
|
have you removed old 'foomatic-filters' package
ap/foomatic-filters-4.0.17-x86_64-1.txz: Removed.
The cups-filters package contains these programs.
|
|
|
07-17-2016, 02:41 PM
|
#3
|
Member
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 208
Original Poster
Rep:
|
I can't find any foomatic-filters package installed and there is an entry for foomatic-filters-4.0.12-x86_64-1 in /var/log/packages-removed. So, yes I have removed ap/foomatic-filters.
|
|
|
07-17-2016, 08:11 PM
|
#4
|
Senior Member
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 3,055
|
foomatic-rip-hplip is part of 'hplip' package try remove your printer and reconfigure.
Last edited by gmgf; 07-17-2016 at 11:38 PM.
|
|
|
07-18-2016, 10:04 AM
|
#5
|
Member
Registered: May 2007
Posts: 776
|
I've been seeing some weird behavior on upgrade, and so I cleared out my cups config completely and re-setup. I am still having a filter failure on my hp printer. I might be able to print locally though, but I might be out of ink at the same time. Anyway I will continue to try to look at this some after I get some ink.
I am not convinced this foomatic script is the culprit, as I never captured this error in the log. But anyway, looked at it and it was as expected. It's a construct that it now errors on strict in the latest Perl. I definitely would never use that idiom on checking for an empty array, so here is my fix:
Code:
--- /usr/lib64/cups/filter/foomatic-rip-hplip.bk 2016-07-18 07:56:11.531681146 -0700
+++ /usr/lib64/cups/filter/foomatic-rip-hplip 2016-07-18 07:43:55.106085240 -0700
@@ -1653,8 +1653,8 @@
## if nexessary.
my $dontparse = 0;
-if ((!defined(@{$dat->{'args'}})) ||
- ($#{$dat->{'args'}} < 0)) {
+if ((!defined($dat->{'args'})) ||
+ (!@{$dat->{'args'}})) {
# We don't have any options, so we do not need to parse the
# PostScript data
$dontparse = 1;
Doesn't help me at all though as expected.
BTW this is my error, and I've found nothing on it so far:
Code:
D [18/Jul/2016:07:44:11 -0700] [Job 11] Sending data to printer.
D [18/Jul/2016:07:44:11 -0700] [Job 11] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [18/Jul/2016:07:44:11 -0700] [Job 11] prnt/hpcups/HPCupsFilter.cpp 565: cupsRasterOpen failed, fd = 0
D [18/Jul/2016:07:44:11 -0700] [Job 11] Sent 0 bytes...
D [18/Jul/2016:07:44:11 -0700] [Job 11] PID 18099 (/usr/lib64/cups/filter/gziptoany) did not catch or ignore signal 13.
D [18/Jul/2016:07:44:11 -0700] [Job 11] Waiting for read thread to exit...
D [18/Jul/2016:07:44:11 -0700] [Job 11] PID 18100 (/usr/lib64/cups/filter/hpcups) stopped with status 1.
Last edited by the3dfxdude; 07-18-2016 at 10:44 AM.
|
|
1 members found this post helpful.
|
07-18-2016, 07:17 PM
|
#6
|
Member
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 208
Original Poster
Rep:
|
@the3dfxdude your patch fixed the error with the foomatic-rip-hplip filter, but I am still unable to print. (Originally I though this was working as I heard a page printing and prematurely marked this thread as solved, but other problems came up...)
After applying the patch and requeing a previous job I got a page out that said "If you can read this, you are using the wrong driver for your printer." I then decided to remove the printer and add it from scratch (using the USB cable). After adding the printer (setup went apparently without problems) I printed the test page and all I got out was a page with the PDF header:
Now when I try to print everything looks ok on the computer but nothing comes out of the printer. Cups error log has nothing (and I have it set to "debug"), cups page log has nothing, but cups access log says
Code:
localhost - - [18/Jul/2016:20:37:57 -0400] "POST /printers/Officejet_6500 HTTP/1.1" 200 31819 Print-Job successful-ok
Last edited by metageek; 07-18-2016 at 07:45 PM.
Reason: actually problem was not solved as initially thought...
|
|
|
07-18-2016, 10:11 PM
|
#7
|
Member
Registered: May 2007
Posts: 776
|
I got my ink (those things dry up fast), and yes, I am able to print locally. Are you starting your print job locally?
My filter error I mentioned above occurs when sending a print job across the network using ipp. It used to work before with Slackware 14.1. Even with both updated and then setup cleared and re-setup again, I get this issue. I went as far as intercepting the cups raster sent to hpcups, and found the locally submitted print job is correctly formatted cups raster, and the network submitted version is garbage (I figured out the actual cups error by changing C code to report the error instead of a silly thing that is irrelevant). Anyhow, if this is not related, I'll deal with this on my own time.
How did you set up your driver? Something still seems broken in your print filters.
|
|
|
07-19-2016, 05:14 AM
|
#8
|
Senior Member
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159
|
Quote:
Originally Posted by the3dfxdude
I got my ink (those things dry up fast), and yes, I am able to print locally. Are you starting your print job locally?
My filter error I mentioned above occurs when sending a print job across the network using ipp. It used to work before with Slackware 14.1. Even with both updated and then setup cleared and re-setup again, I get this issue. I went as far as intercepting the cups raster sent to hpcups, and found the locally submitted print job is correctly formatted cups raster, and the network submitted version is garbage (I figured out the actual cups error by changing C code to report the error instead of a silly thing that is irrelevant). Anyhow, if this is not related, I'll deal with this on my own time.
How did you set up your driver? Something still seems broken in your print filters.
|
the3dfxdude --
Sounds like two different problems in this thread ...
The solution in this link ( and I believe there have been a couple other 'recent' threads ) may help your network printing via ipp:
http://www.linuxquestions.org/questi...-a-4175582086/
Cups v2.1.4 ( Slackware 14.2 ) clients cannot print to cups <= v1.5 servers via ipp without some additional configs.
-- kjh
|
|
|
07-19-2016, 09:45 AM
|
#9
|
Member
Registered: May 2007
Posts: 776
|
Quote:
Originally Posted by kjhambrick
Cups v2.1.4 ( Slackware 14.2 ) clients cannot print to cups <= v1.5 servers via ipp without some additional configs.
-- kjh
|
That is NOT what I am doing:
Quote:
Even with both updated and then setup cleared and re-setup again, I get this issue.
|
Both machines are on Slackware 14.2 with cups 2.1.4.
|
|
|
07-19-2016, 08:28 PM
|
#10
|
Member
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 208
Original Poster
Rep:
|
Same thing here, I'm only printing from one machine on Slackware 14.2 with CUPS 2.1.4. My printer is on wifi and was setup new using the USB cable with HPLIP. Now it doesn't print and I get no error message.
|
|
|
07-19-2016, 08:33 PM
|
#11
|
Member
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 208
Original Poster
Rep:
|
Quote:
Originally Posted by the3dfxdude
How did you set up your driver? Something still seems broken in your print filters.
|
As I mentioned earlier, this was setup through HPLIP with the cable, then using as wifi. It is a HP OfficeJet 6500 and is using the URL hp:/net/Officejet_6500_E710n-z?ip=10.10.10.3
|
|
|
All times are GMT -5. The time now is 01:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|