GNOME Bugzilla – Bug 444820
build error with grammar.tab.c
Last modified: 2007-06-10 13:14:33 UTC
/usr/bin/bison -d -v -p_gst_parse_yy ./grammar.y -o grammar.tab.c && \ mv grammar.tab.c grammar.tab_tmp.c && \ echo '#ifdef HAVE_CONFIG_H' > grammar.tab_tmp2.c && \ echo '#include <config.h>' >> grammar.tab_tmp2.c && \ echo '#endif' >> grammar.tab_tmp2.c && \ cat grammar.tab_tmp.c >> grammar.tab_tmp2.c && \ rm grammar.tab_tmp.c && \ mv grammar.tab_tmp2.c grammar.tab.c ./grammar.y:499: unrecognized: %parse-param ./grammar.y:499: Skipping to next % ./grammar.y:500: unrecognized: %parse-param ./grammar.y:500: Skipping to next % make[4]: *** [grammar.tab.c] Error 1 bison 1.35 flex 2.5.33
I guess this needs a newer bison version then. I wonder when %parse-param was added? Can you confirm that it works with a later bison version?
Seems to be there since bison 1.875 at least.
..which is btw more than 4 years old. Ok, I'll adjust the version check in CVS and if an older version is used just let it use the pregenerated parser sources too, same as for flex.
2007-06-10 Sebastian Dröge <slomo@circular-chaos.org> * m4/gst-parser.m4: Only generate the parser if bison >= 1.875 _and_ flex >= 2.5.31 is installed and use pre-generated sources otherwise. Fixes bug #444820.