[Asterisk-Users] chan_unistim compile failed

GeekSpeed geekspeed at gmail.com
Thu Mar 24 16:17:11 MST 2005


I am trying to compile chan_unistim and getting some compilation errors:

Asterisk Version: Asterisk CVS-03/21/05-12:24:27
AstHeaders: /usr/include
Gcc: gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
OS: CentOS 3.3 (final)

The isssue seems to be stemming from AST_MUTEX_DEFINE_STATIC - here is
the error dump from chan_unistim:

gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g 
-I/usr/include/ -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 
-Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o
chan_unistim.o chan_unistim.c
In file included from chan_unistim.c:28:
/usr/include/asterisk/utils.h:24: redefinition of `struct ast_hostent'
chan_unistim.c:52: warning: type defaults to `int' in declaration of
`AST_MUTEX_DEFINE_STATIC'
chan_unistim.c:52: warning: parameter names (without types) in
function declaration
chan_unistim.c:52: warning: data definition has no type or storage class
... (it goes on)...

I get similar errors trying to compile asterisk-addons/format_mp3/:
make[1]: Entering directory `/usr/src/asterisk-addons/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
format_mp3.c:71: warning: type defaults to `int' in declaration of
`AST_MUTEX_DEFINE_STATIC'
format_mp3.c:71: warning: parameter names (without types) in function
declaration
format_mp3.c:71: warning: data definition has no type or storage class
...(it goes on)..


Any ideas why this is breaking, I only noticed after the last CVS update.



More information about the asterisk-users mailing list