LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bluesnarfer install problem (https://www.linuxquestions.org/questions/linux-newbie-8/bluesnarfer-install-problem-624913/)

Jlin 03-01-2008 05:04 AM

bluesnarfer install problem
 
i am trying to install bluesnarfer.tar.gz on my fedora 8 system





i went to the bluesnarfer extracted folder and did as instructed in 'makefile':


gcc -Iinclude -W -g3 -lbluetooth src/bluesnarfer.c -o bluesnarfer

but i am getting the following message:

[root@dhcppc0 bluesnarfer]# gcc -Iinclude -W -g3 -lbluetooth src/bluesnarfer.c -o bluesnarfer
src/bluesnarfer.c:29:33: error: bluetooth/bluetooth.h: No such file or directory
src/bluesnarfer.c:30:27: error: bluetooth/hci.h: No such file or directory
src/bluesnarfer.c:31:31: error: bluetooth/hci_lib.h: No such file or directory
src/bluesnarfer.c:32:30: error: bluetooth/rfcomm.h: No such file or directory
src/bluesnarfer.c: In function ‘parse_rw’:
src/bluesnarfer.c:39: warning: incompatible implicit declaration of built-in function ‘strchr’
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 function)
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: expected ‘;’ before ‘bdaddr’
src/bluesnarfer.c:201: error: ‘bdaddr’ undeclared (first use in this function)
src/bluesnarfer.c:203: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/bluesnarfer.c:204: error: ‘ACL_LINK’ undeclared (first use in this function)
src/bluesnarfer.c:206: error: ‘HCIGETCONNINFO’ undeclared (first use in this function)
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 use in this function)
src/bluesnarfer.c: In function ‘rfcomm_read’:
src/bluesnarfer.c:251: warning: incompatible implicit declaration of built-in function ‘strlen’
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: expected ‘;’ before ‘bdaddr’
src/bluesnarfer.c:276: error: ‘bdaddr’ undeclared (first use in this function)
src/bluesnarfer.c:278: warning: incompatible implicit declaration of built-in function ‘memset’
src/bluesnarfer.c:284: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/bluesnarfer.c:284: error: ‘BDADDR_ANY’ undeclared (first use in this function)
src/bluesnarfer.c:287: error: ‘RFCOMMCREATEDEV’ undeclared (first use in this function)
src/bluesnarfer.c: In function ‘custom_cmd’:
src/bluesnarfer.c:382: warning: incompatible implicit declaration of built-in function ‘strstr’
src/bluesnarfer.c:390: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c: In function ‘bt_rfcomm_rel’:
src/bluesnarfer.c:411: error: storage size of ‘req’ isn’t known
src/bluesnarfer.c:413: warning: incompatible implicit declaration of built-in function ‘memset’
src/bluesnarfer.c:416: error: ‘RFCOMMRELEASEDEV’ undeclared (first use in this function)
src/bluesnarfer.c: In function ‘rw_cmd’:
src/bluesnarfer.c:434: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c:442: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c:455: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c: In function ‘parse’:
src/bluesnarfer.c:500: warning: incompatible implicit declaration of built-in function ‘memset’
src/bluesnarfer.c:503: warning: incompatible implicit declaration of built-in function ‘strchr’
src/bluesnarfer.c:506: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c: In function ‘search_cmd’:
src/bluesnarfer.c:550: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c: In function ‘list_cmd’:
src/bluesnarfer.c:600: warning: incompatible implicit declaration of built-in function ‘strlen’
src/bluesnarfer.c:614: warning: incompatible implicit declaration of built-in function ‘strchr’
src/bluesnarfer.c:622: warning: incompatible implicit declaration of built-in function ‘strstr’
src/bluesnarfer.c: In function ‘info_cmd’:
src/bluesnarfer.c:643: warning: incompatible implicit declaration of built-in function ‘strlen’


PLZ. HELP!

Emerson 03-01-2008 10:52 AM

1. If Makefile is present you have to run make utility.
Quote:

error: bluetooth/bluetooth.h: No such file or directory
2. You miss some header files which usually come with development packages, cannot tell you exact package names because you have chosen not to reveal what Linux flavor you are using.

Don't make it hard for us to help you.

Jlin 03-02-2008 03:29 AM

thks ...
I am using FEDORA 8

Emerson 03-02-2008 09:46 AM

Hmh ... I'm not a Red Hat person. To get bluetooth.h in the Debian world you need to install linux-headers or libbluetooth-dev. It comes with kernel sources, too.


All times are GMT -5. The time now is 10:12 AM.