Bug 240866

Summary: databases/pecl-mongodb: fix build on GCC architectures with php74
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: pi
Priority: --- Flags: pi: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (pi)

Description Piotr Kubaj freebsd_committer 2019-09-27 09:59:12 UTC
Created attachment 207881 [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/pecl-mongodb/work-php74/mongodb-1.6.0/src/BSON/Javascript.c:17:
/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 here
Comment 1 Kurt Jaeger freebsd_committer 2019-09-27 10:23:08 UTC
Approved. I'm traveling, can you commit it ?
Comment 2 Piotr Kubaj freebsd_committer 2019-09-27 22:51:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240883 fixes it in better way.