krakjoe / uopz

User Operations for Zend
Other
358 stars 47 forks source link

pecl instalation fails #136

Closed BaraoVlask closed 3 years ago

BaraoVlask commented 3 years ago

When i tried to run pecl install uopz i get this error but when i try to install manualy it works fine

/tmp/pear/temp/uopz/src/util.c: In function 'uopz_handle_magic':
/tmp/pear/temp/uopz/src/util.c:93:21: error: 'zend_class_entry' {aka 'struct _zend_class_entry'} has no member named 'serialize_func'; did you mean 'serialize'?
     case 10: clazz->serialize_func = function; break;
                     ^~~~~~~~~~~~~~
                     serialize
/tmp/pear/temp/uopz/src/util.c:94:21: error: 'zend_class_entry' {aka 'struct _zend_class_entry'} has no member named 'unserialize_func'; did you mean 'unserialize'?
     case 11: clazz->unserialize_func = function; break;
                     ^~~~~~~~~~~~~~~~
                     unserialize
/tmp/pear/temp/uopz/src/util.c: In function 'uopz_closure_equals':
/tmp/pear/temp/uopz/src/util.c:151:57: warning: passing argument 1 of 'zend_get_closure_method_def' from incompatible pointer type [-Wincompatible-pointer-types]
  const zend_function *cmp = zend_get_closure_method_def(closure);
                                                         ^~~~~~~
In file included from /tmp/pear/temp/uopz/uopz.h:50,
                 from /tmp/pear/temp/uopz/src/util.c:23:
/usr/local/include/php/Zend/zend_closures.h:38:31: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API const zend_function *zend_get_closure_method_def(zend_object *obj);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:210: src/util.lo] Error 1
ERROR: `make' failed

i am using php:8-fpm

PHP 8.0.0 (cli) (built: Dec 11 2020 07:41:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Xdebug v3.0.1, Copyright (c) 2002-2020, by Derick Rethans

Tanks for the work

keywinf commented 3 years ago

You've probably seen it, but here is a related issue here.

BaraoVlask commented 3 years ago

@keywinf I got to see your issue but I don't list it because I didn't understand I'm a little new in the linux world I'm trying to be a better programmer :) thanks for the help

cmb69 commented 3 years ago

There is no PHP 8 compatible release of uopz yet, so you have to build from the "master" branch.