[asterisk-dev] cdr_addon_mysql

Jon Webster jon.webster at elephantoutlook.com
Thu May 25 08:03:27 MST 2006


Trunk is going through a LOT of changes; the add-on's will get fixed after trunk settles down. 

If they are fixed now they will just break again anyways.

________________________________________
From: asterisk-dev-bounces at lists.digium.com [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of John Martin
Sent: Wednesday, May 24, 2006 3:41 PM
To: asterisk-dev at lists.digium.com
Subject: [asterisk-dev] cdr_addon_mysql

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





More information about the asterisk-dev mailing list