[sane-devel] Boeder SmartScan Slim Edition on SuSE

m. allan noah anoah at pfeiffer.edu
Tue Feb 17 17:09:16 GMT 2004


1. when you are going to start building things from source, stop using 
rpm. find the latest libusb.tar.gz at http://libusb.sourceforge.net/, and 
install that. (should be 0.1.7 or greater)

2. you still have scanner.o in the kernel. your hot-plugging scripts are 
likely doing this. you can either remove the kernel scanner module
(it lives in /lib/modules/`uname -r`/kernel/drivers/usb/scanner.o), or 
you can comment out the lines that try to load it when they see your 
scanner. (look in /etc/hotplug/usb.distmap or nearby for your vendor's id)

allan

On Tue, 17 Feb 2004, Jim George wrote:

> Hi Allan and all,
> 
> > you could try building libusb from source, look on your suse cds for the
> >  devel package, or try to install a devel package from another linux
> > distro  with the same libusb version number.
> >
> <SNIP>
> 
> I found a libusb source package and therefore did the following:
> 
> rpm -e libusb
> rpm -i libusb-0.1.5-128.src
> cd /usr/src/packages/SOURCES/libusb-0.1.5
> ./configure
> make
> make install
> ls /usr/include | grep usb returned usb.h
> cd ~/sane-backends-0.1.3
> ./configure --enable-libusb
> (grep of config.log for usb produced the following)
> configure:6136: checking usb.h usability
> configure:6172: checking usb.h presence
> configure:6244: checking for usb.h
> configure:8676: checking for usb_get_busses in -lusb
> configure:8707: gcc -o conftest -g -O2 -W -Wall 
> -DPATH_SANE_CONFIG_DIR=$(configdir)      -DPATH_SANE_DATA_DIR=$(datadir)  
>       -DV_MAJOR=1 -DV_MINOR=0  conftest.c -lusb  -lnsl -lm  -ljpeg >&5
> /root/sane-backends-1.0.13/configure:8779: undefined reference to
> `usb_get_busses'
> | char usb_get_busses ();
> | usb_get_busses ();
> ac_cv_header_usb_h=yes
> ac_cv_lib_usb_usb_get_busses=no
> BACKENDS='abaton agfafocus apple artec as6e avision bh canon          
> canon630u coolscan coolscan2 dc25 dmc           epson fujitsu gt68xx hp
> leo matsushita microtek           microtek2 mustek mustek_pp mustek_pp_ccd
> mustek_usb nec pie plustek           plustek_pp ricoh s9036 sceptre sharp 
>          sp15c st400 tamarack test teco1 teco2 teco3 umax umax_pp
> umax1220u           artec_eplus48u ma1509 ibm hp5400 dc210 dc240 qcam v4l
> net snapscan'
> 
> then I followed this with
> make
> make install
> sane-find-scanner  (this returned the following)
> 
>   # No SCSI scanners found. If you expected something different, make sure
> that
>   # you have loaded a SCSI driver for your SCSI adapter.
>   # Also you need support for SCSI Generic (sg) in your operating system.
>   # If using Linux, try "modprobe sg".
> 
>   # No USB scanners found. If you expected something different, make sure
> that
>   # you have loaded a driver for your USB host controller and have
> installed a
>   # kernel scanner module.
> 
>   # Scanners connected to the parallel port or other proprietary ports
> can't be
>   # detected by this program.
> 
> Whilst the sane-find-scanner program is running I got the following in
> xconsole.
> 
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(0): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(0): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(1): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(2): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(3): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(4): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(5): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(6): Unable to access
> minor data
> Feb 17 17:34:54 tassi kernel: scanner.c: open_scanner(7): Unable to access
> minor data
> 
> Then I checked that usb was installed as a module (lsmod | grep usb) and
> got the following
> usbserial              18492   0  (autoclean) (unused)
> usb-uhci               21612   0  (unused)
> usbcore                56768   1  [scanner usbserial snd usb-uhci]
> 
> Finally I checked libsane-gt68xx.so.1.0.13 for usb and got the following;
> 
>         libnsl.so.1 => /lib/libnsl.so.1 (0x40026000)
>         libm.so.6 => /lib/i686/libm.so.6 (0x4003b000)
>         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4005f000)
>         libdl.so.2 => /lib/libdl.so.2 (0x4007d000)
>         libc.so.6 => /lib/i686/libc.so.6 (0x40080000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> 
> So can someone tell me what I'm still doing wrong?
> 
> 
> Jim
> 
> 
> 
> 
> 

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera





More information about the sane-devel mailing list