[Asterisk-Users] Can't compile ael_lex.c on HEAD

Chris Stenton jacs at gnome.co.uk
Wed May 3 00:52:43 MST 2006


I have left this a few days but I still can't compile ael_lex.c in HEAD on CENTOS. I've installed ncurses and bison but I get the following error

gcc   -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3    -O6 -march=i686          -fomit-frame-pointer  -include ../include/
clude -I.. -fPIC -I. -c -o ael/aelflex.o ael/ael_lex.c
In file included from ael.flex:65:
ael.y:53: error: syntax error before '<<' token
ael.tab.h:141: error: syntax error before '}' token
ael.tab.h:141: warning: type defaults to `int' in declaration of `YYLTYPE'
ael.tab.h:141: warning: data definition has no type or storage class
ael_lex.c:831: error: syntax error before "YYLTYPE"
ael_lex.c:831: warning: no semicolon at end of struct or union
ael_lex.c:876: error: syntax error before '*' token
ael_lex.c:876: warning: type defaults to `int' in declaration of `ael_yyget_lloc'
ael_lex.c:876: warning: data definition has no type or storage class
ael_lex.c:878: error: syntax error before '*' token
ael_lex.c:878: warning: function declaration isn't a prototype
ael_lex.c:987: error: syntax error before "YYLTYPE"
ael_lex.c:987: warning: function declaration isn't a prototype
ael_lex.c:1011: error: syntax error before "YYLTYPE"
ael_lex.c:1012: warning: function declaration isn't a prototype
ael_lex.c: In function `ael_yylex':
ael_lex.c:1016: error: `yyscanner' undeclared (first use in this function)
ael_lex.c:1016: error: (Each undeclared identifier is reported only once

Any ideas.


More information about the asterisk-users mailing list