ID:               20623
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         *Configuration Issues
 Operating System: Solaris 9
 PHP Version:      4.3.0RC1
 New Comment:

You need GNU flex.



Previous Comments:
------------------------------------------------------------------------

[2002-11-25 09:17:55] [EMAIL PROTECTED]

Many thanks for your help with problems so far; I hope this is my first
one which won't waste your time being bogus!

Mark

Problem is easily reproduced by running ./configure with no options
"out of the box" if the machine does not have flex installed (but does
have lex):

bash-2.05$ ./configure
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... sparc-sun-solaris2.9
Updated php_version.h
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the
PHP parsers.
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for working const... yes
checking flex version... lex: Software Generation Utilities (SGU)
Solaris-ELF (4.0)

and configure hangs.

My interpretation of the problem: configure has identified that lex is
available, but not flex; but lex -V produces its output on standard
error, not standard input, so the pipe to check the version string
defaults to reading the terminal.  (You can see the output that lex -V
sends to standard error immediately after checking flex version...
above)

Workaround: it's not clear to me that the version numbers (or their
format) in lex and flex are going to be the same anyway; deleting the
flex version test (8 lines starting at line 2603) made configure work
for me.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20623&edit=1

Reply via email to