I have two poudriere repositories for FreeBSD 10.3 and 11. I switched now to php7.1 and APCu builds fine for FreeBSD 11 but fails for 10.3 with error message: /usr/local/include -fno-strict-aliasing -c /wrkdirs/usr/ports/devel/pecl-APCu/work/apcu-5.1.8/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o /wrkdirs/usr/ports/devel/pecl-APCu/work/apcu-5.1.8/apc_cache.c:1851:36: error: use of undeclared identifier '_tsrm_ls_cache' if(last->mtime == key->mtime && FROM_DIFFERENT_THREAD(last)) { ^ /wrkdirs/usr/ports/devel/pecl-APCu/work/apcu-5.1.8/apc_cache.c:1833:50: note: expanded from macro 'FROM_DIFFERENT_THREAD' # define FROM_DIFFERENT_THREAD(k) ((key->owner = TSRMLS_CACHE) != (k)->owner) ^ /usr/local/include/php/Zend/../TSRM/TSRM.h:180:22: note: expanded from macro 'TSRMLS_CACHE' #define TSRMLS_CACHE _tsrm_ls_cache ^ /wrkdirs/usr/ports/devel/pecl-APCu/work/apcu-5.1.8/apc_cache.c:1863:19: error: use of undeclared identifier '_tsrm_ls_cache' last->owner = TSRMLS_CACHE; ^ /usr/local/include/php/Zend/../TSRM/TSRM.h:180:22: note: expanded from macro 'TSRMLS_CACHE' #define TSRMLS_CACHE _tsrm_ls_cache ^ 2 errors generated. *** Error code 1 Stop. make[1]: stopped in /wrkdirs/usr/ports/devel/pecl-APCu/work/apcu-5.1.8 *** Error code 1 The full build log can be found here: https://pkg.fechner.net/data/103amd64-default/2017-02-16_19h43m40s/logs/errors/pecl-APCu-5.1.8.log Successful link for the FreeBSD 11 build is here: https://pkg.fechner.net/data/110amd64-default/2017-02-15_21h50m48s/logs/pecl-APCu-5.1.8.log
Maintainer feedback?
Author does not response issue i post on github.
Matthias, which PHP version do you use? I have tested it with FreeBSD 11.1 (amd64 / i386) and PHP 70/71/72, no problems
It only happened with FreeBSD 10.3 not with 11. Tested with php71 I cannot do further tests as all servers are migrated in the meantime to 11.1. Maybe we can close this ticket, as 10.3 is not supported anymore or?
i think, yes :-)
Still a problem with FreeBSD 10.4-RELEASE-p11 #0 r338539/php 7.2.10, though only one error generated on my build: --- apc_cache.lo --- /var/ports/usr/ports/devel/pecl-APCu/work-php72/apcu-5.1.12/apc_cache.c:1679:12: error: use of undeclared identifier '_tsrm_ls_cache' owner = TSRMLS_CACHE; ^ /usr/local/include/php/Zend/../TSRM/TSRM.h:189:22: note: expanded from macro 'TSRMLS_CACHE' #define TSRMLS_CACHE _tsrm_ls_cache ^ 1 error generated. *** [apc_cache.lo] Error code 1
(In reply to gessel from comment #6) no Problems with 10.4 and PHP 7.1 http://joneumbox.org/data/104amd64-ports/2018-09-30_15h17m36s/logs/php71-pecl-APCu-5.1.12.log