php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jan at horde dot org
New email:
PHP Version: OS:

 

 [2006-01-10 01:04 UTC] jan at horde dot org
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-10 08:35 UTC] tony2001@php.net
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] tony2001@php.net
http://www.php.net/anoncvs.php
"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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC