From:             kherrera3 at gmail dot com
Operating system: Slackware v10
PHP version:      5.2.0
PHP Bug Type:     Compile Failure
Bug description:  Cannot configure: ./configure: line 2333: test: =: unary 
operator expected

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

-- 
Edit bug report at http://bugs.php.net/?id=40042&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40042&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40042&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40042&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40042&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40042&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40042&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40042&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40042&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40042&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40042&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40042&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40042&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40042&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40042&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40042&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40042&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40042&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40042&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40042&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40042&r=mysqlcfg

Reply via email to