[Asterisk-Dev] App voicemail2 compile error

Brancaleoni Matteo mbrancaleoni at espia.it
Fri May 23 09:42:31 MST 2003


Using latest cvs.

when compiling asterisk with mysql support for voicemail2,
I got the following error on line 216 of app_voicemail2.c :

gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -O6 -g 
-Iinclude -I../include -DUSEMYSQLVM=\"1\" -D_REENTRANT -D_GNU_SOURCE
-march=i686  -DASTERISK_VERSION=\"CVS-07/21/02-14:49:14\" -DDO_CRASH
-DDEBUG_THREADS     -c -o app_voicemail2.o app_voicemail2.c
app_voicemail2.c: In function `find_user':
app_voicemail2.c:216: invalid type argument of `unary *'
app_voicemail2.c: In function `load_config':
app_voicemail2.c:2424: warning: unused variable `cat'
app_voicemail2.c:2425: warning: unused variable `var'
make[1]: *** [app_voicemail2.o] Error 1
make[1]: Leaving directory
`/home/matteo/software/telephony/Digium/asterisk/apps'
make: *** [subdirs] Error 1
[root at athlon asterisk]#

Could the error be that this line (216)
        *retval->attach=-1;
should be
        retval->attach=-1;

??

Matteo

-- 
Brancaleoni Matteo <mbrancaleoni at espia.it>
Espia - Emmgi Srl




More information about the asterisk-dev mailing list