GNOME Bugzilla – Bug 705401
GStreamer does not build with Bison 3.0
Last modified: 2013-08-21 09:04:18 UTC
Created attachment 250765 [details] [review] Patch to fix warnings because of redundant declarations Bison did some API changes. Gst does not build: grammar.tab.c: In function 'priv_gst_parse_yyparse': grammar.tab.c:1809:7: error: too few arguments to function 'priv_gst_parse_yylex' if (yychar == YYEMPTY) ^ ./grammar.y:39:5: note: declared here int priv_gst_parse_yylex (void * yylval_param , yyscan_t yyscanner); ^ The patch to fix is pretty simple, didn't test it with older bison though.
Created attachment 250766 [details] [review] Patch to fix build with bison 3.0
Comment on attachment 250766 [details] [review] Patch to fix build with bison 3.0 Thanks for the patch! Unfortunately this seems to break the build with bison 2.x: CC libgstparse_la-grammar.tab.lo grammar.tab.c: In function 'priv_gst_parse_yyparse': grammar.tab.c:1992:7: error: too many arguments to function 'priv_gst_parse_yylex' ./grammar.y:39:5: note: declared here make: *** [libgstparse_la-grammar.tab.lo] Error 1
The patch fixes the build, but it crashes bmonkey@bbook:~$ gst-launch-1.0 videotestsrc ! autovideosink Caught SIGSEGV
+ Trace 232334
Any chance you could provide a stack trace with full debugging symbols?
gst-launch freezes at this step with debugging symbols: 0:00:00.044489880 11820 0x717a00 INFO GST_PIPELINE gstparse.c:322:gst_parse_launch_full: parsing pipeline description 'videotestsrc ! autovideosink ' i tried "-g -O0", "-g3", "-g" but it does not crash anymore.
Could you get a backtrace of that crash? Must be somewhere in the bison generated code
Program received signal SIGSEGV, Segmentation fault. priv_gst_parse_yylex (yylval_param=yylval_param@entry=0x7fffffffd3f0, yyscanner=0x0) at lex.priv_gst_parse_yy.c:1157 1157 #line 71 "parse.l" (gdb) bt
+ Trace 232400
*** This bug has been marked as a duplicate of bug 706462 ***