[Home]

Summary:ASTERISK-07082: realtime mysql and cdr mysql in trunk are both broken
Reporter:sohosys (sohosys)Labels:
Date Opened:2006-06-02 08:44:24Date Closed:2006-06-04 16:19:54
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/DatabaseSupport
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:/trunk (216-219) addons, including realtime mysql and cdr mysql, will not compile. Current asterisk trunk will not run against the most recently released addons that will compile, trunk can not be tested if using mysql cdr or realtime.

****** ADDITIONAL INFORMATION ******

[root@vg3 addons-trunk]# make
make -C format_mp3 all
make[1]: Entering directory `/usr/src/addons-trunk/format_mp3'
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:115,
                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: previous definition of â__retvalâ was 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:365: error: previous definition of âstrtoqâ was here
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 argument 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}:9: Error: symbol `__retval' is already defined
make[1]: *** [format_mp3.o] Error 1
make[1]: Leaving directory `/usr/src/addons-trunk/format_mp3'
make: *** [format_mp3/format_mp3.so] Error 2
[root@vg3 addons-trunk]#
Comments:By: Russell Bryant (russell) 2006-06-04 16:19:54

This is a known issue that has been reported many times both on the bug tracker and Asterisk mailing lists.  Asterisk-addons will be brought up to date before the 1.4 beta releases.