GNOME Bugzilla – Bug 742867
Lasem 0.4.1 fails to build with bison 3.0
Last modified: 2015-01-17 23:00:52 UTC
The build failure looks like: make all-recursive make[1]: Entering directory '/home/abuild/rpmbuild/BUILD/lasem-0.4.1' Making all in itex2mml make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/lasem-0.4.1/itex2mml' make all-am make[3]: Entering directory '/home/abuild/rpmbuild/BUILD/lasem-0.4.1/itex2mml' CC y.tab.lo itex2MML.y: In function 'itex2MML_yyparse': itex2MML.y:298:25: error: 'ret_str' undeclared (first use in this function) char ** r = (char **) ret_str; ^ itex2MML.y:298:25: note: each undeclared identifier is reported only once for each function it appears in itex2MML.y: In function 'itex2MML_parse': itex2MML.y:1696:3: error: too many arguments to function 'itex2MML_yyparse' result = itex2MML_yyparse (&mathml); ^ y.tab.c:63:25: note: declared here #define yyparse itex2MML_yyparse ^ y.tab.c:2678:1: note: in expansion of macro 'yyparse' yyparse (void) ^ itex2MML.y: In function 'itex2MML_filter': itex2MML.y:1711:3: error: too many arguments to function 'itex2MML_yyparse' return itex2MML_yyparse (0); ^ y.tab.c:63:25: note: declared here #define yyparse itex2MML_yyparse ^ y.tab.c:2678:1: note: in expansion of macro 'yyparse' yyparse (void) ^ itex2MML.y: In function 'itex2MML_html_filter': itex2MML.y:1732:3: warning: implicit declaration of function 'itex2MML_do_html_filter' [-Wimplicit-function-declaration] return itex2MML_do_html_filter (buffer, length, 0); ^ itex2MML.y: In function 'itex2MML_do_html_filter': itex2MML.y:1776:2: warning: label '_until_html' defined but not used [-Wunused-label] _until_html: ^ Makefile:404: recipe for target 'y.tab.lo' failed make[3]: *** [y.tab.lo] Error 1 make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/lasem-0.4.1/itex2mml' Makefile:327: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/lasem-0.4.1/itex2mml' Makefile:487: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/lasem-0.4.1' Makefile:373: recipe for target 'all' failed make: *** [all] Error 2
As abiword is using the same itex2mml, I managed to find a bug there with a fix: http://bugzilla.abisource.com/show_bug.cgi?id=13593
Created attachment 294446 [details] [review] Fix build with bison 3.0 - patch based on abiword's fix
Patch applied. Thanks.