Jump to content

User:MW131tester/Failed XHProf-beta install/3

From mediawiki.org
$ sudo pecl channel-update pecl.php.net
Updating channel "pecl.php.net"
Update of Channel "pecl.php.net" succeeded
$ sudo pecl install XHProf
Failed to download pecl/XHProf within preferred state "stable", latest release is version 0.9.4, stability "beta", use "channel://pecl.php.net/XHProf-0.9.4" to install
install failed
$ sudo pecl install XHProf-beta
downloading xhprof-0.9.4.tgz ...
Starting to download xhprof-0.9.4.tgz (842,077 bytes)
........................................................................................................................................................................done: 842,077 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
building in /tmp/pear/temp/pear-build-rootKLFvjQ/xhprof-0.9.4
running: /tmp/pear/temp/xhprof/extension/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20170718
checking for PHP installed headers prefix... /usr/include/php/20170718
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable xhprof support... yes, shared
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootKLFvjQ/xhprof-0.9.4/libtool --mode=compile cc  -I. -I/tmp/pear/temp/xhprof/extension -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKLFvjQ/xhprof-0.9.4/include -I/tmp/pear/temp/pear-build-rootKLFvjQ/xhprof-0.9.4/main -I/tmp/pear/temp/xhprof/extension -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/xhprof/extension/xhprof.c -o xhprof.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/xhprof/extension -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootKLFvjQ/xhprof-0.9.4/include -I/tmp/pear/temp/pear-build-rootKLFvjQ/xhprof-0.9.4/main -I/tmp/pear/temp/xhprof/extension -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/xhprof/extension/xhprof.c  -fPIC -DPIC -o .libs/xhprof.o
In file included from /usr/include/php/20170718/main/php.h:34:0,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/main/php_config.h:2532:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE 1

/tmp/pear/temp/xhprof/extension/xhprof.c:24:0: note: this is the location of the previous definition
 # define _GNU_SOURCE

/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_init_profiler_state’:
/tmp/pear/temp/xhprof/extension/xhprof.c:662:5: warning: implicit declaration of function ‘FREE_ZVAL’; did you mean ‘ZVAL_ZVAL’? [-Wimplicit-function-declaration]
     FREE_ZVAL(hp_globals.stats_count);
     ^~~~~~~~~
     ZVAL_ZVAL
/tmp/pear/temp/xhprof/extension/xhprof.c:664:3: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration]
   MAKE_STD_ZVAL(hp_globals.stats_count);
   ^~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_get_function_name’:
/tmp/pear/temp/xhprof/extension/xhprof.c:931:21: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘function_state’
     curr_func = data->function_state.function;
                     ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:934:10: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     func = curr_func->common.function_name;
          ^
/tmp/pear/temp/xhprof/extension/xhprof.c:945:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
         cls = curr_func->common.scope->name;
             ^
