LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2024, 03:10 AM   #1
Mantabit
LQ Newbie
 
Registered: Jan 2019
Location: Europe
Distribution: Ubuntu
Posts: 9

Rep: Reputation: Disabled
Symbol lookup error involving libusb when running program as user, but no error when running as superuser?


Hello everyone

I would like to control some data acquisition equipment so I installed the library from the GitHub repository of the manufacturer (https://github.com/mccdaq/uldaq). After building the project as described on the repository, I get a symbol lookup error when I try to run one of the provided examples (`AIn` in this case):

Quote:
./AIn
Found 1 DAQ device(s)
[0] USB-1608GX: (020D2FF3)

Connecting to device USB-1608GX - please wait ...
/home/dvarx/Downloads/libuldaq-1.2.1/examples/.libs/AIn: symbol lookup error: /home/dvarx/Downloads/libuldaq-1.2.1/src/.libs/libuldaq.so.1: undefined symbol: libusb_has_capability
When I run the same program as superuser, no errors occur and everything seems to work fine. I did install the device rules file with the following rule:

Quote:
SUBSYSTEM=="usb", ATTR{idVendor}=="09db", ATTR{idProduct}=="0135", GROUP="adm", MODE="0666"
which corresponds to the device I want to control:

Quote:
[ 1437.149542] usb 1-9: reset full-speed USB device number 4 using xhci_hcd
[ 1874.205017] usb 1-4: USB disconnect, device number 2
[ 1876.429457] usb 1-4: new high-speed USB device number 6 using xhci_hcd
[ 1880.334392] usb 1-4: New USB device found, idVendor=09db, idProduct=0135, bcdDevice= 2.01
[ 1880.334411] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1880.334419] usb 1-4: Product: USB-1608GX
[ 1880.334425] usb 1-4: Manufacturer: MCC
[ 1880.334432] usb 1-4: SerialNumber: 020D2FF3
Does anyone have an idea how I could debug this issue?
 
Old 01-31-2024, 03:45 AM   #2
Mantabit
LQ Newbie
 
Registered: Jan 2019
Location: Europe
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ok, I was able to resolve this issue by myself. The issue was that I had another version of libusb installed on my system that did not show up in the synaptic package manager. LD_LIBRARY_PATH contained a path pointing to this version of libusb. After adjusting LD_LIBRARY_PATH the program executes without issues.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glib error while installing patch: symbol lookup error undefined symbol: g_dgettext mthakare Linux - Software 1 06-14-2010 04:01 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
Workaround: 'symbol lookup error: k3b: undefined symbol: lstat64' devdol Linux - Software 2 02-15-2008 03:36 AM
./firefox-bin: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_s cb8100 Slackware 3 10-05-2006 10:55 AM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration