[Asterisk-Users] Compiling Asterisk-addons

Douglas Garstang dgarstang at oneeighty.com
Tue May 30 15:23:30 MST 2006


We need to use asterisk-addons.
Are you saying asterisk-addons from 1.2.7.1 can be safely used with svn trunk version of asterisk?

> -----Original Message-----
> From: John Bigelow [mailto:itzangler at digium.com]
> Sent: Tuesday, May 30, 2006 3:34 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Compiling Asterisk-addons
> 
> 
> I believe asterisk-addons won't compile with the latest 
> trunk. Use 1.2 
> branch instead if you want asterisk-addons.
> 
> -John
> 
> Douglas Garstang wrote:
> > Did the following:
> > svn checkout 
> http://svn.digium.com/svn/asterisk-addons/trunk asterisk-addons
> > svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
> > svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
> > svn checkout http://svn.digium.com/svn/libpri/trunk libpri
> >
> > Compiled and installed zaptel, libpri, asterisk and finally 
> asterisk-addons.
> > Following errors ocurrs when compiling asterisk-addons.
> > Also tried again after blowing away /usr/lib/asterisk.
> > Is it normal for svn code not to compile?
> >
> > hestia:(pbx1)asterisk-addons # make
> > ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE 
> -I/usr/local/mysql/include -I/usr/include/mysql   `ls *.c`
> > make -C format_mp3 all
> > make[1]: Entering directory `/root/svn/asterisk-addons/format_mp3'
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o common.o common.c
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o dct64_i386.o dct64_i386.c
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o decode_ntom.o decode_ntom.c
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o layer3.o layer3.c
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o tabinit.o tabinit.c
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o interface.o interface.c
> > gcc -pipe -fPIC -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT 
> -D_GNU_SOURCE  -O6    -c -o format_mp3.o format_mp3.c
> > In file included from /usr/include/asterisk/logger.h:28,
> >                  from /usr/include/asterisk/lock.h:83,
> >                  from format_mp3.c:20:
> > /usr/include/asterisk/compat.h:20: error: syntax error 
> before "__extension__"
> > /usr/include/asterisk/compat.h:20: error: syntax error 
> before '&&' token
> > In file included from /usr/include/asterisk/utils.h:36,
> >                  from /usr/include/asterisk/cdr.h:48,
> >                  from /usr/include/asterisk/channel.h:113,
> >                  from format_mp3.c:21:
> > /usr/include/asterisk/strings.h:264: error: syntax error 
> before "__extension__"
> > /usr/include/asterisk/strings.h:264: error: syntax error 
> before ';' token
> > /usr/include/asterisk/strings.h:264: error: `__len' 
> undeclared here (not in a function)
> > /usr/include/asterisk/strings.h:264: error: initializer 
> element is not constant
> > /usr/include/asterisk/strings.h:264: error: syntax error before "if"
> > /usr/include/asterisk/strings.h:264: error: redefinition of 
> `__retval'
> > /usr/include/asterisk/strings.h:264: error: `__retval' 
> previously defined here
> > /usr/include/asterisk/strings.h:264: error: syntax error 
> before "const"
> > /usr/include/asterisk/strings.h:264: error: syntax error 
> before '}' token
> > /usr/include/asterisk/strings.h:280: error: conflicting 
> types for `strtoq'
> > /usr/include/stdlib.h:362: error: previous declaration of `strtoq'
> > format_mp3.c:46: error: redefinition of `struct ast_filestream'
> > format_mp3.c:325: warning: function declaration isn't a prototype
> > format_mp3.c: In function `load_module':
> > format_mp3.c:336: warning: passing arg 1 of 
> `ast_format_register' from incompatible pointer type
> > format_mp3.c:336: error: too many arguments to function 
> `ast_format_register'
> > format_mp3.c: At top level:
> > format_mp3.c:342: warning: function declaration isn't a prototype
> > format_mp3.c:347: warning: function declaration isn't a prototype
> > format_mp3.c:359: warning: function declaration isn't a prototype
> > format_mp3.c:365: warning: function declaration isn't a prototype
> > {standard input}: Assembler messages:
> > {standard input}:58: Error: symbol `__retval' is already defined
> > make[1]: *** [format_mp3.o] Error 1
> > make[1]: Leaving directory `/root/svn/asterisk-addons/format_mp3'
> > make: *** [format_mp3/format_mp3.so] Error 2
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >   
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list