[sane-devel] Plustec 19200S problem

Henning Meier-Geinitz henning at meier-geinitz.de
Sat Feb 2 14:28:42 GMT 2002


Hi,

On Sat, Feb 02, 2002 at 02:47:45PM +0100, Robert Jaworski wrote:
> I have fo nd one stupid thing I forgot. The path to /usr/lib/sane was 
> not set.

? Ususally you don't need to set a path for libraries. Sometimes it's
necessary to set LD_LIBRARY_PATH or edit /etc/ld.so.conf for libaries
in /usr/local/lib, but not in /usr/lib.

If you really set the variable or file to "/usr/lib/sane/" that's
wrong. It won't work. Just set it to "/usr/lib", but this shouldn't be
necessary as this is the default.

> execve("/usr/bin/scanimage", ["scanimage", "-d",  "artec:/dev/scanner"], [/* 29 vars */]) = 0
[...]

> open("/usr/lib/sane/i686/mmx/libsane.so.1", O_RDONLY) = -1 
> ENOENT (No such file or directory)

The linker shouldn't search /usr/lib/sane/ at all.

> open("/usr/lib/sane/libsane.so.1", O_RDONLY) = 3

That's the wrong library. Looks like this is a link to libsane-v4l.so.
It should find /usr/lib/libsane.so.1, which is libsane-dll.so in
reality.

[...]
> open("/etc/sane.d/v4l.conf", O_RDONLY)  = 3

The v4l (Video for Linux) backend opens its config file...

> open("/dev/bttv0", O_RDWR)              = -1 ENOENT (No such file or  directory)
> open("/dev/video0", O_RDWR)             = -1 EBUSY (Device or  resource busy)
[...]

and tries to open some video devices...

> open("artec:/dev/scanner", O_RDWR)      = -1 ENOENT (No such file or directory)

Now it tries to open the file that was given on the command line. It
will fail, because of the artec:.

> Can you please tell my why /dev/bttv and /dev/video is beeing 
> opened?

That's because your frontend only loads the v4l backend. No other
backends are loaded. I don't know whi there is a lbsane.so in
/usr/lib/sane/ in the first place. But your real problem is, that you
put /usr/lib/sane in ld.so.conf or LD_LIBRARY_PATH.

Please remove it and try again to get the log file I wrote about in my
previous mail.

bye,
  Henning



More information about the sane-devel mailing list