From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:26:33 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 767E3106566B; Tue, 6 Jan 2009 15:26:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.tele2.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id A9EB58FC0C; Tue, 6 Jan 2009 15:26:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=JOMySJw0SUaE3pB-_OYA:9 a=aJ6bFuHa4lHFia6dnS_Q2V_naY0A:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 433493578; Tue, 06 Jan 2009 16:26:30 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:28:53 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061628.53623.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 15:26:33 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky 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,0x7 > : >ffff 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 No. Just re-link the sane library. --HPS