LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-17-2016, 01:04 PM   #1
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 166

Rep: Reputation: 31
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...)
 
Old 07-17-2016, 02:43 PM   #2
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,091

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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.
 
Old 07-17-2016, 03:41 PM   #3
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 166

Original Poster
Rep: Reputation: 31
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.
 
Old 07-17-2016, 09:11 PM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,091

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
foomatic-rip-hplip is part of 'hplip' package try remove your printer and reconfigure.

Last edited by gmgf; 07-18-2016 at 12:38 AM.
 
Old 07-18-2016, 11:04 AM   #5
the3dfxdude
Member
 
Registered: May 2007
Posts: 589

Rep: Reputation: 260Reputation: 260Reputation: 260
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 11:44 AM.
 
1 members found this post helpful.
Old 07-18-2016, 08:17 PM   #6
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 166

Original Poster
Rep: Reputation: 31
@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:
Code:
%PDF-1.3
%?
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 08:45 PM. Reason: actually problem was not solved as initially thought...
 
Old 07-18-2016, 11:11 PM   #7
the3dfxdude
Member
 
Registered: May 2007
Posts: 589

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
 
Old 07-19-2016, 06:14 AM   #8
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 1,540

Rep: Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976Reputation: 976
Quote:
Originally Posted by the3dfxdude View Post
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
 
Old 07-19-2016, 10:45 AM   #9
the3dfxdude
Member
 
Registered: May 2007
Posts: 589

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by kjhambrick View Post

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.
 
Old 07-19-2016, 09:28 PM   #10
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 166

Original Poster
Rep: Reputation: 31
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.
 
Old 07-19-2016, 09:33 PM   #11
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 166

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by the3dfxdude View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Print error : "foomatic-rip-hplip failed" Thomas Lemmens Zenwalk 3 05-25-2012 03:08 PM
[SOLVED] Help!!!!!!!!!!!!!! How can i install foomatic-rip-hplip in Mandriva? tailinlinux Linux - Software 10 03-11-2011 10:14 PM
Cups/foomatic-rip questions. Shodan30 Linux - Software 5 02-02-2011 08:50 AM
[SOLVED] cups "/usr/lib/cups/filter/foomatic-rip failed" error wufo Slackware 4 01-31-2010 03:20 PM
EPSON Stylus C82 not working even after ins CUPS and Foomatic filters cevjr Linux - Hardware 8 03-18-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration