After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 444820 - build error with grammar.tab.c
build error with grammar.tab.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.13
Other Linux
: Normal normal
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-06 17:51 UTC by Jens Granseuer
Modified: 2007-06-10 13:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jens Granseuer 2007-06-06 17:51:45 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
Comment 1 Sebastian Dröge (slomo) 2007-06-06 21:32:33 UTC
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?
Comment 2 Sebastian Dröge (slomo) 2007-06-06 21:36:32 UTC
Seems to be there since bison 1.875 at least.
Comment 3 Sebastian Dröge (slomo) 2007-06-06 21:38:07 UTC
..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.
Comment 4 Sebastian Dröge (slomo) 2007-06-10 13:14:33 UTC
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.