Bug 240813

Summary: databases/php-memcache: fix build on GCC architectures with PHP 7.4
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: sunpoet
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (sunpoet)

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-09-25 13:28:48 UTC
Created attachment 207800 [details]
patch

php74 introduced C11 requirement:
In file included from /usr/local/include/php/Zend/zend_modules.h:24,
                 from /usr/local/include/php/Zend/zend_API.h:25,
                 from /usr/local/include/php/main/php.h:37,
                 from /wrkdirs/usr/ports/databases/php-memcache/work-php74/pecl-memcache-4.0.4/php7/memcache_pool.h:44,
                 from /wrkdirs/usr/ports/databases/php-memcache/work-php74/pecl-memcache-4.0.4/php7/memcache_binary_protocol.c:36:
/usr/local/include/php/Zend/zend_compile.h:363: error: redefinition of typedef 'zend_property_info'
/usr/local/include/php/Zend/zend_types.h:385: error: previous declaration of 'zend_property_info' was her
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-09-25 17:55:11 UTC
Approved as mentor (builds on ppcports) pending maintainer review.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-09-25 20:55:19 UTC
A commit references this bug:

Author: sunpoet
Date: Wed Sep 25 20:55:07 UTC 2019
New revision: 512856
URL: https://svnweb.freebsd.org/changeset/ports/512856

Log:
  Fix build on GCC architectures with PHP 7.4

  PR:		240813
  Submitted by:	pkubaj

Changes:
  head/databases/php-memcache/Makefile
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2019-09-25 20:56:17 UTC
Committed. Thanks!