From: [EMAIL PROTECTED] Operating system: Solaris 9 PHP version: 4.3.0RC1 PHP Bug Type: *Configuration Issues Bug description: configure hangs trying to determine lex version
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 bug report at http://bugs.php.net/?id=20623&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20623&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20623&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20623&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20623&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20623&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20623&r=support Expected behavior: http://bugs.php.net/fix.php?id=20623&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20623&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20623&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20623&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20623&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20623&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20623&r=isapi