Closed cq-z closed 7 years ago
expr: syntax error
./configure: line 2563: test: =: unary operator expected
expr: syntax error
./configure: line 2570: test: =: unary operator expected
expr: syntax error
./configure: line 2577: test: =: unary operator expected
@cq-z Could you please try master
branch?
Also we need steps to reproduce issue (versions, console commands, etc)
sorry, The previous version could not be found .it is notification . new version https://github.com/cq-z/docker-lnmp/tree/master/php70 command: docker build -t test ./php70
The program can run no problem docker -v Docker version 17.04.0-ce-rc2, build 2f35d73
@cq-z Could you please try again 3.1.x branch?
download link:https://codeload.github.com/phalcon/cphalcon/tar.gz/3.1.x
Step 8/23 : RUN cd /home/cphalcon-3.1.x/build && ./install && echo "extension=phalcon.so" > /usr/local/etc/php/conf.d/phalcon.ini && cd ../../ && rm -r ./cphalcon-3.1.x
---> Running in 0aa7627d3763
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
expr: syntax error
./configure: line 2563: test: =: unary operator expected
appending configuration tag "CXX" to libtool
make: Warning: File '/home/cphalcon-3.1.x/build/php7/64bits/phalcon.zep.c' has modification time 602 s in the future
mkdir .libs
gcc -I. -I/home/cphalcon-3.1.x/build/php7/64bits -DPHP_ATOM_INC -I/home/cphalcon-3.1.x/build/php7/64bits/include -I/home/cphalcon-3.1.x/build/php7/64bits/main -I/home/cphalcon-3.1.x/build/php7/64bits -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fomit-frame-pointer -fvisibility=hidden -c /home/cphalcon-3.1.x/build/php7/64bits/phalcon.zep.c -fPIC -DPIC -o .libs/phalcon.o
In file included from /usr/local/include/php/main/php_network.h:126:0,
from /usr/local/include/php/ext/standard/file.h:26,
from /home/cphalcon-3.1.x/build/php7/64bits/phalcon.zep.c:187:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^
What kind of Bash are you using? What is the version?
@cq-z Also please provide expr version expr --version | head -1
Your question is this? iterm2 Build 3.0.15
it's docker bulid not find command expr . bash is bash bash-4.3#
this is? bash-4.3# /usr/bin/expr --help BusyBox v1.24.2 (2017-01-18 14:13:46 GMT) multi-call binary.
As you can see
expr: syntax error
this is expr
bug inside container, not in the host system.
For example
$ expr --version | head -1
expr (GNU coreutils) 5.2.1
$ expr -- hello
hello
$ expr --version | head -1
expr (GNU sh-utils) 2.0
$ expr -- hello
expr: syntax error
it's docker bulid image .not find this cmd. find expr is /usr/bin/expr . but this result is running
bash-4.3# /usr/bin/expr --version
--version
PHP's configure
script uses expr
. So it is PHP bug: https://bugs.php.net/bug.php?id=39835 (see last comment)
think you.the yac also have this warning. Laruence say is It's ok。
thank you much