Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 121186

Summary: xsane-0.9.7 won't work because libusb-0.1.4 is not found
Product: Gentoo Linux Reporter: Michele Alzetta <michele.alzetta>
Component: New packagesAssignee: Alastair Tse (RETIRED) <liquidx>
Status: RESOLVED WORKSFORME    
Severity: normal CC: phosphan
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michele Alzetta 2006-02-01 07:52:05 UTC
xsane
xsane: error while loading shared libraries: libusb-0.1.4: cannot open shared object file: No such file or directory

emerge libusb
... emerge successful, but ...

xsane
xsane: error while loading shared libraries: libusb-0.1.4: cannot open shared object file: No such file or directory

ls /usr/lib/libusb*
/usr/lib/libusb-0.1.so.4.4.0
/usr/lib/libusb-0.1.so.4.4.2
/usr/lib/libusb-0.1.so.4

A quick hack:
ln -s /usr/lib/libusb-0.1.so.4 /usr/lib/libusb-0.1.4
fixes this.

xsane 0.9.7
libusb 0.1.10.a
libtool 1.5.22
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2006-02-01 12:49:44 UTC
It's not that easy... on my system:
 # equery files libusb
[ Searching for packages matching libusb... ]
dev-libs/libusb-0.1.10a
* Contents of dev-libs/libusb-0.1.10a:
/usr
/usr/bin
/usr/bin/libusb-config
/usr/include
/usr/include/usb.h
/usr/include/usbpp.h
/usr/lib
/usr/lib/libusb -> libusb-0.1.4.4.2
/usr/lib/libusb-0.1.4 -> libusb-0.1.4.4.2
/usr/lib/libusb-0.1.4.4.2
/usr/lib/libusb.a
/usr/lib/libusb.la
[more files snipped]
Will have to check what makes the difference.
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2006-02-03 05:12:44 UTC
Upgraded libtool, re-emerged libusb, got different files in /usr/lib... no idea why this was changed. But just re-emerging sane-backends fixed the issue for me. So I'd say this is not an xsane or sane-backends issue but a problem with libtool and/or libusb. Re-assigning to the libusb maintainer, please check if this is your problem.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2006-02-06 11:07:51 UTC
yes, i've seen this before,. its a libtool/libusb interaction thing. we already run libtoolize in 0.10.0a and it seems to take care of it. can't find out where exactly is the culprit for this transient failure.