LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   [request] CUPS 1.6.x (http://www.linuxquestions.org/questions/slackware-14/%5Brequest%5D-cups-1-6-x-4175480135/)

Raveriux 10-09-2013 05:04 AM

[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.

mattallmill 10-09-2013 07:40 AM

Quote:

Originally Posted by Raveriux (Post 5042693)
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

willysr 10-09-2013 09:50 AM

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

volkerdi 10-09-2013 01:43 PM

Quote:

Originally Posted by Raveriux (Post 5042693)
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.

Raveriux 10-09-2013 01:56 PM

Quote:

Originally Posted by volkerdi (Post 5042947)
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.

volkerdi 10-09-2013 03:03 PM

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.

mancha 10-09-2013 04:19 PM

@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

Raveriux 10-17-2013 04:09 AM

Quote:

Originally Posted by mancha (Post 5043023)
@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.

hopbyhop 10-23-2013 05:11 AM

1.6.4 build fails on x86_64
 
Quote:

Originally Posted by willysr (Post 5042816)
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?

willysr 10-23-2013 05:24 AM

I guess this is a multilib system?

hopbyhop 10-23-2013 05:35 AM

No, it's a plain slackware64-current installation. Same was the 14.0 I tried before...

BrZ 10-23-2013 06:04 AM

Quote:

Originally Posted by hopbyhop (Post 5050838)
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 \
...

willysr 10-23-2013 06:21 AM

i just retested here on my current machine (32 bit), and it worked fine

hopbyhop 10-23-2013 07:52 AM

Quote:

Originally Posted by BrZ (Post 5050845)
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

hopbyhop 10-23-2013 07:55 AM

Quote:

Originally Posted by willysr (Post 5050853)
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... ;-)


All times are GMT -5. The time now is 04:43 PM.