Bug 1294215

Summary: lsusb not working
Product: [Fedora] Fedora Reporter: Andreas Kriegl <andreas.kriegl>
Component: usbutilsAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: andreas.kriegl, lnykryn
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-09 13:56:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andreas Kriegl 2015-12-25 13:36:11 UTC
Description of problem:
lsusb returns with error message:
lsusb: symbol lookup error: lsusb: undefined symbol: libusb_error_name

Version-Release number of selected component (if applicable):
usbutils-008-4.fc23.i686

How reproducible:
every time

Steps to Reproduce:
1. as root enter 'lsusb' in shell

Actual results:
lsusb: symbol lookup error: lsusb: undefined symbol: libusb_error_name

Expected results:
listing of usb ports

Comment 1 Lukáš Nykrýn 2015-12-26 13:51:45 UTC
Do you have libusbx installed?

But the dependencies looks fine on my f23:

[lnykryn@localhost usbutils]$ rpm -q --requires usbutils
/bin/bash
/usr/bin/env
/usr/bin/pkg-config
hwdata
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libudev.so.1()(64bit)
libudev.so.1(LIBUDEV_183)(64bit)
libudev.so.1(LIBUDEV_196)(64bit)
libusb-1.0.so.0()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
rtld(GNU_HASH)
[lnykryn@localhost usbutils]$ rpm -q --whatprovides 'libusb-1.0.so.0()(64bit)'
libusbx-1.0.20-1.fc23.x86_64
[lnykryn@localhost usbutils]$ nm -D /usr/lib64/libusb-1.0.so.0 | grep libusb_error_name
0000000000006510 T libusb_error_name

Comment 2 Andreas Kriegl 2015-12-26 15:24:32 UTC
libusbx-1.0.20-1.fc23.i686 is installed

Comment 3 Andreas Kriegl 2015-12-26 15:36:08 UTC
I get the following output:

rpm -q --requires usbutils
/bin/bash
/usr/bin/env
/usr/bin/pkg-config
hwdata
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
libudev.so.1
libudev.so.1(LIBUDEV_183)
libudev.so.1(LIBUDEV_196)
libusb-1.0.so.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
rtld(GNU_HASH)

rpm -q --whatprovides libusb-1.0.so.0
libusbx-1.0.20-1.fc23.i686

nm -D /usr/lib/libusb-1.0.so.0 | grep libusb_error_name
000054f0 T libusb_error_name

Comment 4 Lukáš Nykrýn 2015-12-27 13:04:51 UTC
And your usbutils package is also i686 or x86_64? Can you try to install 64b of the libusb library?

Comment 5 Andreas Kriegl 2015-12-27 18:05:05 UTC
installed is libusb-0.1.5-6.fc23.i686

I don't know how to install the x86_64 version on my i686 system!

dnf install libusb-0.1.5-6.fc23.x86_64
does not do the job.

Comment 6 Andreas Kriegl 2016-02-09 13:56:06 UTC
I resolved the problem.
Somehow there was a wrong libusb in /usr/local/lib/libusb-1.0.so.0
no belonging to any package.
After removing /usr/local/lib/libusb* lsusb worked.