|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-12-14 22:05 UTC] cheetah at tanabi dot org
Description: ------------ Two notes; I have tried this on two separate Solaris 10 machines and I get this exact same error on both. On both machines, past versions of PHP have successfully compiled -- namely PHP 5.1.6 and a few earlier ones as well. Not doing anything particularly special here other than a 64 bit build (we use a large memory application with this) WHICH worked perfectly fine with 5.1.6... The flags to build 64 bit are in CFLAGS and LDFLAGS, namely -mcpu=ultrasparc -m64 here's what happens: ./configure --prefix=/usr/local/64 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sockets --with-pgsql=/usr/local/64/pgsql --with-pdo-pgsql=/usr/local/64/pgsql --with-libxml-dir=/usr/local/64 --enable-ftp --without-iconv loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... egrep checking for a sed that does not truncate output... /usr/local/bin/sed expr: syntax error ./configure: test: argument expected 'expr' shows up only about 60 billion times in the file, and I have been unable to reasonably isolate which one is actually failing. Too bad shell scripts aren't nice enough to provide a line number! :) I'm hoping someone can help me out here, and appologies if this has already been reported -- I did search the bug DB for quite awhile before posting :) Thanks! Reproduce code: --------------- N/A Expected result: ---------------- N/A Actual result: -------------- N/A PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
the expr info page suggests the expr tests in configure should be quoted with a leading space to avoid being interpreted as flags and remain as portable as possible: diff -Nur php-5.2.3.orig/acinclude.m4 php-5.2.3/acinclude.m4 --- php-5.2.3.orig/acinclude.m4 2007-05-24 16:40:41.000000000 -0500 +++ php-5.2.3/acinclude.m4 2007-08-29 14:30:40.000000000 -0500 @@ -2504,20 +2504,20 @@ done echo "'[$]0' \\" >> $1 - if test `expr -- [$]0 : "'.*"` = 0; then + 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 + if test `expr " $arg" : " '.*"` = 0; then + if test `expr " $arg" : " --.*"` = 0; then break; fi echo "'[$]arg' \\" >> $1 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]arg'" else - if test `expr -- $arg : "'--.*"` = 0; then + if test `expr " $arg" : " '--.*"` = 0; then break; fi echo "[$]arg \\" >> $1