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 728946 - configure fails when using a version of GNU Bison built from Git
configure fails when using a version of GNU Bison built from Git
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: common
git master
Other Linux
: Normal minor
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-25 11:44 UTC by Sam Thursfield
Modified: 2014-11-20 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst-parser.m4: Fix Bison version check to handle development versions of GNU Bison (988 bytes, patch)
2014-04-25 11:45 UTC, Sam Thursfield
committed Details | Review

Description Sam Thursfield 2014-04-25 11:44:46 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.
Comment 1 Sam Thursfield 2014-04-25 11:45:13 UTC
Created attachment 275121 [details] [review]
gst-parser.m4: Fix Bison version check to handle development versions of GNU Bison
Comment 2 Tim-Philipp Müller 2014-11-20 13:35:55 UTC
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