php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40042 Cannot configure: ./configure: line 2333: test: =: unary operator expected
Submitted: 2007-01-06 11:06 UTC Modified: 2010-12-20 12:23 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: kherrera3 at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.0 OS: Slackware v10
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kherrera3 at gmail dot com
New email:
PHP Version: OS:

 

 [2007-01-06 11:06 UTC] kherrera3 at gmail dot com
Description:
------------
I downloaded a new copy of PHP straight to the server via wget and extracted to its directory.  I ran configure with the arguments found in "Reproduce code" and I received 35 lines of error messages.  The configure script continued but stopped at locating the header file for Apache.  The path is correct yet it still did not find it.

Shell version:
GNU bash, version 2.05b.0(1)-release-(i386-slackware-linux-gnu)

Reproduce code:
---------------
./configure --with-apache=/usr/local/httpd/port-80/include --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd --with-ttf --with-t1lib --enable-gd-native-ttf --with-gettext --with-gmp --with-mcrypt --with-mhash --with-ming --with-mysql --enable-pcntl --with-readline --with-mm --with-snmp --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --enable-wddx --with-xsl --enable-zip --with-pear=/usr/local/

Actual result:
--------------
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
expr: syntax error
./configure: line 2333: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
./configure: line 2346: test: =: unary operator expected
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for bison... bison -y
checking for bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version... 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib... 

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/httpd/port-80/include

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-06 16:43 UTC] iliaa@php.net
Can you show the lines in question from the configure script?
 [2007-01-06 20:53 UTC] kherrera3 at gmail dot com
echo "'$0' \\" >> config.nice
  if test `expr -- $0 : "'.*"` = 0; then
    CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
  else
    CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
  fi
  for arg in $ac_configure_args; do
     if test `expr -- $arg : "'.*"` = 0; then
        if test `expr -- $arg : "--.*"` = 0; then
          break;
        fi
        echo "'$arg' \\" >> config.nice
        CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
     else
        if test `expr -- $arg : "'--.*"` = 0; then
          break;
        fi
        echo "$arg \\" >> config.nice
        CONFIGURE_COMMAND="$CONFIGURE_COMMAND $arg"
     fi
  done
  echo '"$@"' >> config.nice
  chmod +x config.nice
 [2007-01-11 10:03 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

What kind of shell are you using?
 [2007-01-12 00:56 UTC] kherrera3 at gmail dot com
GNU bash, version 2.05b.0(1)-release-(i386-slackware-linux-gnu)
 [2007-01-12 08:32 UTC] tony2001@php.net
Could you plz update bash to a newer version?
 [2007-01-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-12-20 12:23 UTC] jani@php.net
-Package: Tidy +Package: Compile Failure
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 10:01:30 2024 UTC