LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-28-2009, 04:16 AM   #1
alessiofachechi
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 0
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.
 
Old 12-28-2009, 06:36 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by alessiofachechi View Post
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.
 
Old 12-28-2009, 07:25 AM   #3
alessiofachechi
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ozanbaba View Post
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??
 
Old 12-28-2009, 07:59 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by alessiofachechi View Post
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
 
Old 12-28-2009, 08:26 AM   #5
alessiofachechi
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ozanbaba View Post
and are you using SELinux? maybe it's just SELinux working
No, it's not working! :'(

Quote:
Originally Posted by ozanbaba View Post
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)..
 
Old 12-28-2009, 11:19 AM   #6
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by alessiofachechi View Post
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
 
Old 12-28-2009, 01:12 PM   #7
alessiofachechi
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alessiofachechi View Post
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..
 
Old 12-28-2009, 01:21 PM   #8
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by alessiofachechi View Post
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
 
Old 12-29-2009, 03:11 AM   #9
alessiofachechi
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ozanbaba View Post
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.
 
Old 12-31-2009, 03:35 AM   #10
alessiofachechi
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Original Poster
Rep: Reputation: 0
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).

Last edited by alessiofachechi; 12-31-2009 at 03:36 AM.
 
  


Reply

Tags
archlinux, cups


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
Fedora 32bit chroot Aurer Linux - Software 0 03-28-2006 07:15 PM
running anjuta within 32bit chroot linuxmandrake Ubuntu 0 02-16-2006 02:20 PM
AMD64 - 3d accel in a 32bit chroot don't work ssobeht Debian 2 12-22-2005 10:11 AM
cant open display within 32bit sarge chroot linuxmandrake Debian 2 12-17-2005 10:59 AM
Debian 32bit chroot setup question Oxyacetylene Debian 4 11-28-2005 08:01 AM


All times are GMT -5. The time now is 03:16 AM.

Main Menu
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