Closed lucasantarella closed 8 years ago
@lucasantarella Taking a look will keep you posted
It looks like you're building from master branch, which is where the error is coming from (Phalcon land) I wonder if there's currently an error on master as a lot of changes have been pulled recently from Andres and Klay. My recommendation, select a more stable branch. Can you try updating the line as follows:
vendor/bin/install-phalcon.sh 2.0.x
Basically, tell CI to install 2.0 version instead of a potentially unstable master branch.
@lucasantarella Let me know if that fixes it for ya
@virgofx Thanks for your reply. I tried that and still no luck.
Travis CI:
language: php
sudo: true
cache:
directories:
- $HOME/.composer/cache
- vendor
- $HOME/cphalcon
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
global:
- SKIP_MONGO_TESTS=1
- secure: Bc5ZqvZ1YYpoPZNNuU2eCB8DS6vBYrAdfBtTenBs5NSxzb+Vjven4kWakbzaMvZjb/Ib7Uph7DGuOtJXpmxnvBXPLd707LZ89oFWN/yqQlZKCcm8iErvJCB5XL+/ONHj2iPdR242HJweMcat6bMCwbVWoNDidjtWMH0U2mYFy3M=
- secure: R3bXlymyFiY2k2jf7+fv/J8i34wtXTkmD4mCr5Ps/U+vn9axm2VtvR2Nj+r7LbRjn61gzFE/xIVjYft/wOyBOYwysrfriydrnRVS0owh6y+7EyOyQWbRX11vVQMf8o31QCQE5BY58V5AJZW3MjoOL0FVlTgySJiJvdw6Pv18v+E=
services:
- mongodb
- redis-server
- cassandra
- mysql
- memcached
before_install:
- sudo apt-get install php5-dev libpcre3-dev gcc make php5-mysql
- composer install --prefer-source --no-interaction
- vendor/bin/install-phalcon.sh 2.0.x
- phpenv config-rm xdebug.ini || return 0
install:
- composer install --no-interaction
before_script:
- php -m
- psql -c 'create database oauth2_server_php;' -U postgres
after_script:
- php test/cleanup.php
and log: here's a link to the build
I honestly have no idea what's going on with this thing. I reached out to some of the Phalcon dev members and they said that it should have no problem compiling on anything =< PHP 5.3.20
Any idea what's going on?
@lucasantarella Trying to make some time to figure it out. Should have an update for you by the weekend, sorry for the delay
@virgofx Ok. Thanks a ton!
@lucasantarella I've tried to build 5.3.29 in a virtual machine and it does appear to be 100% a Phalcon issue. So what we need to do is move this issue over into the Phalcon repository to see if anyone wants to go back and get it working in 5.3. As I follow the project very closely, most of the development is now geared in the latest 2.0.x and 2.1.x branches which are typically built against 5.4, 5.5, 5.6, and 7.0. Therefore, it may be tough to have to go backwards and make fixes in the 2.0.x/master branches to get compilation to work.
I've also updated the Readme now to list the supported versions as well. Let me know if you have any other insights as this appears to be a Phalcon issue we can close this one here unless there is anything we can do from an installation perspective to get things working on 5.3.x
Ok @virgofx Thanks for all your help! I opened an issue with Phalcon, but they said that anything PHP 5.3.20 and up should work.
@lucasantarella I'll set up an older 5.3 VM as similar as possible to Travis' 5.3 version. Then I can trace and see if there are any easy fixes which could help get Phalcon to run in 5.3.
@virgofx Thanks! Let me know if you need help. I have some Hyper-V Hosts around here that I could spin up some instances. Lmk!
Great library. This really saved me a headache. Just one problem.
When I try to test with PHP 5.3 in Travis CI, I just this output.
Output:
``` $ vendor/bin/install-phalcon.sh No Phalcon cache available. Cloning into '/home/travis/cphalcon'... remote: Counting objects: 111432, done. remote: Compressing objects: 100% (65/65), done. remote: Total 111432 (delta 23), reused 0 (delta 0), pack-reused 111364 Receiving objects: 100% (111432/111432), 110.48 MiB | 20.42 MiB/s, done. Resolving deltas: 100% (85721/85721), done. Checking connectivity... done. Checking out: master ... Already on 'master' Your branch is up-to-date with 'origin/master'. Building Phalcon ... Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 configure.in:3: warning: prefer named diversions configure.in:3: warning: prefer named diversions checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for icc... no checking for suncc... no checking whether gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /home/travis/.phpenv/versions/5.3.29 checking for PHP includes... -I/home/travis/.phpenv/versions/5.3.29/include/php -I/home/travis/.phpenv/versions/5.3.29/include/php/main -I/home/travis/.phpenv/versions/5.3.29/include/php/TSRM -I/home/travis/.phpenv/versions/5.3.29/include/php/Zend -I/home/travis/.phpenv/versions/5.3.29/include/php/ext -I/home/travis/.phpenv/versions/5.3.29/include/php/ext/date/lib checking for PHP extension directory... /home/travis/.phpenv/versions/5.3.29/lib/php/extensions/no-debug-zts-20090626 checking for PHP installed headers prefix... /home/travis/.phpenv/versions/5.3.29/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.13.5 (ok) checking for gawk... gawk checking whether to enable phalcon... yes, shared checking whether HAVE_BUNDLED_PCRE is declared... yes checking for ext/pcre/php_pcre.h... yes checking whether HAVE_JSON is declared... yes checking for ext/json/php_json.h... yes checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h /bin/bash /home/travis/cphalcon/build/64bits/libtool --mode=compile gcc -I. -I/home/travis/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/travis/cphalcon/build/64bits/include -I/home/travis/cphalcon/build/64bits/main -I/home/travis/cphalcon/build/64bits -I/home/travis/.phpenv/versions/5.3.29/include/php -I/home/travis/.phpenv/versions/5.3.29/include/php/main -I/home/travis/.phpenv/versions/5.3.29/include/php/TSRM -I/home/travis/.phpenv/versions/5.3.29/include/php/Zend -I/home/travis/.phpenv/versions/5.3.29/include/php/ext -I/home/travis/.phpenv/versions/5.3.29/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fomit-frame-pointer -fvisibility=hidden -c /home/travis/cphalcon/build/64bits/phalcon.zep.c -o phalcon.lo mkdir .libs gcc -I. -I/home/travis/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/travis/cphalcon/build/64bits/include -I/home/travis/cphalcon/build/64bits/main -I/home/travis/cphalcon/build/64bits -I/home/travis/.phpenv/versions/5.3.29/include/php -I/home/travis/.phpenv/versions/5.3.29/include/php/main -I/home/travis/.phpenv/versions/5.3.29/include/php/TSRM -I/home/travis/.phpenv/versions/5.3.29/include/php/Zend -I/home/travis/.phpenv/versions/5.3.29/include/php/ext -I/home/travis/.phpenv/versions/5.3.29/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fomit-frame-pointer -fvisibility=hidden -c /home/travis/cphalcon/build/64bits/phalcon.zep.c -fPIC -DPIC -o .libs/phalcon.o /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_cleanup_fcache’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:4402:58: error: ‘zend_class_entry’ has no member named ‘info’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_class_exists’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:5789:53: error: ‘ZEND_ACC_TRAIT’ undeclared (first use in this function) /home/travis/cphalcon/build/64bits/phalcon.zep.c:5789:53: note: each undeclared identifier is reported only once for each function it appears in /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_read_property’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:5932:3: warning: passing argument 2 of ‘zend_get_object_classname’ from incompatible pointer type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/Zend/zend_API.h:331:14: note: expected ‘char **’ but argument is of type ‘const char **’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:5939:2: error: too many arguments to function ‘object->value.obj.handlers->read_property’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_fetch_property_this_quick’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:5976:80: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:5978:26: error: ‘zend_object’ has no member named ‘properties_table’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:5978:58: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:5981:18: error: ‘zend_object’ has no member named ‘properties_table’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:5981:50: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_return_property_quick’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:6039:80: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6041:26: error: ‘zend_object’ has no member named ‘properties_table’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6041:58: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6044:18: error: ‘zend_object’ has no member named ‘properties_table’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6044:50: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_update_property_zval’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:6171:3: warning: passing argument 2 of ‘zend_get_object_classname’ from incompatible pointer type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/Zend/zend_API.h:331:14: note: expected ‘char **’ but argument is of type ‘const char **’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6178:2: error: too many arguments to function ‘object->value.obj.handlers->write_property’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_update_property_this_quick’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:6220:21: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6220:87: error: ‘zend_object’ has no member named ‘properties_table’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6220:119: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6220:164: error: ‘zend_object’ has no member named ‘properties_table’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6220:196: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_unset_property’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:6526:3: error: too many arguments to function ‘object->value.obj.handlers->unset_property’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_fetch_static_property_ce’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:6609:2: warning: passing argument 2 of ‘zend_read_static_property’ discards ‘const’ qualifier from pointer target type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/Zend/zend_API.h:328:16: note: expected ‘char *’ but argument is of type ‘const char *’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_std_get_static_property’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:6673:51: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:6680:50: error: ‘zend_property_info’ has no member named ‘offset’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_create_closure_ex’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:7059:2: warning: passing argument 3 of ‘zend_create_closure’ from incompatible pointer type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/Zend/zend_closures.h:33:15: note: expected ‘void ***’ but argument is of type ‘struct zend_class_entry *’ /home/travis/cphalcon/build/64bits/phalcon.zep.c:7059:2: error: too many arguments to function ‘zend_create_closure’ /home/travis/.phpenv/versions/5.3.29/include/php/Zend/zend_closures.h:33:15: note: declared here /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_http_build_query’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:10789:140: error: ‘PHP_QUERY_RFC1738’ undeclared (first use in this function) /home/travis/cphalcon/build/64bits/phalcon.zep.c:10789:3: error: too many arguments to function ‘php_url_encode_hash_ex’ /home/travis/.phpenv/versions/5.3.29/include/php/ext/standard/php_http.h:27:12: note: declared here /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_htmlspecialchars’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:10829:2: warning: passing argument 3 of ‘php_escape_html_entities_ex’ from incompatible pointer type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/ext/standard/html.h:43:14: note: expected ‘int *’ but argument is of type ‘size_t *’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_htmlentities’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:10854:2: warning: passing argument 3 of ‘php_escape_html_entities_ex’ from incompatible pointer type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/ext/standard/html.h:43:14: note: expected ‘int *’ but argument is of type ‘size_t *’ /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_require_ret’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:11967:23: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_get_intval_ex’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:12891:11: error: ‘IS_CALLABLE’ undeclared (first use in this function) /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_get_doubleval_ex’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:12936:11: error: ‘IS_CALLABLE’ undeclared (first use in this function) /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_get_boolval_ex’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:12974:11: error: ‘IS_CALLABLE’ undeclared (first use in this function) /home/travis/cphalcon/build/64bits/phalcon.zep.c: In function ‘zephir_escape_html’: /home/travis/cphalcon/build/64bits/phalcon.zep.c:16166:2: warning: passing argument 3 of ‘php_escape_html_entities’ from incompatible pointer type [enabled by default] /home/travis/.phpenv/versions/5.3.29/include/php/ext/standard/html.h:42:14: note: expected ‘int *’ but argument is of type ‘size_t *’ ```I'm not sure what's causing this since Phalcon supports PHP 5.3.
Here is my .travis.yml
Any help would be GREATLY appreciated. Thanks in advance.