We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

[SOLVED]phalcon1.2.0 compile error

thank you for great framework

The following error occurred at compile time. Please tell me if there is a better way.

#uname -a
Linux localhost.localdomain 3.9.6-200.fc18.x86_64 #1 SMP Thu Jun 13 18:56:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

# php -v
PHP 5.5.0 (cli) (built: Jun 24 2013 20:54:19) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

# git clone https://github.com/phalcon/cphalcon
# cd build
# git checkout 1.2.0
# cd cphalcon/build
# ./install
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /root/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalcon/build/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  -DHAVE_CONFIG_H  -march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden   -c /root/cphalcon/build/64bits/phalcon.c -o phalcon.lo 
mkdir .libs
 gcc -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalcon/build/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 -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden -c /root/cphalcon/build/64bits/phalcon.c  -fPIC -DPIC -o .libs/phalcon.o
/root/cphalcon/build/64bits/phalcon.c: In function phalcon_alt_call_method’:
/root/cphalcon/build/64bits/phalcon.c:11951:38: error: expected )’ before tsrm_ls’
/root/cphalcon/build/64bits/phalcon.c:11951:38: error: too few arguments to function zend_vm_stack_clear_multiple’
In file included from /usr/local/include/php/Zend/zend_API.h:30:0,
                 from /usr/local/include/php/main/php.h:38,
                 from /root/cphalcon/build/64bits/phalcon.c:163:
/usr/local/include/php/Zend/zend_execute.h:290:51: note: declared here
/root/cphalcon/build/64bits/phalcon.c:12120:33: error: expected )’ before tsrm_ls’
/root/cphalcon/build/64bits/phalcon.c:12120:33: error: too few arguments to function zend_vm_stack_clear_multiple’
In file included from /usr/local/include/php/Zend/zend_API.h:30:0,
                 from /usr/local/include/php/main/php.h:38,
                 from /root/cphalcon/build/64bits/phalcon.c:163:
/usr/local/include/php/Zend/zend_execute.h:290:51: note: declared here
/root/cphalcon/build/64bits/phalcon.c: In function phalcon_raw_url_encode’:
/root/cphalcon/build/64bits/phalcon.c:12781:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
make: *** [phalcon.lo] Error 1

thank you.

Wow PHP 5.5.0, cool! Are your system memory less then 512MB? If so please read https://forum.phalcon.io/discussion/56/not-allowed-to-compile-phalcon-by-myself



2.9k

thanks my system is fedora18_x86_64 on virtualbox and memory is 2048M. In other machines which install the PHP 5.4.11, the falcon 1.2.0 installation succeeds. php5.5 would cause?



98.9k
Accepted
answer

Try compiling again, first update your 1.2.0 repository, some changes for 5.5 compatibility were added recently



2.9k

Hi, @Phalcon. recompilation of phalcon1.2.0 was successful. thank you.