在php-fpm-alpine docker上安装phalcon 4.0.5时出错

时间:2020-03-30 07:29:26

标签: php docker phalcon alpine

当我尝试使用php:7.4.4-fpm-alpine创建自定义docker映像并在其上安装带有pecl的phalcon 4.0.5时,编译phalcon时出现错误

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/temp/pear-build-defaultusernGokha/phalcon-4.0.5/libtool --mode=compile cc  -I. -I/tmp/pear/temp/phalcon -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultusernGokha/phalcon-4.0.5/include -I/tmp/pear/temp/pear-build-defaultusernGokha/phalcon-4.0.5/main -I/tmp/pear/temp/phalcon -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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/phalcon/phalcon.zep.c -o phalcon.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/phalcon -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultusernGokha/phalcon-4.0.5/include -I/tmp/pear/temp/pear-build-defaultusernGokha/phalcon-4.0.5/main -I/tmp/pear/temp/phalcon -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phalcon/phalcon.zep.c  -fPIC -DPIC -o .libs/phalcon.o
/tmp/pear/temp/phalcon/phalcon.zep.c: In function 'zephir_mt_rand':
/tmp/pear/temp/phalcon/phalcon.zep.c:12795:45: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'zend_long' {aka 'long int'} [-Wformat=]
12795 |   php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min);
      |                                          ~~~^                              ~~~
      |                                             |                              |
      |                                             long long int                  zend_long {aka long int}
      |                                          %ld
/tmp/pear/temp/phalcon/phalcon.zep.c:12795:71: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'zend_long' {aka 'long int'} [-Wformat=]
12795 |   php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min);
      |                                                                    ~~~^         ~~~
      |                                                                       |         |
      |                                                                       |         zend_long {aka long int}
      |                                                                       long long int
      |                                                                    %ld



^[[A^CMakefile:8: recipe for target 'php_build' failed

对这个错误有任何想法吗?因为我在互联网和与之相关的Phalcon存储库中找不到任何东西,并且当我在计算机上安装Phalcon(ubuntu 18.04)时,一切正常

0 个答案:

没有答案