LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   CUPS into 32bit chroot and Canon!! (https://www.linuxquestions.org/questions/linux-server-73/cups-into-32bit-chroot-and-canon-778429/)

alessiofachechi 12-28-2009 04:16 AM

CUPS into 32bit chroot and Canon!!
 
Hi! I've a problem on Archlinux (64bit).. Two weeks ago my parents bought a printer (Canon PIXMA MP250) before I've seen there were the linux drivers. But, when I went to intall them, I saw that there was a VERY SMALL LIBRARY in 32bit format: I wasn't able to link it!! Then I opted for make a 32bit chroot (also for other reasons) without reinstalling a 32bit system..
The 32bit chroot works: skype BUT ABOVE ALL SCANGEARMP (official scanner utility for my canon) WORKS!!! CUPS doesn't works indeed!!!

The problem is parltially known: CUPS completes all jobs with success but printer doesn't print anything!! Can anyone help me please?!?! :'(
Drivers are correctly intalled (on my laptop whit ubuntu 32bit it looks the same but it works..).. Here there is the cups error log but it shows only the error "E [27/Dec/2009:17:52:26 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
". I've modified /var/run/cups/certs/0 permissions but it's the same.

ozanbaba 12-28-2009 06:36 AM

Quote:

Originally Posted by alessiofachechi (Post 3806586)
Hi! I've a problem on Archlinux (64bit).. Two weeks ago my parents bought a printer (Canon PIXMA MP250) before I've seen there were the linux drivers. But, when I went to intall them, I saw that there was a VERY SMALL LIBRARY in 32bit format: I wasn't able to link it!! Then I opted for make a 32bit chroot (also for other reasons) without reinstalling a 32bit system..
The 32bit chroot works: skype BUT ABOVE ALL SCANGEARMP (official scanner utility for my canon) WORKS!!! CUPS doesn't works indeed!!!

The problem is parltially known: CUPS completes all jobs with success but printer doesn't print anything!! Can anyone help me please?!?! :'(
Drivers are correctly intalled (on my laptop whit ubuntu 32bit it looks the same but it works..).. Here there is the cups error log but it shows only the error "E [27/Dec/2009:17:52:26 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
". I've modified /var/run/cups/certs/0 permissions but it's the same.

my guess cups uses wrong libraries (64bit not 32bit). check the chroot's lib dirs for more info (file will be your friend). and how ARCH implentes 64bit.

alessiofachechi 12-28-2009 07:25 AM

Quote:

Originally Posted by ozanbaba (Post 3806669)
my guess cups uses wrong libraries (64bit not 32bit). check the chroot's lib dirs for more info (file will be your friend). and how ARCH implentes 64bit.

Thanks ozanbaba for your answering :) However about libraries it's all ok: cups in chroot prints fine through virtual pdf printer and ldd with canon executables returns me libraries in 32bit. Another help??

ozanbaba 12-28-2009 07:59 AM

Quote:

Originally Posted by alessiofachechi (Post 3806719)
Thanks ozanbaba for your answering :) However about libraries it's all ok: cups in chroot prints fine through virtual pdf printer and ldd with canon executables returns me libraries in 32bit. Another help??

maybe chroot does not work as it should be

and are you using SELinux? maybe it's just SELinux working

alessiofachechi 12-28-2009 08:26 AM

Quote:

Originally Posted by ozanbaba (Post 3806758)
and are you using SELinux? maybe it's just SELinux working

No, it's not working! :'(

Quote:

Originally Posted by ozanbaba (Post 3806758)
maybe chroot does not work as it should be

Surely.. But I don't understand what it is.. Also, printing with "lpr" into the chroot the problem it's the same (then it is not a problem related to the printing from che 64bit system)..

ozanbaba 12-28-2009 11:19 AM

Quote:

Originally Posted by alessiofachechi (Post 3806787)
No, it's not working! :'(



Surely.. But I don't understand what it is.. Also, printing with "lpr" into the chroot the problem it's the same (then it is not a problem related to the printing from che 64bit system)..

do you run another cups (64 bit) at the same time?. maybe it's locking problem

alessiofachechi 12-28-2009 01:12 PM

Quote:

Originally Posted by alessiofachechi (Post 3806787)
Surely.. But I don't understand what it is..

I've made up Archlinux 32bit on Virtualbox and the problem is the same: then, it's not related to 32bit chroot system..

ozanbaba 12-28-2009 01:21 PM

Quote:

Originally Posted by alessiofachechi (Post 3807043)
I've made up Archlinux 32bit on Virtualbox and the problem is the same: then, it's not related to 32bit chroot system..

when it's a cubs bug? you should now file a bug report at ARCH

alessiofachechi 12-29-2009 03:11 AM

Quote:

Originally Posted by ozanbaba (Post 3807050)
when it's a cubs bug? you should now file a bug report at ARCH

I've thinked it.. Then I've compiled (repository versione is 1.4.2) the 1.4.1 and 1.3.11 version of CUPS and the problem remains.

alessiofachechi 12-31-2009 03:35 AM

I've solved my problems. I created the package in two ways: extracting data from the deb package and compiling the sources. The first way doesn't work (with scangear, the scanner utility, it works: then there is something about CUPS communication). The second way works configuring all the source directories (and not only the ppd directory) with the option --program-suffix=mp250..

Code:

cd DIRECTORY
./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
make
make install

where DIRECTORY is libs, cngpj, cnijfilter, pstocanonij, lgmon, backend, backendnet, cngpijmon/cnijnpr, pdd. It's important to make a link:

Code:

ln -s /usr/lib/cups/filter/pstocanonijmp250 /usr/lib/cups/filter/pstocanonij
if the CUPS printers page says that /usr/lib/cups/filter/pstocanonij doesn't exist. I've maked a package on AUR at http://aur.archlinux.org/packages.php?ID=33257 (see the build() function in PKGBUILD file for more informations if you don't use archlinux).


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