LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Bluetooth make issue (https://www.linuxquestions.org/questions/debian-26/bluetooth-make-issue-318076/)

theboyuk 04-28-2005 10:04 AM

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#

HappyTux 04-28-2005 11:43 AM

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


theboyuk 04-29-2005 02:34 AM

thanks for the info i will give it a go


All times are GMT -5. The time now is 12:17 PM.