error compile phalcon 1.3.2 on centos

this is part of errors:

/usr/local/cphalcon/build/64bits/phalcon.c:105293: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:105293: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconQueueBeanstalkdisconnect': /usr/local/cphalcon/build/64bits/phalcon.c:105422: error: 'PHPSTREAMFLAGNOFCLOSE' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:105422: error: invalid operands to binary & /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconQueueBeanstalkJobconstruct': /usr/local/cphalcon/build/64bits/phalcon.c:105518: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:105518: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconsessionadaptergetiterator': /usr/local/cphalcon/build/64bits/phalcon.c:106036: error: 'splceArrayIterator' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106036: warning: passing argument 2 of 'objectinitex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:106042: error: 'zendfunctionentry' has no member named 'getiterator' /usr/local/cphalcon/build/64bits/phalcon.c:106042: error: called object '<erroneous-expression>' is not a function /usr/local/cphalcon/build/64bits/phalcon.c:106042: warning: assignment from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconPhalconSessionAdapterinit': /usr/local/cphalcon/build/64bits/phalcon.c:106075: warning: assignment from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:106080: error: 'splceCountable' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconSessionAdapterget': /usr/local/cphalcon/build/64bits/phalcon.c:106227: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106227: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconSessionAdaptergetIterator': /usr/local/cphalcon/build/64bits/phalcon.c:106252: error: 'splceArrayIterator' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106252: warning: passing argument 2 of 'objectinitex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconsessionbaggetiterator': /usr/local/cphalcon/build/64bits/phalcon.c:106369: error: 'splceArrayIterator' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106369: warning: passing argument 2 of 'objectinitex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:106375: error: 'zendfunctionentry' has no member named 'getiterator' /usr/local/cphalcon/build/64bits/phalcon.c:106375: error: called object '<erroneous-expression>' is not a function /usr/local/cphalcon/build/64bits/phalcon.c:106375: warning: assignment from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconPhalconSessionBaginit': /usr/local/cphalcon/build/64bits/phalcon.c:106395: warning: assignment from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:106403: error: 'splceCountable' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconSessionBagconstruct': /usr/local/cphalcon/build/64bits/phalcon.c:106413: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106413: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconSessionBaginitialize': /usr/local/cphalcon/build/64bits/phalcon.c:106457: warning: initialization discards qualifiers from pointer target type /usr/local/cphalcon/build/64bits/phalcon.c:106461: error: 'splceLogicException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106461: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:106461: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconSessionBaggetIterator': /usr/local/cphalcon/build/64bits/phalcon.c:106647: error: 'splceArrayIterator' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:106647: warning: passing argument 2 of 'objectinitex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconTranslateAdapteroffsetExists': /usr/local/cphalcon/build/64bits/phalcon.c:107178: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:107178: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconTranslateAdapteroffsetGet': /usr/local/cphalcon/build/64bits/phalcon.c:107192: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:107192: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconTranslateAdapterNativeArrayexists': /usr/local/cphalcon/build/64bits/phalcon.c:107382: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:107382: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconvalidationvalidatorgetoptionhelper': /usr/local/cphalcon/build/64bits/phalcon.c:107662: warning: initialization discards qualifiers from pointer target type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationValidatorgetOption': /usr/local/cphalcon/build/64bits/phalcon.c:107704: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:107704: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconvalidationmessagegroupwritedimension': /usr/local/cphalcon/build/64bits/phalcon.c:107943: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:107943: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:107943: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'phalconPhalconValidationMessageGroupinit': /usr/local/cphalcon/build/64bits/phalcon.c:108044: warning: assignment from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:108054: error: 'splceCountable' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupconstruct': /usr/local/cphalcon/build/64bits/phalcon.c:108072: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108072: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupoffsetGet': /usr/local/cphalcon/build/64bits/phalcon.c:108080: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108080: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupoffsetSet': /usr/local/cphalcon/build/64bits/phalcon.c:108093: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108093: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupoffsetExists': /usr/local/cphalcon/build/64bits/phalcon.c:108101: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108101: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupoffsetUnset': /usr/local/cphalcon/build/64bits/phalcon.c:108109: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108109: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupappendMessage': /usr/local/cphalcon/build/64bits/phalcon.c:108118: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108118: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:108118: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroupappendMessages': /usr/local/cphalcon/build/64bits/phalcon.c:108150: error: too many arguments to function 'ce->getiterator' /usr/local/cphalcon/build/64bits/phalcon.c: In function 'zifPhalconValidationMessageGroup_setstate': /usr/local/cphalcon/build/64bits/phalcon.c:108294: error: 'splceBadMethodCallException' undeclared (first use in this function) /usr/local/cphalcon/build/64bits/phalcon.c:108294: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c:108301: warning: passing argument 1 of 'zendthrowexceptionex' from incompatible pointer type /usr/local/cphalcon/build/64bits/phalcon.c: In function 'PHPGINITFUNCTION': /usr/local/cphalcon/build/64bits/phalcon.c:109873: error: incompatible type for argument 1 of 'phpphalconinitglobals' /usr/local/cphalcon/build/64bits/phalcon.c: At top level: /usr/local/cphalcon/build/64bits/phalcon.c:109974: error: 'phalcon' undeclared here (not in a function) /usr/local/cphalcon/build/64bits/phalcon.c:109974: error: initializer element is not constant /usr/local/cphalcon/build/64bits/phalcon.c:109974: error: (near initialization for 'phalconmoduleentry.postdeactivatefunc') /usr/local/cphalcon/build/64bits/phalcon.c:109975: error: initializer element is not constant /usr/local/cphalcon/build/64bits/phalcon.c:109975: error: (near initialization for 'phalconmoduleentry.globalsid') /usr/local/cphalcon/build/64bits/phalcon.c:109976: error: initializer element is not constant /usr/local/cphalcon/build/64bits/phalcon.c:109976: error: (near initialization for 'phalconmoduleentry.modulestarted') /usr/local/cphalcon/build/64bits/phalcon.c:109977: warning: initialization makes integer from pointer without a cast /usr/local/cphalcon/build/64bits/phalcon.c:109977: error: initializer element is not computable at load time /usr/local/cphalcon/build/64bits/phalcon.c:109977: error: (near initialization for 'phalconmoduleentry.type') /usr/local/cphalcon/build/64bits/phalcon.c:109978: warning: excess elements in struct initializer /usr/local/cphalcon/build/64bits/phalcon.c:109978: warning: (near initialization for 'phalconmoduleentry') /usr/local/cphalcon/build/64bits/phalcon.c:109978: warning: excess elements in struct initializer /usr/local/cphalcon/build/64bits/phalcon.c:109978: warning: (near initialization for 'phalconmoduleentry') /usr/local/cphalcon/build/64bits/phalcon.c:109979: warning: excess elements in struct initializer /usr/local/cphalcon/build/64bits/phalcon.c:109979: warning: (near initialization for 'phalconmodule_entry') make: * [phalcon.lo] Error 1

**I use php5.5.8,and now the phalcon in my os is 1.2.5. I try to upgrade old version of Phalcon to latest version 1.3.2 :

git clone --depth=1 git://github.com/phalcon/cphalcon.git cd cphalcon/build sudo ./install

but it compile failed

Please help,do I miss any steps?**



5.8k

have you satisfied phalcon requirement?

sudo yum install php-devel pcre-devel gcc make