[sane-devel] sanei_usb_init with 1.0.10: relocation error

Henning Meier-Geinitz henning@meier-geinitz.de
Sun, 6 Apr 2003 12:29:32 +0200


Hi,

On Sun, Apr 06, 2003 at 01:18:47PM +0800, Daniel Sim wrote:
> Following is the ouputs I got. I am using Linux 2.4.18, Slackware 8.1, 
> Scanjet 5300C, USB. How do I solve this problem (see last two lines of 
> output)? I have not recompiled my kernel, so I think "sg" is built-in.

You only need sg for SCSI scanners or USB scanners that use a
SCSI-over-USB kernel driver. In current avision backends that doesn't
seem to be the case. That's why you can use the generic USB kernel
scanner driver ("scanner.o") at all.

> scanimage: relocation error: /usr/local/lib/sane/libsane-avision.so.1: 
> undefined symbol: sanei_usb_init

In SANE 1.0.10 the avision backend doesn't use "sanei_usb_init". So am
I right that you just used sane 1.0.10 and copied the latest avision
backend into the source code? That doesn't seem to work. Get a
CVS snapshot that includes the backend (see SANE homepage, download
section). I haven't checked the backend code but I guess in addition
to the backend itsself you need updates to the sanei code and
backend/Makefile.in. All of those are included in the CVS snapshot.

If the avision maintainer reads this: the avision manpage still talks
about the hpusbscsi modules and is otherwise pretty SCSI-centric :-)

Bye,
  Henning