Closed rask closed 3 years ago
Same here
+1
I have almost the same error. So I'm pasting data here if it can help:
/bin/bash /tmp/php-meminfo/extension/php7/libtool --mode=compile cc -I. -I/tmp/php-meminfo/extension/php7 -DPHP_ATOM_INC -I/tmp/php-meminfo/extension/php7/include -I/tmp/php-meminfo/extension/php7/main -I/tmp/php-meminfo/extension/php7 -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-meminfo/extension/php7/meminfo.c -o meminfo.lo
cc -I. -I/tmp/php-meminfo/extension/php7 -DPHP_ATOM_INC -I/tmp/php-meminfo/extension/php7/include -I/tmp/php-meminfo/extension/php7/main -I/tmp/php-meminfo/extension/php7 -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/php-meminfo/extension/php7/meminfo.c -fPIC -DPIC -o .libs/meminfo.o
/tmp/php-meminfo/extension/php7/meminfo.c: In function 'meminfo_browse_class_static_members':
/tmp/php-meminfo/extension/php7/meminfo.c:135:26: error: 'zend_class_entry' {aka 'struct _zend_class_entry'} has no member named 'static_members_table'; did you mean 'static_members_table__ptr'?
if (class_entry->static_members_table) {
^~~~~~~~~~~~~~~~~~~~
static_members_table__ptr
/tmp/php-meminfo/extension/php7/meminfo.c:145:42: error: 'zend_class_entry' {aka 'struct _zend_class_entry'} has no member named 'static_members_table'; did you mean 'static_members_table__ptr'?
prop = &class_entry->static_members_table[prop_info->offset];
^~~~~~~~~~~~~~~~~~~~
static_members_table__ptr
/tmp/php-meminfo/extension/php7/meminfo.c: In function 'meminfo_zval_dump':
/tmp/php-meminfo/extension/php7/meminfo.c:358:22: warning: implicit declaration of function 'Z_OBJDEBUG_P'; did you mean 'Z_OBJCE_P'? [-Wimplicit-function-declaration]
properties = Z_OBJDEBUG_P(zv, is_temp);
^~~~~~~~~~~~
Z_OBJCE_P
/tmp/php-meminfo/extension/php7/meminfo.c:358:20: warning: assignment to 'HashTable *' {aka 'struct _zend_array *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
properties = Z_OBJDEBUG_P(zv, is_temp);
^
make: *** [Makefile:191: meminfo.lo] Error 1
Same for 7.4 here on 18.04; is this package unmaintained?
Aha, there's https://github.com/BitOne/php-meminfo/pull/97 which fixes the compilation issues for me on 7.4
Cannot reproduce with master on a PHP 7.3 using Sury packages. As the issue is quite old, must have been fixed by some other PR. So closing now.
If you encounter this issue with master, please re-open the issue.
When I follow the README instructions as such:
On Ubuntu 18.04 I receive errors as such:
And on a dockerized CentOS/RHEL environment the same procedure fails with errors similar to the following:
(The error above is a snippet from the full error list, which is a lot longer.)
PHP version is 7.3.9, and PHP development tooling has been installed in both cases. PHP is installed from deb.sury.org on the Ubuntu machine, and from remirepo in the CentOS/RHEL image.