We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon 2 beta - Problems with phalcon/crypt.lo

The build process of Phalcon 2.0. started via cphalcon/ext/install, always stops with an error:

... libtool: compile: cc -I. -I/home/user/git/cphalcon/ext -DPHP_ATOM_INC -I/home/user/git/cphalcon/ext/include -I/home/user/git/cphalcon/ext/main -I/home/user/git/cphalcon/ext -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/user/git/cphalcon/ext/phalcon/config/exception.zep.c -fPIC -DPIC -o phalcon/config/.libs/exception.o libtool: compile: cc -I. -I/home/user/git/cphalcon/ext -DPHP_ATOM_INC -I/home/user/git/cphalcon/ext/include -I/home/user/git/cphalcon/ext/main -I/home/user/git/cphalcon/ext -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/user/git/cphalcon/ext/phalcon/crypt.zep.c -fPIC -DPIC -o phalcon/.libs/crypt.o /home/user/git/cphalcon/ext/phalcon/crypt.zep.c: In function 'zim_Phalcon_Crypt_decrypt': /home/user/git/cphalcon/ext/phalcon/crypt.zep.c:423:2: error: incompatible types when initializing type 'struct zval ' using type 'zval' ZEPHIR_CALL_FUNCTION(&_9, "substr", &_10, text, _0); ^ /home/user/git/cphalcon/ext/phalcon/crypt.zep.c:429:2: error: incompatible types when initializing type 'struct zval ' using type 'zval' ZEPHIR_CALL_FUNCTION(&_12, "substr", &_10, text, &_11, _1); ^ make: *** [phalcon/crypt.lo] Error 1

Tried it on Ubuntu12.04 + Ubuntu14.04 (32bit) + Ubuntu 14.04 (64bit), as a VMWare-Image or on a VPS...

Phalcon 1.x works without any problems.

Any suggestions on that?



1.1k
Accepted
answer

Please update and try again



2.1k

YOU DID IT!!!!

Thanks a lot!