#3 Build faliure: inuse in something ...

open
nobody
None
5
2015-01-13
2002-06-03
Anonymous
No

Hi, I am trying to build openBT on RedHat 7.3 with
kernel 2.4.18-3, and get the error below.

Unfortunately I am not experienced with Linux C
programming, so can't debug it myself.

Many thanks in advance,

Christian Ashby

---- Build output follows ----

[root@blacbirdv openbt]# make
make -C linux/drivers/char/bluetooth
make[1]: Entering directory
`/root/openbt/linux/drivers/char/bluetooth'
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o bluetooth.o bluetooth.c
bluetooth.c: In function `bt_open':
bluetooth.c:429: warning: unused variable `line'
bluetooth.c: At top level:
bluetooth.c:3425: warning: `psmname' defined but not used
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o bt_proc.o bt_proc.c
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o btdebug.o btdebug.c
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o btmem.o btmem.c
In file included from btmem.c:50:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o hci.o hci.c
hci.c:2518: warning: `role_discovery' defined but not used
hci.c:2774: warning: `write_inquiryscan_activity'
defined but not used
hci.c:2968: warning: `write_automatic_flush_timeout'
defined but not used
hci.c:2988: warning:
`hci_set_host_controller_flow_control' defined but not used
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o hci_vendor.o hci_vendor.c
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o l2cap.o l2cap.c
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o l2cap_con.o l2cap_con.c
In file included from l2cap_con.c:51:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o l2cap_sec.o l2cap_sec.c
In file included from l2cap_sec.c:51:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o rfcomm.o rfcomm.c
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o rfcomm_sec.o rfcomm_sec.c
In file included from rfcomm_sec.c:51:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o sec_client.o sec_client.c
In file included from sec_client.c:50:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
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/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -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/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o tcs.o tcs.c
In file included from tcs.c:51:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o test.o test.c
In file included from test.c:50:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
gcc -D__KERNEL__ -DMODULE -I../../../include
-I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strength-reduce -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -MD
-c -o hci_sec.o hci_sec.c
In file included from hci_sec.c:50:
/usr/src/linux/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h
instead.
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/openbt/linux/drivers/char/bluetooth'
make -C libs install
make[1]: Entering directory `/root/openbt/libs'
Making install in expat for host
make[2]: Entering directory `/root/openbt/libs/expat'
Making install in xmltok for host
make[3]: Entering directory
`/root/openbt/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/openbt/target/host/lib
install -d /root/openbt/target/host/include
install -m 0644 libxmltok.a /root/openbt/target/host/lib/
install -m 0644 xmltok.h /root/openbt/target/host/include/
make[3]: Leaving directory `/root/openbt/libs/expat/xmltok'
Making install in xmlparse for host
make[3]: Entering directory
`/root/openbt/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/openbt/target/host/lib
install -d /root/openbt/target/host/include
install -m 0644 libxmlparse.a /root/openbt/target/host/lib/
install -m 0644 xmlparse.h
/root/openbt/target/host/include/
make[3]: Leaving directory
`/root/openbt/libs/expat/xmlparse'
make[2]: Leaving directory `/root/openbt/libs/expat'
make[1]: Leaving directory `/root/openbt/libs'
make -C apps/bluetooth/userstack links
make[1]: Entering directory
`/root/openbt/apps/bluetooth/userstack'
make[1]: Leaving directory
`/root/openbt/apps/bluetooth/userstack'
make -C apps/bluetooth
make[1]: Entering directory `/root/openbt/apps/bluetooth'
Making all in experimental for host
make[2]: Entering directory
`/root/openbt/apps/bluetooth/experimental'
cc -Wall -O0 -g -fno-omit-frame-pointer
-DHAVE_READLINE_READLINE
-I/root/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/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/openbt/apps/bluetooth/experimental'
Making all in sdp_server for host
make[2]: Entering directory
`/root/openbt/apps/bluetooth/sdp_server'
cc -Wall -O0 -g -fno-omit-frame-pointer
-I/root/openbt/target/host/include -MMD -c -o
sdp_server.o sdp_server.c
cc -Wall -O0 -g -fno-omit-frame-pointer
-I/root/openbt/target/host/include -MMD -c -o
sdp_parser.o sdp_parser.c
cc -L/root/openbt/target/host/lib sdp_server.o
sdp_parser.o -lxmlparse -lxmltok -o sdp_server
make[2]: Leaving directory
`/root/openbt/apps/bluetooth/sdp_server'
Making all in userstack for host
make[2]: Entering directory
`/root/openbt/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:2518: warning: `role_discovery' defined but not used
hci.c:2774: warning: `write_inquiryscan_activity'
defined but not used
hci.c:2968: warning: `write_automatic_flush_timeout'
defined but not used
hci.c:2988: warning:
`hci_set_host_controller_flow_control' defined but not used
hci.c:4220: 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/openbt/apps/bluetooth/userstack'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/root/openbt/apps/bluetooth'
make: *** [all] Error 2

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks