[Asterisk-Users] bison/flex version warning
Mike M
no-linux-support at earthlink.net
Thu Jun 2 17:50:11 MST 2005
On Thu, Jun 02, 2005 at 01:16:10PM -0500, Andrew Latham wrote:
> upgrade
> just ./conifure and make it.......
>
> Centos version is older... Try upgrading.....
I followed the instructions in warning and in the package README and the
warning went away on a subsequent "make clean; make install > make.out
2>&1".
Still using the same bison:
[root at b4 asterisk]# bison --version
bison (GNU Bison) 1.875c
It's the flex update that did it:
[root at b4 asterisk]# flex --version
flex 2.5.31
I misinterpreted where the problem was. I thought it was in bison and
instead it was in flex. This is way more direct involvement with lex/yacc
than I've ever had before, so I pass that off as my excuse. I guess I
could have just read the warning message that explicitly says that the
"expression parser" is flex.
Here's what the good output looks like. I like to put this stuff in to
make for better googles.
make ast_expr.a
make[1]: Entering directory `/usr/src/asterisk'
bison -v -d --name-prefix=ast_yy ast_expr2.y -o ast_expr2.c
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT
-D_GNU_SOURCE -O6 -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
-DASTERISK_VERSION=\"CVS-HEAD-06/02/05-20:25:56\"
-DASTERISK_VERSION_NUM=999999 -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
-fomit-frame-pointer -c -o ast_expr2.o ast_expr2.c
ast_expr2.c: In function `ast_yyparse':
ast_expr2.c:1124: warning: implicit declaration of function `ast_yylex'
flex ast_expr2.fl
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT
-D_GNU_SOURCE -O6 -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS
-DASTERISK_VERSION=\"CVS-HEAD-06/02/05-20:25:56\"
-DASTERISK_VERSION_NUM=999999 -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
-fomit-frame-pointer -c -o ast_expr2f.o ast_expr2f.c
ast_expr2f.c:1772: warning: no previous prototype for `ast_yyget_column'
ast_expr2f.c:1848: warning: no previous prototype for `ast_yyset_column'
ar r ast_expr.a ast_expr2.o ast_expr2f.o
ranlib ast_expr.a
rm ast_expr2.c
Thanks,
--
Mike
>
> On 6/2/05, Mike M <no-linux-support at earthlink.net> wrote:
> > Hi,
> >
> > (I seem to be having some trouble getting messages to post on the list so
> > I may be duplicating an earlier post. Apologies if this is the case.)
> >
> > I am compiling CVS tip Asterisk on a fresh CentOS 3.4 install. I got
> > this warning:
> >
> > make ast_expr.a
> > make[1]: Entering directory `/usr/src/asterisk'
> > bison -v -d --name-prefix=ast_yy ast_expr.y -o ast_expr.c
> > =================================================================================
> > NOTE: Using older version of expression parser. To use the newer
> > version,
> > NOTE: upgrade to flex 2.5.31 or higher, which can be found at
> > NOTE: http://sourceforge.net/project/showfiles.php?group_id=72099
> > =================================================================================
> >
> > My bison is this: bison (GNU Bison) 1.875c (Which appears to be ancient
> > because the s/f link above shows the 2.5.31 flex archive date as
> > 2003-03-31).
> >
> > What's the risk of ignoring this warning?
> >
> > Rhetorical question: why is CentOS using a moldy old flex/bison package?
> >
> > Thanks,
> > --
> > Mike
More information about the asterisk-users
mailing list