#2 subroutine ref error

open
nobody
None
5
2011-07-14
2011-07-14
Anonymous
No

- Start bluediving, hit "1" (scan), hit "i" (info), hit "8" (show all devices)
You will get: "Can't use string ("1") as a subroutine ref while "strict refs" in use at ./bluedivingNG.pl line 198, <STDIN> line 3."
The problem happens on Ubuntu 11.04 and Backtrack 5.

I don't know if this can help, this is ./make_tools.sh" output:
------------------------------
$ sudo ./make_tools.sh
rm -f atshell attest bdaddr hcidump-crash hstest l2cap-packet l2cap_headersize_overflow rfcomm_shell
echo -en "\n<<< Compiling atshell\n"
-en
<<< Compiling atshell

gcc -lbluetooth -lreadline -lncurses atshell.c -o atshell
echo -en "\n<<< Compiling attest\n"
-en
<<< Compiling attest

gcc -lbluetooth attest.c -o attest
echo -en "\n<<< Compiling bdaddr\n"
-en
<<< Compiling bdaddr

gcc -lbluetooth bdaddr.c -o bdaddr
echo -en "\n<<< Compiling hcidump-crash\n"
-en
<<< Compiling hcidump-crash

gcc -lbluetooth hcidump-crash.c -o hcidump-crash
echo -en "\n<<< Compiling hstest\n"
-en
<<< Compiling hstest

gcc -lbluetooth hstest.c -o hstest
echo -en "\n<<< Compiling l2cap-packet\n"
-en
<<< Compiling l2cap-packet

gcc -lbluetooth l2cap-packet.c -o l2cap-packet
echo -en "\n<<< Compiling l2cap_headersize_overflow\n"
-en
<<< Compiling l2cap_headersize_overflow

gcc -lbluetooth l2cap_headersize_overflow.c -o l2cap_headersize_overflow
echo -en "\n<<< Compiling rfcomm_shell\n"
-en
<<< Compiling rfcomm_shell

gcc -lbluetooth -lreadline -lncurses rfcomm_shell.c -o rfcomm_shell

<<< Compiling bccmd
gcc -lbluetooth -lusb csr.c csr.h csr_3wire.c csr_bcsp.c csr_h4.c csr_hci.c csr_usb.c ubcsp.c bccmd.c -o bccmd

<<< Compiling btftp
gcc -lbluetooth -lopenobex -lreadline -lxml2 obex.c sdp.c folder.c main.c -o btftp

<<< Compiling btobex
gcc -lbluetooth -lopenobex obex.c sdp.c main.c -o btobex

<<< Compiling bss
gcc -c bss.c
gcc -c l2ping.c
gcc -c replace.c
replace.c: In function ‘replace’:
replace.c:22:22: warning: incompatible implicit declaration of built-in function ‘strstr’
replace.c:26:21: warning: incompatible implicit declaration of built-in function ‘strlen’
replace.c:39:7: warning: incompatible implicit declaration of built-in function ‘strncpy’
replace.c:44:7: warning: incompatible implicit declaration of built-in function ‘strcpy’
replace.c:54:78: warning: incompatible implicit declaration of built-in function ‘strcpy’
gcc bss.o l2ping.o replace.o -o bss -Wall -lbluetooth

<<< Compiling carwhisperer
gcc carwhisperer.c -o carwhisperer -lbluetooth

<<< Compiling greenplaque
cc -c -o src/greenplaque.o src/greenplaque.c
src/greenplaque.c: In function ‘sdptool’:
src/greenplaque.c:253:2: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘int *’
src/greenplaque.c:253:2: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘int *’
src/greenplaque.c:259:2: warning: format ‘%hx’ expects type ‘int’, but argument 4 has type ‘time_t’
src/greenplaque.c:259:2: warning: format ‘%hx’ expects type ‘int’, but argument 4 has type ‘time_t’
cc -o src/greenplaque src/greenplaque.o -lbluetooth -lpthread -D_REENTRANT
rm src/greenplaque.o

<<< Compiling hidattack
cc -Wall -lbluetooth hidattack.o sdp.o -o hidattack

<<< Compiling redfang
./redfang/fang
./redfang/fang.1
./redfang/fang.c
./redfang/fang.o
./redfang/INSTALL
./redfang/Makefile
./redfang/Makefile.am
./redfang/Makefile.in
./redfang/README
fang.c: In function ‘cmd_hunt’:
fang.c:78:9: warning: unknown escape sequence: '\@'
fang.c:85:3: warning: format not a string literal and no format arguments
------------------------------

Thank you!
manzamanna

Discussion


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks