LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-03-2010, 04:16 PM   #1
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Bluez 4.64 differences between hciconfig and lt-hciconfig


Hello everyone,
I've been for the past couple of hours trying to figure out why I get a symbol lookup error in hciconfig from the latest Bluez package in Slackware64-current. After installing and reinstalling the Slackware package I decided to try to compile the source from www.bluez.org. After running ./configure and make I noticed that in the tools/.libs directory there was hciconfig and lt-hciconfig. hciconfig produces the same output as hciconfig from the Slackware package but lt-hciconfig does not. Anybody know what the difference is between these two programs?

bash-4.1# hciconfig
hciconfig: symbol lookup error: hciconfig: undefined symbol: hci_bustostr

bash-4.1# ./lt-hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:24:7E:1D:AC:F4 ACL MTU: 1017:8 SCO MTU: 64:8
DOWN
RX bytes:704 acl:0 sco:0 events:25 errors:0
TX bytes:352 acl:0 sco:0 commands:25 errors:0

Last edited by mats_b_tegner; 05-04-2010 at 07:43 AM. Reason: spelling
 
Old 05-03-2010, 04:59 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Strange, on my Slackware64-current (T400 laptop with Slackware64-current and my KDE 4.4.3) I can run hciconfig and get no errors, only the correct and expected output.

Eric
 
Old 05-04-2010, 02:10 AM   #3
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What causes symbol lookup errors? Running ldd -v on the two programs gives the following output:
bash-4.1# ldd -v /usr/sbin/hciconfig
linux-vdso.so.1 => (0x00007fff646dd000)
libbluetooth.so.3 => /usr/lib/libbluetooth.so.3 (0x00007f228f420000)
libc.so.6 => /lib64/libc.so.6 (0x00007f228f0af000)
/lib64/ld-linux-x86-64.so.2 (0x00007f228f639000)

Version information:
/usr/sbin/hciconfig:
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.7) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/usr/lib/libbluetooth.so.3:
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.s o.2
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
bash-4.1#

bash-4.1$ ldd -v bluez-4.64/tools/.libs/hciconfig
linux-vdso.so.1 => (0x00007fff1c9ff000)
libbluetooth.so.3 => /usr/lib/libbluetooth.so.3 (0x00007ff417898000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff417527000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff417ab1000)

Version information:
.libs/hciconfig:
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.7) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/usr/lib/libbluetooth.so.3:
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.s o.2
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2

bash-4.1$ ldd -v bluez-4-64/tools.libs/lt-hciconfig
linux-vdso.so.1 => (0x00007fffabdff000)
libbluetooth.so.3 => /home/mats/bluez-4.64/lib/.libs/libbluetooth.so.3 (0x00007fd34f26d000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd34eefc000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd34f486000)

Version information:
.libs/lt-hciconfig:
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.7) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/home/mats/bluez-4.64/lib/.libs/libbluetooth.so.3:
libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2

Do I need to reinstall gcc or glibc, since no one else gets this error in hciconfig?

Last edited by mats_b_tegner; 05-04-2010 at 02:15 AM.
 
Old 05-04-2010, 02:28 AM   #4
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Found multiple versions of libbluetooth in /usr/lib and /usr/lib64. When I moved the ones found in /usr/lib hciconfig works...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BlueZ 3 or 4? simopal6 Linux - Software 1 02-03-2009 05:10 PM
bluez hciconfig doesn't list the device class ebinjose Linux - Wireless Networking 0 01-27-2009 02:40 AM
bluetooth dongle (hciconfig reports DOWN) xanderd Linux - Hardware 2 02-25-2005 04:25 AM
hciconfig command no longer recognised triona Linux - Hardware 1 12-17-2004 01:44 PM
Bluez????? abhay7182 Linux - Laptop and Netbook 0 08-20-2004 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:32 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