[asterisk-dev] cdr_addon_mysql

John Martin John.Martin at AuPix.com
Wed May 24 12:41:25 MST 2006


Hi All,

 

Can anyone suggest why asterisk_addons (from asterisk_addons/trunk(216))
doesn't build with the latest asterisk trunk(29988)?

 

I get conflicting definitions of strtoq from stdlib.h and
include/asterisk/strings.h

 

I'm running CentOS4.2 and a vanilla ./configure

 

>From the compilation:

[root at AstDev asterisk-addons]# make clean

rm -f *.so *.o .depend

make -C format_mp3 clean

make[1]: Entering directory `/usr/src/asterisk-addons/format_mp3'

rm -f *.o *.so *~

make[1]: Leaving directory `/usr/src/asterisk-addons/format_mp3'

 

 

[asterisk-addons]# make cdr_addon_mysql

cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o
cdr_addon_m

ysql.o cdr_addon_mysql.c

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 cdr_addon_mysql.c:25:

/usr/include/asterisk/strings.h:280: error: conflicting types for
'strtoq'

/usr/include/stdlib.h:197: error: previous declaration of 'strtoq' was
here

/usr/include/asterisk/strings.h:280: error: conflicting types for
'strtoq'

/usr/include/stdlib.h:197: error: previous declaration of 'strtoq' was
here

make: *** [cdr_addon_mysql.o] Error 1

 

Thanks, John

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060524/48e4cf00/attachment.htm


More information about the asterisk-dev mailing list