[Asterisk-Users] Asterix build errors. Bison related...

Aadithya V. Kamath aadithya.kamath at ittiam.com
Wed Mar 24 03:41:57 MST 2004


Hi,

I did the following:
1) Obtained asterisk-0.7.2.tar.gz from digium's website.
2) Extracted to /usr/src/asterisk/
3) Attempted the make command.

I obtained the following errors after quite some time in the build process:

"gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686   -DASTERISK_VERSION=\"0.7.2\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     -DNEW_PRI_HANGUP    -c -o asterisk.o asterisk.c
bison ast_expr.y --name-prefix=ast_yy -o ast_expr.c
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686   -DASTERISK_VERSION=\"0.7.2\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     -DNEW_PRI_HANGUP    -c -o ast_expr.o ast_expr.c
/usr/local/share/bison.simple: In function `ast_yyparse':
/usr/local/share/bison.simple:219: number of arguments doesn't match prototype
/usr/local/share/bison.simple:153: prototype declaration
ast_expr.y: In function `ast_expr':
ast_expr.y:310: too many arguments to function `ast_yyparse'
make: *** [ast_expr.o] Error 1"

Is it a problem with the version of Bison? can anyone please provide any clues regarding the problem.

thanks,
Kamath




More information about the asterisk-users mailing list