[Asterisk-Dev] chan_bluetooth not compiling on current 1.0 cvs

Leandro leandro at texnet.it
Wed Aug 31 09:58:04 MST 2005


Hi,
I try to compile David Woodhouse cvs version of chan_bluetooth inside 
latest 1.0 cvs version and I get the following errors:

gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
-D_GNU_SOURCE  -O6 -march=i686   -DZAPTEL_OPTIMIZATIONS  
-DASTERISK_VERSION=\"CVS-v1-0-08/31/05-16:45:07\" -DINSTALL_PREFIX=\"\" 
-DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
-DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
-DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
-DASTMODDIR=\"/usr/lib/asterisk/modules\" 
-DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN       
-Wno-missing-prototypes -Wno-missing-declarations   -DZAPATA_PRI   
-DIAX_TRUNKING   -DCRYPTO -fPIC  -o chan_bluetooth.o chan_bluetooth.c
chan_bluetooth.c:530:2: #error fish
chan_bluetooth.c: In function `blt_read':
chan_bluetooth.c:859: error: `loopback' undeclared (first use in this 
function)
chan_bluetooth.c:859: error: (Each undeclared identifier is reported 
only once
chan_bluetooth.c:859: error: for each function it appears in.)
chan_bluetooth.c: In function `blt_new':
chan_bluetooth.c:1140: error: structure has no member named `rawreadformat'
chan_bluetooth.c:1141: error: structure has no member named `rawwriteformat'
make[1]: *** [chan_bluetooth.o] Error 1
make[1]: Leaving directory 
`/usr/local/src/cvs-asterisk-1.0/asterisk/channels'
make: *** [subdirs] Error 1

I try also on latest 1.2 cvs version and I get different following errors:

gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
-D_GNU_SOURCE  -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS         
-fomit-frame-pointer  -Wno-missing-prototypes -Wno-missing-declarations 
-DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC  -o chan_bluetooth.o 
chan_bluetooth.c
chan_bluetooth.c: In function `blt_read':
chan_bluetooth.c:859: error: `loopback' undeclared (first use in this 
function)
chan_bluetooth.c:859: error: (Each undeclared identifier is reported 
only once
chan_bluetooth.c:859: error: for each function it appears in.)
chan_bluetooth.c: In function `ring_hs':
chan_bluetooth.c:925: error: structure has no member named `callerid'
chan_bluetooth.c:928: error: structure has no member named `callerid'
chan_bluetooth.c:928: error: structure has no member named `callerid'
chan_bluetooth.c:928: error: structure has no member named `callerid'
chan_bluetooth.c:928: error: structure has no member named `callerid'
chan_bluetooth.c:928: error: structure has no member named `callerid'
chan_bluetooth.c: In function `blt_parse_config':
chan_bluetooth.c:2805: warning: implicit declaration of function `ast_load'
chan_bluetooth.c:2805: warning: assignment makes pointer from integer 
without a cast
chan_bluetooth.c: In function `__unload_module':
chan_bluetooth.c:3094: warning: passing arg 1 of 
`ast_channel_unregister' from incompatible pointer type
chan_bluetooth.c: In function `load_module':
chan_bluetooth.c:3196: warning: passing arg 1 of `ast_channel_register' 
from incompatible pointer type
chan_bluetooth.c:3196: error: too many arguments to function 
`ast_channel_register'
make[1]: *** [chan_bluetooth.o] Error 1
make[1]: Leaving directory `/usr/local/src/cvs-asterisk/asterisk/channels'
make: *** [subdirs] Error 1

What asterisk version chan_bluetooth is made for?

Not -dev related, is there anyone who wrote an "howto" on configuring 
chan_bluetooth? Using Theo Zourzouvillys version (a bit outdated for 
what I read on the list) with 1.0 asterisk, I manage to get a call using 
a SonyEricsson T630, but no audio in either way. Maybe I use wrong 
parameters in the bluetooth.conf... anyone using the same phone (or 
whatever phone) can send me (or on -user list) a "sdptool browse" output 
and a bluetooth.conf file?

Thank you

Leandro






More information about the asterisk-dev mailing list