|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35951 configure doesn't check for flex
Submitted: 2006-01-10 01:04 UTC Modified: 2006-01-10 11:56 UTC
From: jan at horde dot org Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 4CVS-2006-01-10 (CVS) OS: Linux SUSE 10.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jan at horde dot org
New email:
PHP Version: OS:


 [2006-01-10 01:04 UTC] jan at horde dot org
If building from a CVS checkout, flex is required to create zend_language_scanner.c from zend_language_scanner.l. But the configure script doesn't check for it, or at least doesn't fail if it isn't installed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-10 08:35 UTC]
1) It is required only if you changed the .l file and want to rebuild the .c file.
2) ./configure checks for it.
3) What's the exact problem?
 [2006-01-10 11:50 UTC] jan at horde dot org
1) It is also required if you build a fresh checkout from CVS (see version).
2) configure does *not* check for it, otherwise it wouldn't fail and I wouldn't have created this bug report
3) The fact that the check in configure is obviously broken atm.
 [2006-01-10 11:56 UTC]
"PHP uses an advanced configuration system that requires you to have the following tools. All necessary utilities can be obtained from the GNU FTP site. 
autoconf: 2.13
automake: 1.4+
libtool: 1.4.x+ (except 1.4.2)
bison: 1.28 (preferred), 1.35, or 1.75
flex: 2.5.4"

And this is what I see:
./config.nice | grep flex
checking for flex... (cached) flex
checking flex version... 2.5.4 (ok)

so it DOES check for flex and you should see a warning telling that "You will need flex 2.5.4 or later if you want to regenerate Zend/PHP lexical parsers".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 18:05:45 2022 UTC