LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 04-28-2005, 11:04 AM   #1
theboyuk
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
Bluetooth make issue


can anyone please tell me where i might be going wrong thanks

dawdeb:/usr/src/kernel-headers-2.6.11-1/bluesnarfer# make
gcc -Iinclude -W -g3 -lbluetooth src/bluesnarfer.c -o bluesnarfer
src/bluesnarfer.c:29:33: bluetooth/bluetooth.h: No such file or directory
src/bluesnarfer.c:30:27: bluetooth/hci.h: No such file or directory
src/bluesnarfer.c:31:31: bluetooth/hci_lib.h: No such file or directory
src/bluesnarfer.c:32:30: bluetooth/rfcomm.h: No such file or directory
src/bluesnarfer.c: In function `bluesnarfer':
src/bluesnarfer.c:146: error: `HCI_UP' undeclared (first use in this function)
src/bluesnarfer.c:146: error: (Each undeclared identifier is reported only once
src/bluesnarfer.c:146: error: for each function it appears in.)
src/bluesnarfer.c:152: error: `BTPROTO_RFCOMM' undeclared (first use in this fun ction)
src/bluesnarfer.c: In function `bt_get_remote_name':
src/bluesnarfer.c:190: error: storage size of `cr' isn't known
src/bluesnarfer.c:193: error: `bdaddr_t' undeclared (first use in this function)
src/bluesnarfer.c:193: error: parse error before "bdaddr"
src/bluesnarfer.c:201: error: `bdaddr' undeclared (first use in this function)
src/bluesnarfer.c:204: error: `ACL_LINK' undeclared (first use in this function)
src/bluesnarfer.c:206: error: `HCIGETCONNINFO' undeclared (first use in this fun ction)
src/bluesnarfer.c:208: error: `HCI_DM1' undeclared (first use in this function)
src/bluesnarfer.c:208: error: `HCI_DH1' undeclared (first use in this function)
src/bluesnarfer.c:223: error: `HCI_OE_USER_ENDED_CONNECTION' undeclared (first u se in this function)
src/bluesnarfer.c: In function `bt_rfcomm':
src/bluesnarfer.c:265: error: storage size of `req' isn't known
src/bluesnarfer.c:267: error: `bdaddr_t' undeclared (first use in this function)
src/bluesnarfer.c:267: error: parse error before "bdaddr"
src/bluesnarfer.c:276: error: `bdaddr' undeclared (first use in this function)
src/bluesnarfer.c:284: error: `BDADDR_ANY' undeclared (first use in this functio n)
src/bluesnarfer.c:287: error: `RFCOMMCREATEDEV' undeclared (first use in this fu nction)
src/bluesnarfer.c: In function `bt_rfcomm_rel':
src/bluesnarfer.c:411: error: storage size of `req' isn't known
src/bluesnarfer.c:416: error: `RFCOMMRELEASEDEV' undeclared (first use in this f unction)
make: *** [bluesnarfer] Error 1
dawdeb:/usr/src/kernel-headers-2.6.11-1/bluesnarfer#
 
Old 04-28-2005, 12:43 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Re: Bluetooth make issue

Quote:
Originally posted by theboyuk
can anyone please tell me where i might be going wrong thanks

dawdeb:/usr/src/kernel-headers-2.6.11-1/bluesnarfer# make
gcc -Iinclude -W -g3 -lbluetooth src/bluesnarfer.c -o bluesnarfer
src/bluesnarfer.c:29:33: bluetooth/bluetooth.h: No such file or directory
src/bluesnarfer.c:30:27: bluetooth/hci.h: No such file or directory
src/bluesnarfer.c:31:31: bluetooth/hci_lib.h: No such file or directory
src/bluesnarfer.c:32:30: bluetooth/rfcomm.h: No such file or directory
src/bluesnarfer.c: In function `bluesnarfer':
src/bluesnarfer.c:146: error: `HCI_UP' undeclared (first use in this function)
src/bluesnarfer.c:146: error: (Each undeclared identifier is reported only once
src/bluesnarfer.c:146: error: for each function it appears in.)
src/bluesnarfer.c:152: error: `BTPROTO_RFCOMM' undeclared (first use in this fun ction)
src/bluesnarfer.c: In function `bt_get_remote_name':
src/bluesnarfer.c:190: error: storage size of `cr' isn't known
src/bluesnarfer.c:193: error: `bdaddr_t' undeclared (first use in this function)
src/bluesnarfer.c:193: error: parse error before "bdaddr"
src/bluesnarfer.c:201: error: `bdaddr' undeclared (first use in this function)
src/bluesnarfer.c:204: error: `ACL_LINK' undeclared (first use in this function)
src/bluesnarfer.c:206: error: `HCIGETCONNINFO' undeclared (first use in this fun ction)
src/bluesnarfer.c:208: error: `HCI_DM1' undeclared (first use in this function)
src/bluesnarfer.c:208: error: `HCI_DH1' undeclared (first use in this function)
src/bluesnarfer.c:223: error: `HCI_OE_USER_ENDED_CONNECTION' undeclared (first u se in this function)
src/bluesnarfer.c: In function `bt_rfcomm':
src/bluesnarfer.c:265: error: storage size of `req' isn't known
src/bluesnarfer.c:267: error: `bdaddr_t' undeclared (first use in this function)
src/bluesnarfer.c:267: error: parse error before "bdaddr"
src/bluesnarfer.c:276: error: `bdaddr' undeclared (first use in this function)
src/bluesnarfer.c:284: error: `BDADDR_ANY' undeclared (first use in this functio n)
src/bluesnarfer.c:287: error: `RFCOMMCREATEDEV' undeclared (first use in this fu nction)
src/bluesnarfer.c: In function `bt_rfcomm_rel':
src/bluesnarfer.c:411: error: storage size of `req' isn't known
src/bluesnarfer.c:416: error: `RFCOMMRELEASEDEV' undeclared (first use in this f unction)
make: *** [bluesnarfer] Error 1
dawdeb:/usr/src/kernel-headers-2.6.11-1/bluesnarfer#
Looks like you need the libbluetooth1-dev package installed and then try it again. Although I fail to see why you need to be compiling anything in your kernel-headers directory why are you doing that??

