User:MW131tester/Failed XHProf-beta install

From mediawiki.org
$ 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
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
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
sh: 1: phpize: not found
ERROR: `phpize' failed
$ sudo apt-get install php-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  autoconf automake autotools-dev libc-dev-bin libc6-dev libpcre16-3
  libpcre3-dev libpcre32-3 libpcrecpp0v5 libssl-dev libssl1.1 libtool
  php7.2-dev shtool
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc glibc-doc libtool-doc gfortran
  | fortran95-compiler gcj-jdk dh-php
Recommended packages:
  libssl-doc libltdl-dev pkg-php-tools
The following NEW packages will be installed:
  autoconf automake autotools-dev libc-dev-bin libc6-dev libpcre16-3
  libpcre3-dev libpcre32-3 libpcrecpp0v5 libssl-dev libtool php-dev php7.2-dev
  shtool
The following packages will be upgraded:
  libssl1.1
1 upgraded, 14 newly installed, 0 to remove and 185 not upgraded.
Need to get 7,743 kB of archives.
After this operation, 41.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.1 amd64 1.1.0g-2ubuntu4.3 [1,130 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 autoconf all 2.69-11 [322 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 autotools-dev all 20180224.1 [39.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 automake all 1:1.15.1-3ubuntu2 [509 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-dev-bin amd64 2.27-3ubuntu1 [71.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6-dev amd64 2.27-3ubuntu1 [2,587 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre16-3 amd64 2:8.39-9 [147 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre32-3 amd64 2:8.39-9 [138 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcrecpp0v5 amd64 2:8.39-9 [15.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre3-dev amd64 2:8.39-9 [537 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.0g-2ubuntu4.3 [1,374 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtool all 2.4.6-2 [194 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 shtool all 2.0.8-9 [121 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 php7.2-dev amd64 7.2.10-0ubuntu0.18.04.1 [555 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 php-dev all 1:7.2+60ubuntu1 [3,116 B]
Fetched 7,743 kB in 1s (6,354 kB/s)  
Preconfiguring packages ...
(Reading database ... 252370 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.0g-2ubuntu4.3_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.0g-2ubuntu4.3) over (1.1.0g-2ubuntu4.1) ...
Setting up libssl1.1:amd64 (1.1.0g-2ubuntu4.3) ...
Selecting previously unselected package autoconf.
(Reading database ... 252370 files and directories currently installed.)
Preparing to unpack .../00-autoconf_2.69-11_all.deb ...
Unpacking autoconf (2.69-11) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../01-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../02-automake_1%3a1.15.1-3ubuntu2_all.deb ...
Unpacking automake (1:1.15.1-3ubuntu2) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../03-libc-dev-bin_2.27-3ubuntu1_amd64.deb ...
Unpacking libc-dev-bin (2.27-3ubuntu1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../04-libc6-dev_2.27-3ubuntu1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.27-3ubuntu1) ...
Selecting previously unselected package libpcre16-3:amd64.
Preparing to unpack .../05-libpcre16-3_2%3a8.39-9_amd64.deb ...
Unpacking libpcre16-3:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcre32-3:amd64.
Preparing to unpack .../06-libpcre32-3_2%3a8.39-9_amd64.deb ...
Unpacking libpcre32-3:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcrecpp0v5:amd64.
Preparing to unpack .../07-libpcrecpp0v5_2%3a8.39-9_amd64.deb ...
Unpacking libpcrecpp0v5:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../08-libpcre3-dev_2%3a8.39-9_amd64.deb ...
Unpacking libpcre3-dev:amd64 (2:8.39-9) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../09-libssl-dev_1.1.0g-2ubuntu4.3_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.0g-2ubuntu4.3) ...
Selecting previously unselected package libtool.
Preparing to unpack .../10-libtool_2.4.6-2_all.deb ...
Unpacking libtool (2.4.6-2) ...
Selecting previously unselected package shtool.
Preparing to unpack .../11-shtool_2.0.8-9_all.deb ...
Unpacking shtool (2.0.8-9) ...
Selecting previously unselected package php7.2-dev.
Preparing to unpack .../12-php7.2-dev_7.2.10-0ubuntu0.18.04.1_amd64.deb ...
Unpacking php7.2-dev (7.2.10-0ubuntu0.18.04.1) ...
Selecting previously unselected package php-dev.
Preparing to unpack .../13-php-dev_1%3a7.2+60ubuntu1_all.deb ...
Unpacking php-dev (1:7.2+60ubuntu1) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up shtool (2.0.8-9) ...
Setting up libssl-dev:amd64 (1.1.0g-2ubuntu4.3) ...
Setting up autoconf (2.69-11) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up autotools-dev (20180224.1) ...
Processing triggers for doc-base (0.10.8) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Setting up automake (1:1.15.1-3ubuntu2) ...
update-alternatives: using /usr/bin/automake-1.15 to provide /usr/bin/automake (automake) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up libpcrecpp0v5:amd64 (2:8.39-9) ...
Setting up libpcre32-3:amd64 (2:8.39-9) ...
Setting up libc-dev-bin (2.27-3ubuntu1) ...
Setting up libpcre16-3:amd64 (2:8.39-9) ...
Setting up libc6-dev:amd64 (2.27-3ubuntu1) ...
Setting up libtool (2.4.6-2) ...
Setting up libpcre3-dev:amd64 (2:8.39-9) ...
Setting up php7.2-dev (7.2.10-0ubuntu0.18.04.1) ...
update-alternatives: using /usr/bin/php-config7.2 to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: using /usr/bin/phpize7.2 to provide /usr/bin/phpize (phpize) in auto mode
Setting up php-dev (1:7.2+60ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
$ sudo pecl install XHProf-beta
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
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-rootnte8rg/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-rootnte8rg/xhprof-0.9.4/libtool --mode=compile cc  -I. -I/tmp/pear/temp/xhprof/extension -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootnte8rg/xhprof-0.9.4/include -I/tmp/pear/temp/pear-build-rootnte8rg/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-rootnte8rg/xhprof-0.9.4/include -I/tmp/pear/temp/pear-build-rootnte8rg/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