xsane busted with usb2
M. Warner Losh
imp at bsdimp.com
Tue Jan 6 07:24:33 PST 2009
In message: <200901060940.21830.hselasky at c2i.net>
Hans Petter Selasky <hselasky at c2i.net> writes:
: On Tuesday 06 January 2009, M. Warner Losh wrote:
: > With sys/dev/usb, I'm able to kldload uscanner and xsane just works.
: > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0
: > in the ls listing, but one can open that file directly. trussing
: > sane-find-scanners yields:
: >
: > ...
: > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4)
: > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0)
: > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0)
: > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0)
: > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516
: > (0x5ec)
: > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff
: >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0)
: > close(4) = 0 (0x0)
: > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured'
: > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured'
: > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f)
: > ...
: >
: > Is there a fix for this?
:
: Hi,
:
: I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with
: libusb20. Then everything should work.
So I have to rebuild all the programs that use sane? Grump.
Warner
More information about the freebsd-usb
mailing list