GNOME Bugzilla – Bug 127838
[PATCH] check bison version in configure.ac
Last modified: 2005-08-15 01:45:54 UTC
Making all in parse make[4]: Entering directory `/usr/src/gstreamer/gstreamer-0.7.2-build/gst/parse' /usr/bin/bison -d -v -p_gst_parse__yy ../../../gstreamer-0.7.2/gst/parse/grammar.y -o grammar.tab.c ../../../gstreamer-0.7.2/gst/parse/grammar.y: warning: 24 shift/reduce conflicts and 3 reduce/reduce conflicts /usr/bin/flex -P_gst_parse_yy ../../../gstreamer-0.7.2/gst/parse/parse.l grammar.tab.h source='lex._gst_parse_yy.c' object='libgstparse_la-lex._gst_parse_yy.lo' libtool=yes \ depfile='.deps/libgstparse_la-lex._gst_parse_yy.Plo' tmpdepfile='.deps/libgstparse_la-lex._gst_parse_yy.TPlo' \ depmode=gcc /bin/sh ../../../gstreamer-0.7.2/depcomp \ /bin/sh ../../libtool --mode=compile i386-linux-gcc -DHAVE_CONFIG_H -I. -I../../../gstreamer-0.7.2/gst/parse -I../.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../../gstreamer-0.7.2 -Wall -DGST_DISABLE_DEPRECATED -g -I../../../gstreamer-0.7.2/libs -I../../../gstreamer-0.7.2/include -g -O2 -c -o libgstparse_la-lex._gst_parse_yy.lo `test -f 'lex._gst_parse_yy.c' || echo '../../../gstreamer-0.7.2/gst/parse/'`lex._gst_parse_yy.c mkdir .libs i386-linux-gcc -DHAVE_CONFIG_H -I. -I../../../gstreamer-0.7.2/gst/parse -I../.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../../gstreamer-0.7.2 -Wall -DGST_DISABLE_DEPRECATED -g -I../../../gstreamer-0.7.2/libs -I../../../gstreamer-0.7.2/include -g -O2 -c lex._gst_parse_yy.c -Wp,-MD,.deps/libgstparse_la-lex._gst_parse_yy.TPlo -fPIC -DPIC -o .libs/libgstparse_la-lex._gst_parse_yy.o ../../../gstreamer-0.7.2/gst/parse/grammar.y:533: conflicting types for `YYSTYPE' ./grammar.y:533: previous declaration of `YYSTYPE' make[4]: *** [libgstparse_la-lex._gst_parse_yy.lo] Error 1 make[4]: Leaving directory `/usr/src/gstreamer/gstreamer-0.7.2-build/gst/parse' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gstreamer/gstreamer-0.7.2-build/gst' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/gstreamer/gstreamer-0.7.2-build/gst' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gstreamer/gstreamer-0.7.2-build' make: *** [all] Error 2 gcc version 2.95.4 20020723 (prerelease) bison (GNU Bison) 1.75 Hmmm... I forgot why I haven't upgraded to bison-1.875b, but I see that I tried and went back to 1.75. But apparently forgot to note down the reasons. Maybe I'll give that a try again.
*** Bug 128192 has been marked as a duplicate of this bug. ***
*** Bug 127982 has been marked as a duplicate of this bug. ***
I had the same problem running SuSE 7.2 with bison 1.28. Upgrading bison to 1.875 fixed the problem.
*** Bug 131452 has been marked as a duplicate of this bug. ***
I can confirm that it works with bison >= 1.35, but not with 1.28. According to Google other projects were able to fix similar problems, so I'm not sure if we should invest time in a fix or just require bison 1.35
ok, bumped the requirement in REQUIREMENTS to 1.35. Thomas, do you feel interested in writing a test to check the bison version?
Created attachment 25598 [details] [review] proposed patch that adds bison version check
*** Bug 137470 has been marked as a duplicate of this bug. ***
Adding the PATCH keyword and bumping priority to high.
This has been applied to cvs HEAD.