Tuesday, December 14, 2010

Getting sane scanimage working on ubuntu

Ubuntu's news versions comes with a bug that prevent users to locate scanners through sane scanimage or xsane.

the main error dialog is shown below:

netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

there are so many persons reporting this bugs on forums.

the solution that i found is:

rename the file that is casing that problem as this:
sudo mv /lib/tls/i686/cmov/libnss_files.so.2 /lib/tls/i686/cmov/libnss_files.so.2-2

as a result, all links that refer to this library are broken.

now fixing it, copy the file that must refer to the correct library:

sudo cp /lib/libc-2.11.1.so /lib/tls/i686/cmov/libc-2.11.1.so.

the result of this is shown below:
device `smfp:SAMSUNG SCX-5635 on 192.168.60.17' is a SAMSUNG SCX-5635 on 192.168.60.17 Flatbed Scanner
device `smfp:SAMSUNG SCX-5635 on 192.168.10.17' is a SAMSUNG SCX-5635 on 192.168.10.17 Flatbed Scanner
device `smfp:SAMSUNG SCX-5635 on 192.168.60.20' is a SAMSUNG SCX-5635 on 192.168.60.20 Flatbed Scanner

all links must be fixed now.

if you do not locate the file on /lib/libc-2.11.1.so, try to locate it running:
sudo updatedb
locate /lib/libc-2.11.1.so.

that is it!

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home