Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step 3/3 : RUN mkdir -p -m 0777 /tmp/xhprof && chown www-data:www-data /tmp/xhprof && git clone https://github.com/humanmade/xhprof /opt/xhprof && cd /opt/xhprof/extension && git checkout -b s
- ampling-interval && phpize && ./configure --with-php-config=/usr/local/bin/php-config && make && make install
- ---> Running in 7f07edb5184e
- Cloning into '/opt/xhprof'...
- Switched to a new branch 'sampling-interval'
- Configuring for:
- PHP Api Version: 20160303
- Zend Module Api No: 20160303
- Zend Extension Api No: 320160303
- 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-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking target system type... x86_64-unknown-linux-gnu
- checking for PHP prefix... /usr/local
- checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ex
- t/date/lib
- checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20160303
- checking for PHP installed headers prefix... /usr/local/include/php
- checking if debug is enabled... no
- checking if zts is enabled... no
- checking for re2c... re2c
- checking for re2c version... 0.13.5 (ok)
- checking for gawk... no
- checking for nawk... nawk
- checking if nawk is broken... no
- checking whether to enable xhprof support... yes, shared
- checking for ld used by cc... /usr/bin/ld
- checking if the linker (/usr/bin/ld) is GNU ld... yes
- checking for /usr/bin/ld option to reload object files... -r
- checking for BSD-compatible nm... /usr/bin/nm -B
- checking whether ln -s works... yes
- checking how to recognize dependent libraries... pass_all
- 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 dlfcn.h usability... yes
- checking dlfcn.h presence... yes
- checking for dlfcn.h... yes
- checking the maximum length of command line arguments... 1572864
- checking command to parse /usr/bin/nm -B output from cc object... ok
- checking for objdir... .libs
- checking for ar... ar
- checking for ranlib... ranlib
- checking for strip... strip
- checking if cc supports -fno-rtti -fno-exceptions... no
- checking for cc option to produce PIC... -fPIC
- checking if cc PIC flag -fPIC works... yes
- checking if cc static flag -static works... yes
- checking if cc supports -c -o file.o... 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
- creating libtool
- appending configuration tag "CXX" to libtool
- configure: creating ./config.status
- config.status: creating config.h
- /bin/bash /opt/xhprof/extension/libtool --mode=compile cc -I. -I/opt/xhprof/extension -DPHP_ATOM_INC -I/opt/xhprof/extension/include -I/opt/xhprof/extension/main -I/opt/xhprof/extension -I/usr/local/
- include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /
- opt/xhprof/extension/xhprof.c -o xhprof.lo
- mkdir .libs
- cc -I. -I/opt/xhprof/extension -DPHP_ATOM_INC -I/opt/xhprof/extension/include -I/opt/xhprof/extension/main -I/opt/xhprof/extension -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/
- include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/xhprof/extension/xhprof.c -fPIC -DPIC -o .libs/xhprof.
- o
- /opt/xhprof/extension/xhprof.c: In function 'hp_get_function_name':
- /opt/xhprof/extension/xhprof.c:936:21: error: 'zend_execute_data' has no member named 'function_state'
- curr_func = data->function_state.function;
- ^
- /opt/xhprof/extension/xhprof.c:939:10: warning: assignment from incompatible pointer type
- func = curr_func->common.function_name;
- ^
- /opt/xhprof/extension/xhprof.c:950:13: warning: assignment from incompatible pointer type
- cls = curr_func->common.scope->name;
- ^
- /opt/xhprof/extension/xhprof.c:951:22: error: 'zend_execute_data' has no member named 'object'
- } else if (data->object) {
- ^
- In file included from /usr/local/include/php/Zend/zend.h:31:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /opt/xhprof/extension/xhprof.c:952:28: error: 'zend_execute_data' has no member named 'object'
- cls = Z_OBJCE(*data->object)->name;
- ^
- /usr/local/include/php/Zend/zend_types.h:537:26: note: in definition of macro 'Z_OBJ'
- #define Z_OBJ(zval) (zval).value.obj
- ^
- /opt/xhprof/extension/xhprof.c:952:15: note: in expansion of macro 'Z_OBJCE'
- cls = Z_OBJCE(*data->object)->name;
- ^
- /opt/xhprof/extension/xhprof.c:1013:41: warning: passing argument 1 of 'hp_get_base_filename' from incompatible pointer type
- filename = hp_get_base_filename((curr_func->op_array).filename);
- ^
- /opt/xhprof/extension/xhprof.c:897:20: note: expected 'const char *' but argument is of type 'struct zend_string *'
- static const char *hp_get_base_filename(const char *filename) {
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_inc_count':
- /opt/xhprof/extension/xhprof.c:1093:26: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type
- if (zend_hash_find(ht, name, strlen(name) + 1, &data) == SUCCESS) {
- ^
- In file included from /usr/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
- ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
- ^
- /opt/xhprof/extension/xhprof.c:1093: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/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:161:30: note: declared here
- ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_hash_lookup':
- /opt/xhprof/extension/xhprof.c:1117:26: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type
- if (zend_hash_find(ht, symbol, strlen(symbol) + 1, &data) == SUCCESS) {
- ^
- In file included from /usr/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
- ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
- ^
- /opt/xhprof/extension/xhprof.c:1117: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/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:161:30: note: declared here
- ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_sample_stack':
- /opt/xhprof/extension/xhprof.c:1181:21: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
- 1);
- ^
- /opt/xhprof/extension/xhprof.c:1178:3: error: 'add_assoc_string' undeclared (first use in this function)
- add_assoc_string(hp_globals.stats_count,
- ^
- /opt/xhprof/extension/xhprof.c:1178:3: note: each undeclared identifier is reported only once for each function it appears in
- /opt/xhprof/extension/xhprof.c: In function 'hp_execute_ex':
- /opt/xhprof/extension/xhprof.c:1656:36: error: 'zend_execute_data' has no member named 'op_array'
- zend_op_array *ops = execute_data->op_array;
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_execute_internal':
- /opt/xhprof/extension/xhprof.c:1709:43: error: 'zend_execute_data' has no member named 'op_array'
- func = hp_get_function_name(current_data->op_array TSRMLS_CC);
- ^
- /opt/xhprof/extension/xhprof.c:1722:47: error: 'zend_execute_data' has no member named 'function_state'
- ((zend_internal_function *) execute_data->function_state.function)->handler(
- ^
- /opt/xhprof/extension/xhprof.c:1724:13: error: 'struct _zend_fcall_info' has no member named 'retval_ptr_ptr'
- *fci->retval_ptr_ptr,
- ^
- /opt/xhprof/extension/xhprof.c:1725:12: error: 'struct _zend_fcall_info' has no member named 'retval_ptr_ptr'
- fci->retval_ptr_ptr,
- ^
- /opt/xhprof/extension/xhprof.c:1726:12: error: 'struct _zend_fcall_info' has no member named 'object_ptr'
- fci->object_ptr,
- ^
- /opt/xhprof/extension/xhprof.c:1729:92: error: invalid type argument of '->' (have 'int')
- zval **return_value_ptr = &EX_TMP_VAR(execute_data, execute_data->opline->result.var)->var.ptr;
- ^
- /opt/xhprof/extension/xhprof.c:1730:47: error: 'zend_execute_data' has no member named 'function_state'
- ((zend_internal_function *) execute_data->function_state.function)->handler(
- ^
- /opt/xhprof/extension/xhprof.c:1733:22: error: 'zend_execute_data' has no member named 'function_state'
- (execute_data->function_state.function->common.fn_flags & ZEND_ACC_RETURN_REFERENCE)
- ^
- /opt/xhprof/extension/xhprof.c:1736:21: error: 'zend_execute_data' has no member named 'object'
- execute_data->object,
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_begin':
- /opt/xhprof/extension/xhprof.c:1864:28: warning: assignment from incompatible pointer type
- _zend_execute_internal = zend_execute_internal;
- ^
- /opt/xhprof/extension/xhprof.c:1869:29: warning: assignment from incompatible pointer type
- zend_execute_internal = hp_execute_internal;
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_stop':
- /opt/xhprof/extension/xhprof.c:1937:25: warning: assignment from incompatible pointer type
- zend_execute_internal = _zend_execute_internal;
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_zval_at_key':
- /opt/xhprof/extension/xhprof.c:1964:13: error: 'zval' has no member named 'type'
- if (values->type == IS_ARRAY) {
- ^
- /opt/xhprof/extension/xhprof.c:1970:28: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type
- if (zend_hash_find(ht, key, len, (void**)&value) == SUCCESS) {
- ^
- In file included from /usr/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
- ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
- ^
- /opt/xhprof/extension/xhprof.c:1970: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/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:161:30: note: declared here
- ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
- ^
- /opt/xhprof/extension/xhprof.c: In function 'hp_strings_in_zval':
- /opt/xhprof/extension/xhprof.c:1994:13: error: 'zval' has no member named 'type'
- if (values->type == IS_ARRAY) {
- ^
- /opt/xhprof/extension/xhprof.c:2014:47: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type
- type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
- ^
- In file included from /usr/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:195:30: note: expected '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);
- ^
- /opt/xhprof/extension/xhprof.c:2014:53: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type
- type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
- ^
- In file included from /usr/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:195:30: note: expected 'zend_ulong *' but argument is of type 'uint *'
- ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
- ^
- /opt/xhprof/extension/xhprof.c:2014:59: warning: passing argument 4 of 'zend_hash_get_current_key_ex' from incompatible pointer type
- type = zend_hash_get_current_key_ex(ht, &str, &len, &idx, 0, NULL);
- ^
- In file included from /usr/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:195:30: note: expected 'HashPosition *' but argument is of type 'ulong *'
- ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
- ^
- /opt/xhprof/extension/xhprof.c:2014: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/local/include/php/Zend/zend.h:36:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_hash.h:195: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);
- ^
- /opt/xhprof/extension/xhprof.c:2017: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) &&
- ^
- /opt/xhprof/extension/xhprof.c:2017:14: error: 'zend_hash_get_current_data' undeclared (first use in this function)
- if ((zend_hash_get_current_data(ht, (void**)&data) == SUCCESS) &&
- ^
- In file included from /usr/include/string.h:635:0,
- from /usr/local/include/php/main/../main/php_config.h:2504,
- from /usr/local/include/php/Zend/zend_config.h:1,
- from /usr/local/include/php/Zend/zend_portability.h:48,
- from /usr/local/include/php/Zend/zend_types.h:27,
- from /usr/local/include/php/Zend/zend.h:31,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /opt/xhprof/extension/xhprof.c:2019:20: warning: passing argument 1 of '__builtin_strlen' makes pointer from integer without a cast
- strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
- ^
- /opt/xhprof/extension/xhprof.c:2019:20: note: expected 'const char *' but argument is of type 'int'
- /opt/xhprof/extension/xhprof.c:2019:20: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
- strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
- ^
- /opt/xhprof/extension/xhprof.c:2019:20: note: expected 'const char *' but argument is of type 'int'
- /opt/xhprof/extension/xhprof.c:2019:20: warning: passing argument 1 of '__builtin_strlen' makes pointer from integer without a cast
- strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
- ^
- /opt/xhprof/extension/xhprof.c:2019:20: note: expected 'const char *' but argument is of type 'int'
- /opt/xhprof/extension/xhprof.c:2019:20: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
- strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
- ^
- /opt/xhprof/extension/xhprof.c:2019:20: note: expected 'const char *' but argument is of type 'int'
- /opt/xhprof/extension/xhprof.c:2019:20: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
- strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
- ^
- /opt/xhprof/extension/xhprof.c:2019:20: note: expected 'const char *' but argument is of type 'int'
- /opt/xhprof/extension/xhprof.c:2019:20: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
- strcmp(Z_STRVAL_PP(data), ROOT_SYMBOL)) { /* do not ignore "main" */
- ^
- /opt/xhprof/extension/xhprof.c:2019:20: note: expected 'const char *' but argument is of type 'int'
- In file included from /usr/local/include/php/Zend/zend.h:33:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/Zend/zend_alloc.h:172:35: warning: passing argument 1 of '_estrdup' makes pointer from integer without a cast
- #define estrdup(s) _estrdup((s) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
- ^
- /opt/xhprof/extension/xhprof.c:2020:24: note: in expansion of macro 'estrdup'
- result[ix] = estrdup(Z_STRVAL_PP(data));
- ^
- In file included from /usr/local/include/php/Zend/zend.h:33:0,
- from /usr/local/include/php/main/php.h:35,
- from /opt/xhprof/extension/xhprof.c:27:
- /usr/local/include/php/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;
- ^
- /opt/xhprof/extension/xhprof.c:2025:19: error: 'zval' has no member named 'type'
- } else if(values->type == IS_STRING) {
- ^
- Makefile:193: recipe for target 'xhprof.lo' failed
- make: *** [xhprof.lo] Error 1
- ERROR: Service 'wordpress' failed to build: The command '/bin/sh -c mkdir -p -m 0777 /tmp/xhprof && chown www-data:www-data /tmp/xhprof && git clone https://github.com/humanmade/xhprof /opt/xhprof &&
- cd /opt/xhprof/extension && git checkout -b sampling-interval && phpize && ./configure --with-php-config=/usr/local/bin/php-config && make && make install' returned a non-zero co
- de: 2
Advertisement
Add Comment
Please, Sign In to add comment