Bug 217148 - devel/pecl-APCu does not build on 10.3 but on 11
Summary: devel/pecl-APCu does not build on 10.3 but on 11
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 18:54 UTC by Matthias Fechner
Modified: 2018-09-30 14:01 UTC (History)
5 users (show)

See Also:
johnpupu: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fechner freebsd_committer freebsd_triage 2017-02-16 18:54:49 UTC
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
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-10 04:32:09 UTC
Maintainer feedback?
Comment 2 johnpupu 2018-01-10 14:28:00 UTC
Author does not response issue i post on github.
Comment 3 Jochen Neumeister freebsd_committer freebsd_triage 2018-01-17 17:42:22 UTC
Matthias, 

which PHP version do you use?
I have tested it with FreeBSD 11.1 (amd64 / i386) and PHP 70/71/72, no problems
Comment 4 Matthias Fechner freebsd_committer freebsd_triage 2018-01-17 17:48:30 UTC
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?
Comment 5 Jochen Neumeister freebsd_committer freebsd_triage 2018-01-17 17:52:26 UTC
i think, yes :-)
Comment 6 gessel 2018-09-30 13:09:05 UTC
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
Comment 7 Jochen Neumeister freebsd_committer freebsd_triage 2018-09-30 14:01:31 UTC
(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