[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] How to use the openbt wirh PAN profile support ?



Hi all,
 
I downloaded the openbt with PAN support from CVS web at 2002/05/06.
Then I modified the setting according to the Howto for the csr and openbr Version 2.0 Document.
Finally, I typed make INCLUDE_PAN_SUPPORT=1 then showing the following message.
Does anybody know how to solve the problem and the following steps to install the modules bt.o and
bnep.o to let two BT devices can ping each other.
 
Thanks
Sam Yen
 
 
[root@sam openbt020506]# make INCLUDE_PAN_SUPPORT=1
make -C linux/drivers/char/bluetooth
make[1]: Entering directory `/root/openbt020506/linux/drivers/char/bluetooth'
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o bluetooth.o bluetooth.c
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o bt_proc.o bt_proc.c
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o btdebug.o btdebug.c
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o btmem.o btmem.c
In file included from btmem.c:50:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o hci.o hci.c
hci.c:2507: warning: `role_discovery' defined but not used
hci.c:2763: warning: `write_inquiryscan_activity' defined but not used
hci.c:2957: warning: `write_automatic_flush_timeout' defined but not used
hci.c:2977: warning: `hci_set_host_controller_flow_control' defined but not used
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o hci_vendor.o hci_vendor.c
hci_vendor.c:541: warning: `csr_send_general_hq' declared `static' but never defined
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o l2cap.o l2cap.c
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o l2cap_con.o l2cap_con.c
In file included from l2cap_con.c:51:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o l2cap_sec.o l2cap_sec.c
In file included from l2cap_sec.c:51:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o rfcomm.o rfcomm.c
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o rfcomm_sec.o rfcomm_sec.c
In file included from rfcomm_sec.c:51:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o sec_client.o sec_client.c
In file included from sec_client.c:50:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
sec_client.c:656: warning: `sec_man_proc_dir_entry_read' defined but not used
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o sdp.o sdp.c
sdp.c:882: warning: `sdp_proc_dir_entry_read' defined but not used
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o tcs.o tcs.c
In file included from tcs.c:51:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o test.o test.c
In file included from test.c:50:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
gcc -D__KERNEL__ -DMODULE -I../../../include -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce  -MD   -c -o hci_sec.o hci_sec.c
In file included from hci_sec.c:50:
/usr/src/linux-2.4.7-10/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
ld -r -o bt.o bluetooth.o bt_proc.o btdebug.o btmem.o hci.o hci_vendor.o l2cap.o l2cap_con.o l2cap_sec.o rfcomm.o rfcomm_sec.o sec_client.o sdp.o tcs.o test.o hci_sec.o
make[1]: Leaving directory `/root/openbt020506/linux/drivers/char/bluetooth'
make -C libs install
make[1]: Entering directory `/root/openbt020506/libs'
Making install in expat for host
make[2]: Entering directory `/root/openbt020506/libs/expat'
Making install in xmltok for host
make[3]: Entering directory `/root/openbt020506/libs/expat/xmltok'
cc -Wall -O0 -g -fno-omit-frame-pointer -Wall   -c -o xmltok.o xmltok.c
xmltok.c: In function `initScan':
xmltok.c:1494: warning: subscript has type `char'
cc -Wall -O0 -g -fno-omit-frame-pointer -Wall   -c -o xmlrole.o xmlrole.c
ar ucvr libxmltok.a xmltok.o xmlrole.o
a - xmltok.o
a - xmlrole.o
ranlib libxmltok.a
install -d /root/openbt020506/target/host/lib
install -d /root/openbt020506/target/host/include
install -m 0644 libxmltok.a /root/openbt020506/target/host/lib/
install -m 0644 xmltok.h /root/openbt020506/target/host/include/
make[3]: Leaving directory `/root/openbt020506/libs/expat/xmltok'
Making install in xmlparse for host
make[3]: Entering directory `/root/openbt020506/libs/expat/xmlparse'
cc -Wall -O0 -g -fno-omit-frame-pointer -Wall  -I../xmltok   -c -o xmlparse.o xmlparse.c
xmlparse.c: In function `storeEntityValue':
xmlparse.c:2486: warning: unused variable `internalEnc'
xmlparse.c: At top level:
xmlparse.c:2341: warning: `errorProcessor' defined but not used
cc -Wall -O0 -g -fno-omit-frame-pointer -Wall  -I../xmltok   -c -o hashtable.o hashtable.c
ar ucvr libxmlparse.a xmlparse.o hashtable.o
a - xmlparse.o
a - hashtable.o
ranlib libxmlparse.a
install -d /root/openbt020506/target/host/lib
install -d /root/openbt020506/target/host/include
install -m 0644 libxmlparse.a /root/openbt020506/target/host/lib/
install -m 0644 xmlparse.h /root/openbt020506/target/host/include/
make[3]: Leaving directory `/root/openbt020506/libs/expat/xmlparse'
make[2]: Leaving directory `/root/openbt020506/libs/expat'
make[1]: Leaving directory `/root/openbt020506/libs'
make -C apps/bluetooth/userstack links
make[1]: Entering directory `/root/openbt020506/apps/bluetooth/userstack'
make[1]: Leaving directory `/root/openbt020506/apps/bluetooth/userstack'
make -C apps/bluetooth
make[1]: Entering directory `/root/openbt020506/apps/bluetooth'
Making all in experimental for host
make[2]: Entering directory `/root/openbt020506/apps/bluetooth/experimental'
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btd.o btd.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o bt_ipa.o bt_ipa.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o bt_vendor.o bt_vendor.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o bt_if.o bt_if.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o bt_misc.o bt_misc.c
cc  btd.o bt_ipa.o bt_vendor.o bt_if.o bt_misc.o -lreadline -ltermcap -o btdm
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o modememul.o modememul.c
cc  modememul.o bt_if.o bt_misc.o -lreadline -ltermcap -o memul
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btinit.o btinit.c
cc  btinit.o bt_vendor.o bt_if.o bt_misc.o -lreadline -ltermcap -o bti
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btinq.o btinq.c
cc  btinq.o bt_if.o bt_misc.o -lreadline -ltermcap -o btinq
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btcon.o btcon.c
cc  btcon.o bt_if.o bt_misc.o -lreadline -ltermcap -o btcon
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btdisc.o btdisc.c
cc  btdisc.o bt_if.o bt_misc.o -lreadline -ltermcap -o btdisc
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btconfig.o btconfig.c
cc  btconfig.o bt_vendor.o bt_if.o bt_misc.o -lreadline -ltermcap -o btconfig
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btping.o btping.c
cc  btping.o bt_if.o bt_misc.o -lreadline -ltermcap -o btping
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o btsec.o btsec.c
btsec.c: In function `write_proc_file':
btsec.c:466: warning: long int format, int arg (arg 4)
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -I/root/openbt020506/target/host/include -DCONFIG_BLUETOOTH_UNPLUG_TEST -DCONFIG_BLUETOOTH_PAN -MMD   -c -o bt_linkkey_common.o bt_linkkey_common.c
cc  btsec.o bt_linkkey_common.o -lreadline -ltermcap -o btsec
make[2]: Leaving directory `/root/openbt020506/apps/bluetooth/experimental'
Making all in sdp_server for host
make[2]: Entering directory `/root/openbt020506/apps/bluetooth/sdp_server'
cc -Wall -O0 -g -fno-omit-frame-pointer -I/root/openbt020506/target/host/include -MMD   -c -o sdp_server.o sdp_server.c
cc -Wall -O0 -g -fno-omit-frame-pointer -I/root/openbt020506/target/host/include -MMD   -c -o sdp_parser.o sdp_parser.c
cc  -L/root/openbt020506/target/host/lib  sdp_server.o sdp_parser.o  -lxmlparse -lxmltok -o sdp_server
make[2]: Leaving directory `/root/openbt020506/apps/bluetooth/sdp_server'
Making all in userstack for host
make[2]: Entering directory `/root/openbt020506/apps/bluetooth/userstack'
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -DBTD_USERSTACK   -c -o btd.o btd.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -DBTD_USERSTACK   -c -o btdebug.o btdebug.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -DBTD_USERSTACK   -c -o btmem.o btmem.c
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -DBTD_USERSTACK   -c -o hci.o hci.c
hci.c:2507: warning: `role_discovery' defined but not used
hci.c:2763: warning: `write_inquiryscan_activity' defined but not used
hci.c:2957: warning: `write_automatic_flush_timeout' defined but not used
hci.c:2977: warning: `hci_set_host_controller_flow_control' defined but not used
hci.c:4209: warning: `start_inq_timer' defined but not used
hci.c:304: warning: `hci_inq_aborted' defined but not used
cc -Wall -O0 -g -fno-omit-frame-pointer -DHAVE_READLINE_READLINE -DBTD_USERSTACK   -c -o l2cap.o l2cap.c
l2cap.c: In function `l2cap_rtx_timeout':
l2cap.c:1977: request for member `inuse' in something not a structure or union
l2cap.c: In function `l2cap_ertx_timeout':
l2cap.c:2015: request for member `inuse' in something not a structure or union
l2cap.c: In function `start_rtx':
l2cap.c:3042: request for member `inuse' in something not a structure or union
l2cap.c: In function `start_ertx':
l2cap.c:3105: request for member `inuse' in something not a structure or union
l2cap.c:3119: structure has no member named `timer'
l2cap.c: In function `disable_ertx':
l2cap.c:3136: request for member `inuse' in something not a structure or union
l2cap.c: At top level:
l2cap.c:1961: warning: `l2cap_rtx_timeout' defined but not used
l2cap.c:2005: warning: `l2cap_ertx_timeout' defined but not used
make[3]: *** [l2cap.o] Error 1
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/openbt020506/apps/bluetooth/userstack'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/root/openbt020506/apps/bluetooth'
make: *** [all] Error 2
[root@sam openbt020506]#