GNOME Bugzilla – Bug 728946
configure fails when using a version of GNU Bison built from Git
Last modified: 2014-11-20 13:36:08 UTC
I had the following problem configuring master of gstreamer.git: $ bison --version /gstreamer.build # bison --version bison (GNU Bison) 2.7.1.1194-51a4-dirty ... $ ./configure ... checking for bison... /usr/bin/bison checking bison version 2.7.1.1194-51a4 >= 2.4... Bareword found where operator expected at -e line 1, near "51a4" (Missing operator before a4?) syntax error at -e line 1, near "51a4 " Execution of -e aborted due to compilation errors. configure: error: no This is due to not quoting the string when calling 'perl' to check the version number. The - sign causes a syntax error. Patch attached which adds quotes to avoid this problem.
Created attachment 275121 [details] [review] gst-parser.m4: Fix Bison version check to handle development versions of GNU Bison
Thanks for the patch, and sorry for taking so long to get to it. I've pushed it to the master branch: commit dae0ad20f831b32d9fc68caa8f26b359276c3c5f Author: Sam Thursfield <sam.thursfield@codethink.co.uk> Date: Fri Apr 25 14:43:24 2014 +0300 gst-parser.m4: Fix Bison version check to handle development versions of GNU Bison Fixes checking bison version 2.7.1.1194-51a4 >= 2.4... Bareword found where operator expected at -e line 1, near "51a4" (Missing operator before a4?) syntax error at -e line 1, near "51a4 " Execution of -e aborted due to compilation errors. This is due to not quoting the string when calling 'perl' to check the version number. The - sign causes a syntax error. https://bugzilla.gnome.org/show_bug.cgi?id=728946