ports/167999: pecl-gnupg : can't build due to API change
Andrew Kochetkov
kochetkov.andrew at gmail.com
Thu May 17 07:10:05 UTC 2012
>Number: 167999
>Category: ports
>Synopsis: pecl-gnupg : can't build due to API change
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu May 17 07:10:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Andrew Kochetkov
>Release: 8.2-RELEASE
>Organization:
Quickpay
>Environment:
FreeBSD ru-webtest.quickpay.ru 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Tue Mar 22 11:29:59 MSK 2011 root@:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
i've got this error:
/var/ports/basejail/usr/ports/security/pecl-gnupg/work/gnupg-1.3.2/gnupg.c: In function 'gnupg_obj_new':
/var/ports/basejail/usr/ports/security/pecl-gnupg/work/gnupg-1.3.2/gnupg.c:182: error: 'zend_class_entry' has no member named 'default_properties'
>How-To-Repeat:
with installed php5.4,
cd /usr/ports/security/gnupg && make
>Fix:
mkdir /usr/ports/security/gnupg/files
put this patch (patch-php54) into /usr/ports/security/gnupg/files
Patch attached with submission follows:
--- gnupg.c.orig 1970-01-01 12:13:08.000000000 +0300
+++ gnupg.c 2012-05-17 10:21:36.000000000 +0400
@@ -179,7 +179,12 @@
ALLOC_HASHTABLE (intern->zo.properties);
zend_hash_init (intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
+
+ #if PHP_VERSION_ID < 50399
zend_hash_copy (intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
+ #else
+ object_properties_init (&(intern->zo), class_type);
+ #endif
retval.handle = zend_objects_store_put(intern,NULL,(zend_objects_free_object_storage_t) gnupg_obj_dtor,NULL TSRMLS_CC);
retval.handlers = (zend_object_handlers *) & gnupg_object_handlers;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list