/tmp/pear/temp/xhprof/extension/xhprof.c:946:22: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘object’
       } else if (data->object) {
                      ^~
In file included from /usr/include/php/20170718/Zend/zend.h:29:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/tmp/pear/temp/xhprof/extension/xhprof.c:947:28: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘object’
         cls = Z_OBJCE(*data->object)->name;
                            ^
/usr/include/php/20170718/Zend/zend_types.h:596:26: note: in definition of macro ‘Z_OBJ’
 #define Z_OBJ(zval)     (zval).value.obj
                          ^~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:947:15: note: in expansion of macro ‘Z_OBJCE’
         cls = Z_OBJCE(*data->object)->name;
               ^~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1002:41: warning: passing argument 1 of ‘hp_get_base_filename’ from incompatible pointer type [-Wincompatible-pointer-types]
         filename = hp_get_base_filename((curr_func->op_array).filename);
                                         ^
/tmp/pear/temp/xhprof/extension/xhprof.c:892:20: note: expected ‘const char *’ but argument is of type ‘zend_string * {aka struct _zend_string *} static const char *hp_get_base_filename(const char *filename) {
                    ^~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_inc_count’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1082:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
   if (zend_hash_find(ht, name, strlen(name) + 1, &data) == SUCCESS) {
                          ^~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: expected ‘zend_string * {aka struct _zend_string *} but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1082:7: error: too many arguments to function ‘zend_hash_find’
   if (zend_hash_find(ht, name, strlen(name) + 1, &data) == SUCCESS) {
       ^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:29:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/tmp/pear/temp/xhprof/extension/xhprof.c:1083:30: warning: implicit declaration of function ‘Z_LVAL_PP’; did you mean ‘Z_LVAL_P’? [-Wimplicit-function-declaration]
     ZVAL_LONG(*(zval**)data, Z_LVAL_PP((zval**)data) + count);
                              ^
/usr/include/php/20170718/Zend/zend_types.h:676:19: note: in definition of macro ‘ZVAL_LONG’
   Z_LVAL_P(__z) = l;    \
                   ^
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_hash_lookup’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1106:26: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
   if (zend_hash_find(ht, symbol, strlen(symbol) + 1, &data) == SUCCESS) {
                          ^~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: expected ‘zend_string * {aka struct _zend_string *} but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1106:7: error: too many arguments to function ‘zend_hash_find’
   if (zend_hash_find(ht, symbol, strlen(symbol) + 1, &data) == SUCCESS) {
       ^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_sample_stack’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1170:21: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
                    1);
                     ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1167:3: error: ‘add_assoc_string’ undeclared (first use in this function); did you mean ‘add_assoc_string_ex’?
   add_assoc_string(hp_globals.stats_count,
   ^~~~~~~~~~~~~~~~
   add_assoc_string_ex
/tmp/pear/temp/xhprof/extension/xhprof.c:1167:3: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_execute_ex’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1645:36: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘op_array’
   zend_op_array *ops = execute_data->op_array;
                                    ^~
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_execute_internal’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1698:43: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘op_array’
   func = hp_get_function_name(current_data->op_array TSRMLS_CC);
                                           ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1673:21: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 #define EX(element) ((execute_data)->element)
                     ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1706:23: note: in expansion of macro ‘EX’
     zend_op *opline = EX(opline);
                       ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1708:5: error: unknown type name ‘temp_variable’
     temp_variable *retvar = &EX_T(opline->result.var);
     ^~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1688:24: warning: implicit declaration of function ‘EX_TMP_VAR’; did you mean ‘IS_TMP_VAR’? [-Wimplicit-function-declaration]
 #define EX_T(offset) (*EX_TMP_VAR(execute_data, offset))
                        ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1708:30: note: in expansion of macro ‘EX_T’
     temp_variable *retvar = &EX_T(opline->result.var);
                              ^~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1688:23: error: invalid type argument of unary ‘*’ (have ‘int’)
 #define EX_T(offset) (*EX_TMP_VAR(execute_data, offset))
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1708:30: note: in expansion of macro ‘EX_T’
     temp_variable *retvar = &EX_T(opline->result.var);
                              ^~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1673:36: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘function_state’
 #define EX(element) ((execute_data)->element)
                                    ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1709:33: note: in expansion of macro ‘EX’
     ((zend_internal_function *) EX(function_state).function)->handler(
                                 ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1711:30: error: request for member ‘var’ in something not a structure or union
                        retvar->var.ptr,
                              ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1673:36: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘function_state’
 #define EX(element) ((execute_data)->element)
                                    ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1712:25: note: in expansion of macro ‘EX’
                        (EX(function_state).function->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) ?
                         ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1713:31: error: request for member ‘var’ in something not a structure or union
                        &retvar->var.ptr:NULL,
                               ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1673:36: error: ‘zend_execute_data {aka struct _zend_execute_data} has no member named ‘object’
 #define EX(element) ((execute_data)->element)
                                    ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1714:24: note: in expansion of macro ‘EX’
                        EX(object), ret TSRMLS_CC);
                        ^~
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_begin’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1830:28: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     _zend_execute_internal = zend_execute_internal;
                            ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1835:29: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
       zend_execute_internal = hp_execute_internal;
                             ^
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_stop’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1903:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
   zend_execute_internal = _zend_execute_internal;
                         ^
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_zval_at_key’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1930:13: error: ‘zval {aka struct _zval_struct} has no member named ‘type’
   if (values->type == IS_ARRAY) {
             ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1936:28: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (zend_hash_find(ht, key, len, (void**)&value) == SUCCESS) {
                            ^~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: expected ‘zend_string * {aka struct _zend_string *} but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1936:9: error: too many arguments to function ‘zend_hash_find’
     if (zend_hash_find(ht, key, len, (void**)&value) == SUCCESS) {
         ^~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:168:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c: In function ‘hp_strings_in_zval’:
/tmp/pear/temp/xhprof/extension/xhprof.c:1960:13: error: ‘zval {aka struct _zval_struct} has no member named ‘type’
   if (values->type == IS_ARRAY) {
             ^~
/tmp/pear/temp/xhprof/extension/xhprof.c:1980:47: warning: passing argument 2 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
       type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
                                               ^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘zend_string ** {aka struct _zend_string **} but argument is of type ‘char **’
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1980:53: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
       type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
                                                     ^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘zend_ulong * {aka long unsigned int *} but argument is of type ‘uint * {aka unsigned int *} ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1980:59: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
       type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
                                                           ^
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: expected ‘HashPosition * {aka unsigned int *} but argument is of type ‘ulong * {aka long unsigned int *} ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1980:14: error: too many arguments to function ‘zend_hash_get_current_key_ex’
       type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:34:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_hash.h:202:30: note: declared here
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1983:58: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
         if ((zend_hash_get_current_data(ht, (void**)&data) == SUCCESS) &&
                                                          ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1983:14: error: ‘zend_hash_get_current_data’ undeclared (first use in this function); did you mean ‘zend_hash_get_current_data_ex’?
         if ((zend_hash_get_current_data(ht, (void**)&data) == SUCCESS) &&
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
              zend_hash_get_current_data_ex
/tmp/pear/temp/xhprof/extension/xhprof.c:1984:13: warning: implicit declaration of function ‘Z_TYPE_PP’; did you mean ‘Z_TYPE_P’? [-Wimplicit-function-declaration]
             Z_TYPE_PP(data) == IS_STRING &&
             ^~~~~~~~~
             Z_TYPE_P
/tmp/pear/temp/xhprof/extension/xhprof.c:1985:20: warning: implicit declaration of function ‘Z_STRVAL_PP’; did you mean ‘Z_STRVAL_P’? [-Wimplicit-function-declaration]
             strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
                    ^~~~~~~~~~~
                    Z_STRVAL_P
/tmp/pear/temp/xhprof/extension/xhprof.c:1985:20: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/php/20170718/main/php_config.h:2591:0,
                 from /usr/include/php/20170718/main/php.h:34,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/string.h:136:12: note: expected ‘const char *’ but argument is of type ‘int’
 extern int strcmp (const char *__s1, const char *__s2)
            ^~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:31:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_alloc.h:172:35: warning: passing argument 1 of ‘_estrdup’ makes pointer from integer without a cast [-Wint-conversion]
 #define estrdup(s)       _estrdup((s) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
                                   ^
/tmp/pear/temp/xhprof/extension/xhprof.c:1986:24: note: in expansion of macro ‘estrdup’
           result[ix] = estrdup(Z_STRVAL_PP(data));
                        ^~~~~~~
In file included from /usr/include/php/20170718/Zend/zend.h:31:0,
                 from /usr/include/php/20170718/main/php.h:36,
                 from /tmp/pear/temp/xhprof/extension/xhprof.c:27:
/usr/include/php/20170718/Zend/zend_alloc.h:84:31: note: expected ‘const char *’ but argument is of type ‘int’
 ZEND_API char*  ZEND_FASTCALL _estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
                               ^~~~~~~~
/tmp/pear/temp/xhprof/extension/xhprof.c:1991:19: error: ‘zval {aka struct _zval_struct} has no member named ‘type’
   } else if(values->type == IS_STRING) {
                   ^~
/tmp/pear/temp/xhprof/extension/xhprof.c: At top level:
/tmp/pear/temp/xhprof/extension/xhprof.c:825:10: warning: ‘hp_globals’ is static but used in inline function ‘hp_ignore_entry’ which is not static
   return hp_globals.ignored_function_names != NULL &&
          ^~~~~~~~~~
Makefile:193: recipe for target 'xhprof.lo' failed
make: *** [xhprof.lo] Error 1
ERROR: `make' failed