Code:
>$ apt-file search bluetooth.h
affix-headers: usr/include/affix/bluetooth.h
affix-headers: usr/include/affix/bluetooth.h
kernel-headers-2.4.27-2: usr/src/kernel-headers-2.4.27-2/include/net/bluetooth/bluetooth.h
kernel-headers-2.4.27-2: usr/src/kernel-headers-2.4.27-2/include/net/bluetooth/bluetooth.h
kernel-headers-2.4.27-speakup: usr/src/kernel-headers-2.4.27-speakup/include/net/bluetooth/bluetooth.h
kernel-headers-2.4.27-speakup: usr/src/kernel-headers-2.4.27-speakup/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.10-1: usr/src/kernel-headers-2.6.10-1/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.10-9: usr/src/kernel-headers-2.6.10-9/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.11-1: usr/src/kernel-headers-2.6.11-1/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.8-10: usr/src/kernel-headers-2.6.8-10/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.8-10: usr/src/kernel-headers-2.6.8-10/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.8-2: usr/src/kernel-headers-2.6.8-2/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.8-2: usr/src/kernel-headers-2.6.8-2/include/net/bluetooth/bluetooth.h
kernel-headers-2.6.9-9: usr/src/kernel-headers-2.6.9-9/include/net/bluetooth/bluetooth.h
libbluetooth1-dev: usr/include/bluetooth/bluetooth.h
libbluetooth1-dev: usr/include/bluetooth/bluetooth.h


>$ apt-file list libbluetooth1-dev
libbluetooth1-dev: usr/include/bluetooth/bluetooth.h
libbluetooth1-dev: usr/include/bluetooth/bluetooth.h
libbluetooth1-dev: usr/include/bluetooth/bnep.h
libbluetooth1-dev: usr/include/bluetooth/bnep.h
libbluetooth1-dev: usr/include/bluetooth/cmtp.h
libbluetooth1-dev: usr/include/bluetooth/cmtp.h
libbluetooth1-dev: usr/include/bluetooth/hci.h
libbluetooth1-dev: usr/include/bluetooth/hci.h
libbluetooth1-dev: usr/include/bluetooth/hci_lib.h
libbluetooth1-dev: usr/include/bluetooth/hci_lib.h
libbluetooth1-dev: usr/include/bluetooth/hci_uart.h
libbluetooth1-dev: usr/include/bluetooth/hci_uart.h
libbluetooth1-dev: usr/include/bluetooth/hci_vhci.h
libbluetooth1-dev: usr/include/bluetooth/hci_vhci.h
libbluetooth1-dev: usr/include/bluetooth/hidp.h
libbluetooth1-dev: usr/include/bluetooth/hidp.h
libbluetooth1-dev: usr/include/bluetooth/l2cap.h
libbluetooth1-dev: usr/include/bluetooth/l2cap.h
libbluetooth1-dev: usr/include/bluetooth/rfcomm.h
libbluetooth1-dev: usr/include/bluetooth/rfcomm.h
libbluetooth1-dev: usr/include/bluetooth/sco.h
libbluetooth1-dev: usr/include/bluetooth/sco.h
libbluetooth1-dev: usr/include/bluetooth/sdp.h
libbluetooth1-dev: usr/include/bluetooth/sdp.h
libbluetooth1-dev: usr/include/bluetooth/sdp_lib.h
libbluetooth1-dev: usr/include/bluetooth/sdp_lib.h
libbluetooth1-dev: usr/lib/libbluetooth.a
libbluetooth1-dev: usr/lib/libbluetooth.a
libbluetooth1-dev: usr/lib/libbluetooth.la
libbluetooth1-dev: usr/lib/libbluetooth.la
libbluetooth1-dev: usr/lib/libbluetooth.so
libbluetooth1-dev: usr/lib/libbluetooth.so
libbluetooth1-dev: usr/lib/pkgconfig/bluez.pc
libbluetooth1-dev: usr/lib/pkgconfig/bluez.pc
libbluetooth1-dev: usr/share/aclocal/bluez.m4
libbluetooth1-dev: usr/share/aclocal/bluez.m4
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/AUTHORS
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/AUTHORS
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/NEWS.Debian.gz
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/NEWS.Debian.gz
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/README
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/README
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/README.Debian
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/README.Debian
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/changelog.Debian.gz
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/changelog.Debian.gz
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/changelog.gz
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/changelog.gz
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/copyright
libbluetooth1-dev: usr/share/doc/libbluetooth1-dev/copyright
 
Old 04-29-2005, 03:34 AM   #3
theboyuk
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the info i will give it a go
 
  


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
make new kernel issue jiawj Red Hat 0 08-15-2005 04:03 AM
tinkering with dkms: make error no targets. Makefile issue? Emmanuel_uk Linux - Newbie 1 06-03-2005 02:26 AM
make menuconfig error... dependency issue Linuxrat Slackware 1 01-01-2005 05:44 AM
Bluetooth issue Hammett Linux - Hardware 0 03-12-2004 02:26 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 04:49 AM


All times are GMT -5. The time now is 04:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration