LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-09-2013, 06:04 AM   #1
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Rep: Reputation: Disabled
[request] CUPS 1.6.x


CUPS 1.5.x has a bug related to kernel usblp module. Usblp module conflicts with CUPS usb backend. This results some usb printers not working correctly or not working at all. In CUPS 1.6.x this bug was fixed. So it would be good to upgrade to CUPS version 1.6.x and add cups-filters package.
 
Old 10-09-2013, 08:40 AM   #2
mattallmill
Member
 
Registered: Nov 2009
Location: Salina,Kansas
Distribution: Slackware64-current
Posts: 207

Rep: Reputation: 33
Quote:
Originally Posted by Raveriux View Post
CUPS 1.5.x has a bug related to kernel usblp module. Usblp module conflicts with CUPS usb backend. This results some usb printers not working correctly or not working at all. In CUPS 1.6.x this bug was fixed. So it would be good to upgrade to CUPS version 1.6.x and add cups-filters package.
One of LQ's regular posters, willysr, has a SlackBlog, and he also has a SlackHacks repository, and on it he has a SlackBuild for the newest cups package, and also the cups-filters package, if you feel up to the task of building it yourself. It's fairly painless; I've done it myself a time or two.

Hope this helps.

Regards,

Matt
 
1 members found this post helpful.
Old 10-09-2013, 10:50 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,617

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Yes, i have cups 1.6 and cups-filters on my SlackHacks repository and i have talked about this with Pat, but it's kinda too late for cups 1.6 to be included in Slackware 14.1.

Another reason to avoid 1.6 for now is that it requires cups-filters, which in turns requires avahi (which requires libdaemon) and qpdf, meaning adding new dependencies just to add one package: cups 1.6.

Perhaps this could be added later on next next Slackware release (14.2 or 15.0). In the meantime, feel free to use my SlackBuild script to upgrade to cups 1.6.4. I have been using it for some time and it's working well
 
1 members found this post helpful.
Old 10-09-2013, 02:43 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
Originally Posted by Raveriux View Post
CUPS 1.5.x has a bug related to kernel usblp module.
Is something causing usblp to be loaded? As far as I know, it's obsolete. And there's also a patch in Slackware's CUPS package to fix this (if it's a different bug, a reference would be good). Here CUPS detects usblp and unloads it if needed.

Otherwise, what Willy said.
 
Old 10-09-2013, 02:56 PM   #5
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by volkerdi View Post
Is something causing usblp to be loaded? As far as I know, it's obsolete. And there's also a patch in Slackware's CUPS package to fix this (if it's a different bug, a reference would be good). Here CUPS detects usblp and unloads it if needed.

Otherwise, what Willy said.
CUPS that are shiped with slackware wont work with usb printers until usblp module is blacklisted. tested on two different mashines ant two different printers.
 
Old 10-09-2013, 04:03 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Tested here with a Canon MP620 attached via USB. The usblp module does load, but the printer is detected by CUPS and works properly. We did run into that problem before, but the patch that was added to CUPS was supposed to take care of it (and does here).

Still, if you're finding that the problem is fixed for you by blacklisting usblp, there's probably no harm in adding a blacklist file for that to the CUPS package.
 
Old 10-09-2013, 05:19 PM   #7
mancha
Member
 
Registered: Aug 2012
Posts: 361

Rep: Reputation: Disabled
@Raveriux:

Please test my improved patch for CUPS 1.5.4 and let me know if it fixes your issue.

Edit cups.SlackBuild and replace:

Code:
zcat $CWD/usb-backend-reset-after-job-only-for-specific-devices.patch.gz | patch -p0 --verbose || exit 1
with:

Quote:
patch -p1 --verbose < $CWD/cups-1.5.4-usb-quirks.diff || exit 1
 
1 members found this post helpful.
Old 10-17-2013, 05:09 AM   #8
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mancha View Post
@Raveriux:

Please test my improved patch for CUPS 1.5.4 and let me know if it fixes your issue.

Edit cups.SlackBuild and replace:

Code:
zcat $CWD/usb-backend-reset-after-job-only-for-specific-devices.patch.gz | patch -p0 --verbose || exit 1
with:
Tried CUPS with patch in Slackware 14.1rc1. Works fine. I think it can be marked as solved.
 
Old 10-23-2013, 06:11 AM   #9
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
Question 1.6.4 build fails on x86_64

Quote:
Originally Posted by willysr View Post
In the meantime, feel free to use my SlackBuild script to upgrade to cups 1.6.4. I have been using it for some time and it's working well
I'm trying to build cups 1.6.4 in Slackware64 14.1rc2 but I always get a linking error:

Code:
Making all in test...
Compiling ippserver.c...
Compiling ipptool.c...
Linking ippserver...
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crt1.o: relocation R_X86_64_32S against `__libc_csu_fini' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crt1.o: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [ippserver] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 1
Same happens in Slackware64 14.0. Adding -fPIC to CFLAGS does not help.

Any advice?
 
Old 10-23-2013, 06:24 AM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,617

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
I guess this is a multilib system?
 
Old 10-23-2013, 06:35 AM   #11
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
No, it's a plain slackware64-current installation. Same was the 14.0 I tried before...
 
Old 10-23-2013, 07:04 AM   #12
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 505

Rep: Reputation: 84
Quote:
Originally Posted by hopbyhop View Post
No, it's a plain slackware64-current installation. Same was the 14.0 I tried before...
You can bypass clang and force gcc:
Quote:
CC="gcc" \
CXX="g++" \
CFLAGS="${SLKCFLAGS}" \
CXXFLAGS="${SLKCFLAGS}" \
./configure \
...
 
Old 10-23-2013, 07:21 AM   #13
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,617

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
i just retested here on my current machine (32 bit), and it worked fine
 
Old 10-23-2013, 08:52 AM   #14
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
Quote:
Originally Posted by BrZ View Post
You can bypass clang and force gcc:
OK, it was compiled successfully! Now I have to build all other packages. I'll post the results as soon I have the suite working.
Thanks,
Mario
 
Old 10-23-2013, 08:55 AM   #15
hopbyhop
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
Quote:
Originally Posted by willysr View Post
i just retested here on my current machine (32 bit), and it worked fine
I read you tested your slackbuild in a 32-bit environment. Could it be a 64bit-only issue? If so, let me know if I can contribute making the script work. It could be useful to all 14.1 slackers... ;-)
 
  


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] Cups/lpr returns "Request Entity Too Large" didiw Linux - Software 4 12-16-2013 05:14 PM
CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu abhinit Linux - Software 3 04-22-2011 04:19 AM
CUPS - 400 Bad Request theking2 Linux - Software 1 06-10-2010 05:15 PM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 07:46 PM
CUPS problem: IPP request failed for unknow reason unicornop Linux - Software 7 05-27-2006 02:20 PM


All times are GMT -5. The time now is 07:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration