What I downloaded was the stable version, that is, version 1.3.3-Stable-0.
But it still failed to compile. I only found out later, after digging through some references, that there was a catch.
My local gcc version is gcc version 9.2.1 20190909 (Debian 9.2.1-8), which is fairly new, so it’s stricter about form. The author’s version is probably an old one, so there’s a bit of incompatibility.
this ‘for’ clause does not guard… [-Werror=misleading-indentation]
158 | for (i = 0; i < 1000000; i );This error is usually at line 158 of kernel/time.h — drop the colon after the for loop. The author probably wasn’t being very careful and didn’t remove it, so the newer gcc can’t compile it.
xhprof.c:132:19: error: ‘digits’ defined but not used [-Werror=unused-const-variable=]
132 | static const char digits[] = “0123456789abcdef”;
This one can be commented out; with the newer gcc, a defined method or declaration that isn’t used will raise an error.debug.c:123:24: error: ‘arginfo_phalcon_debug_setcharset’ defined but not used [-Werror=unused-const-variable=]
Same as above, the same error. Comment it out.
mvc/model/query.c:190:24: error: ‘arginfo_phalcon_mvc_model_query_setmergebindtypes’ defined but not used [-Werror=unused-const-variable=]
Still the same error as above.
adapter/sql.c:75:24: error: ‘arginfo_phalcon_paginator_adapter_sql_setlimit’ defined but not used [-Werror=unused-const-variable=]
Same as above. Ugh, so many of them.
security.c:166:24: error: ‘arginfo_phalcon_security_pbkdf2’ defined but not used [-Werror=unused-const-variable=]
Same as above. My head hurts.
In so many places… just go comment out everything that reports defined but not used.
Finally, here is the copy I fixed myself: download

