Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8 Protobuf PECL install fails on Ubuntu 18.04 #8217

Closed
JimmyBanks opened this issue Jan 18, 2021 · 4 comments
Closed

PHP8 Protobuf PECL install fails on Ubuntu 18.04 #8217

JimmyBanks opened this issue Jan 18, 2021 · 4 comments

Comments

@JimmyBanks
Copy link

JimmyBanks commented Jan 18, 2021

What version of protobuf and what language are you using?
Version: master/v3.14.0
Language: PHP 8.0.0

What operating system (Linux, Windows, ...) and version?
Ubuntu 18.04

What runtime / compiler are you using (e.g., python version or gcc version)
PEAR/PECL on PHP 8.0.0

What did you do?
Steps to reproduce the behavior:

  1. sudo pecl install protobuf

What did you expect to see
Successful installation

What did you see instead?
/tmp/pear/temp/protobuf/array.c:639:6: error: ‘zend_object_handlers {aka struct _zend_object_handlers}’ has no member named ‘compare_objects’; did you mean ‘cast_object’?
h->compare_objects = RepeatedField_compare_objects;

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

Anything else we should know about your project / environment

@chiragvels
Copy link

I am also facing same issue.

/tmp/pear/temp/protobuf/array.c: In function ‘Array_ModuleInit’:
/tmp/pear/temp/protobuf/array.c:639:6: error: ‘zend_object_handlers {aka struct _zend_object_handlers}’ has no member named ‘compare_objects’; did you mean ‘cast_object’?
h->compare_objects = RepeatedField_compare_objects;
^~~~~~~~~~~~~~~
cast_object

Makefile:210: recipe for target 'array.lo' failed
make: *** [array.lo] Error 1
ERROR: `make' failed

Thanks,

@TeBoring
Copy link
Contributor

#8105

This fix hasn't been released yet.

@chiragvels
Copy link

Hi @TeBoring ,

Any expected time, to release same? Ot how we could use the fix?

Thanks,

@JimmyBanks
Copy link
Author

@TeBoring

Hi @TeBoring ,

Any expected time, to release same? Ot how we could use the fix?

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants