View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000726 | Xdebug | Installation | public | 2011-10-03 04:15 | 2011-10-03 07:50 |
Reporter | suin | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | no change required | ||
Product Version | 2.1.0 | ||||
Summary | 0000726: Cannot compile xdebug. make gives error 1. | ||||
Description | Dear all, I tried to install xdebug 2.1.1 from source on CentOS 6.0 with php-5.4.0Beta sitting in /home/suin/xdebug-2.1.2 The PHP version is: $ /usr/local/php-5.4.0beta1/bin/php -v PHP 5.4.0beta1 (cli) (built: Sep 29 2011 08:39:52) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies I have the gcc $ gcc --version gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The result of phpize $ /usr/local/php-5.4.0beta1/bin/phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 I ran the following command: $ ./configure --with-php-config=/usr/local/php-5.4.0beta1/bin/php-config --enable-xdebug 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 for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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/php-5.4.0beta1 checking for PHP includes... -I/usr/local/php-5.4.0beta1/include/php -I/usr/local/php-5.4.0beta1/include/php/main -I/usr/local/php-5.4.0beta1/include/php/TSRM -I/usr/local/php-5.4.0beta1/include/php/Zend -I/usr/local/php-5.4.0beta1/include/php/ext -I/usr/local/php-5.4.0beta1/include/php/ext/date/lib checking for PHP extension directory... /usr/local/php-5.4.0beta1/lib/php/extensions/no-debug-non-zts-20100525 checking for PHP installed headers prefix... /usr/local/php-5.4.0beta1/include/php 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 eXtended debugging support... yes, shared checking for gettimeofday... yes checking for cos in -lm... yes 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 ./configure: line 5358: /usr/bin/file: No such file or directory 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... 1966080 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... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld) 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 config.status: config.h is unchanged Then I did a make and got $ make /bin/sh /home/suin/xdebug-2.1.2/libtool --mode=compile cc -I. -I/home/suin/xdebug-2.1.2 -DPHP_ATOM_INC -I/home/suin/xdebug-2.1.2/include -I/home/suin/xdebug-2.1.2/main -I/home/suin/xdebug-2.1.2 -I/usr/local/php-5.4.0beta1/include/php -I/usr/local/php-5.4.0beta1/include/php/main -I/usr/local/php-5.4.0beta1/include/php/TSRM -I/usr/local/php-5.4.0beta1/include/php/Zend -I/usr/local/php-5.4.0beta1/include/php/ext -I/usr/local/php-5.4.0beta1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -c /home/suin/xdebug-2.1.2/xdebug.c -o xdebug.lo mkdir .libs cc -I. -I/home/suin/xdebug-2.1.2 -DPHP_ATOM_INC -I/home/suin/xdebug-2.1.2/include -I/home/suin/xdebug-2.1.2/main -I/home/suin/xdebug-2.1.2 -I/usr/local/php-5.4.0beta1/include/php -I/usr/local/php-5.4.0beta1/include/php/main -I/usr/local/php-5.4.0beta1/include/php/TSRM -I/usr/local/php-5.4.0beta1/include/php/Zend -I/usr/local/php-5.4.0beta1/include/php/ext -I/usr/local/php-5.4.0beta1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O0 -c /home/suin/xdebug-2.1.2/xdebug.c -fPIC -DPIC -o .libs/xdebug.o In file included from /home/suin/xdebug-2.1.2/xdebug.c:50: /home/suin/xdebug-2.1.2/php_xdebug.h:247: error: expected specifier-qualifier-list before ‘php_output_globals’ /home/suin/xdebug-2.1.2/xdebug.c:277: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’ /home/suin/xdebug-2.1.2/xdebug.c:297: error: ‘zend_xdebug_globals’ has no member named ‘do_scream’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_silence_handler’: /home/suin/xdebug-2.1.2/xdebug.c:437: error: ‘zend_xdebug_globals’ has no member named ‘do_scream’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_include_or_eval_handler’: /home/suin/xdebug-2.1.2/xdebug.c:448: error: ‘znode_op’ has no member named ‘u’ /home/suin/xdebug-2.1.2/xdebug.c:448: error: request for member ‘constant’ in something not a structure or union /home/suin/xdebug-2.1.2/xdebug.c:448: error: request for member ‘value’ in something not a structure or union /home/suin/xdebug-2.1.2/xdebug.c:448: error: request for member ‘lval’ in something not a structure or union /home/suin/xdebug-2.1.2/xdebug.c:448: warning: comparison between pointer and integer /home/suin/xdebug-2.1.2/xdebug.c:454: warning: passing argument 2 of ‘xdebug_get_zval’ from incompatible pointer type /home/suin/xdebug-2.1.2/xdebug_var.h:57: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘zm_startup_xdebug’: /home/suin/xdebug-2.1.2/xdebug.c:490: error: ‘zend_xdebug_globals’ has no member named ‘aggr_calls’ /home/suin/xdebug-2.1.2/xdebug.c:490: warning: passing argument 1 of ‘_zend_hash_init_ex’ from incompatible pointer type /usr/local/php-5.4.0beta1/include/php/Zend/zend_hash.h:100: note: expected ‘struct HashTable *’ but argument is of type ‘const struct zend_ini_entry (*)[1]’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘zm_shutdown_xdebug’: /home/suin/xdebug-2.1.2/xdebug.c:608: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’ /home/suin/xdebug-2.1.2/xdebug.c:618: error: ‘zend_xdebug_globals’ has no member named ‘aggr_calls’ /home/suin/xdebug-2.1.2/xdebug.c:618: warning: passing argument 1 of ‘zend_hash_destroy’ from incompatible pointer type /usr/local/php-5.4.0beta1/include/php/Zend/zend_hash.h:101: note: expected ‘struct HashTable *’ but argument is of type ‘const struct zend_ini_entry (*)[1]’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘add_used_variables’: /home/suin/xdebug-2.1.2/xdebug.c:942: error: ‘zend_op_array’ has no member named ‘size’ /home/suin/xdebug-2.1.2/xdebug.c:942: warning: comparison between pointer and integer /home/suin/xdebug-2.1.2/xdebug.c:946: error: ‘znode_op’ has no member named ‘op_type’ /home/suin/xdebug-2.1.2/xdebug.c:946: warning: comparison between pointer and integer /home/suin/xdebug-2.1.2/xdebug.c:947: error: ‘znode_op’ has no member named ‘u’ /home/suin/xdebug-2.1.2/xdebug.c:947: error: request for member ‘var’ in something not a structure or union /home/suin/xdebug-2.1.2/xdebug.c:947: warning: passing argument 2 of ‘zend_get_compiled_variable_name’ makes integer from pointer without a cast /usr/local/php-5.4.0beta1/include/php/Zend/zend_compile.h:418: note: expected ‘zend_uint’ but argument is of type ‘const struct zend_ini_entry *’ /home/suin/xdebug-2.1.2/xdebug.c:947: warning: assignment discards qualifiers from pointer target type /home/suin/xdebug-2.1.2/xdebug.c:950: error: ‘znode_op’ has no member named ‘op_type’ /home/suin/xdebug-2.1.2/xdebug.c:950: warning: comparison between pointer and integer /home/suin/xdebug-2.1.2/xdebug.c:951: error: ‘znode_op’ has no member named ‘u’ /home/suin/xdebug-2.1.2/xdebug.c:951: error: request for member ‘var’ in something not a structure or union /home/suin/xdebug-2.1.2/xdebug.c:951: warning: passing argument 2 of ‘zend_get_compiled_variable_name’ makes integer from pointer without a cast /usr/local/php-5.4.0beta1/include/php/Zend/zend_compile.h:418: note: expected ‘zend_uint’ but argument is of type ‘const struct zend_ini_entry *’ /home/suin/xdebug-2.1.2/xdebug.c:951: warning: assignment discards qualifiers from pointer target type /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_throw_exception_hook’: /home/suin/xdebug-2.1.2/xdebug.c:1017: warning: passing argument 2 of ‘xdebug_hash_extended_find’ discards qualifiers from pointer target type /home/suin/xdebug-2.1.2/xdebug_hash.h:68: note: expected ‘char *’ but argument is of type ‘const char *’ /home/suin/xdebug-2.1.2/xdebug.c:1019: warning: passing argument 6 of ‘xdebug_globals.context.handler->remote_breakpoint’ discards qualifiers from pointer target type /home/suin/xdebug-2.1.2/xdebug.c:1019: note: expected ‘char *’ but argument is of type ‘const char *’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_execute’: /home/suin/xdebug-2.1.2/xdebug.c:1217: warning: passing argument 1 of ‘xdebug_profiler_init’ discards qualifiers from pointer target type /home/suin/xdebug-2.1.2/xdebug_profiler.h:27: note: expected ‘char *’ but argument is of type ‘const char *’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_execute_internal’: /home/suin/xdebug-2.1.2/xdebug.c:1349: warning: passing argument 1 of ‘xdebug_zval_ptr’ from incompatible pointer type /home/suin/xdebug-2.1.2/xdebug_compat.h:41: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_compile_file’: /home/suin/xdebug-2.1.2/xdebug.c:1388: error: ‘zend_op_array’ has no member named ‘done_pass_two’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘zif_xdebug_break’: /home/suin/xdebug-2.1.2/xdebug.c:1564: warning: assignment discards qualifiers from pointer target type /home/suin/xdebug-2.1.2/xdebug.c: In function ‘zif_xdebug_dump_aggr_profiling_data’: /home/suin/xdebug-2.1.2/xdebug.c:1642: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘zif_xdebug_clear_aggr_profiling_data’: /home/suin/xdebug-2.1.2/xdebug.c:1659: error: ‘zend_xdebug_globals’ has no member named ‘profiler_aggregate’ /home/suin/xdebug-2.1.2/xdebug.c:1663: error: ‘zend_xdebug_globals’ has no member named ‘aggr_calls’ /home/suin/xdebug-2.1.2/xdebug.c:1663: warning: passing argument 1 of ‘zend_hash_clean’ from incompatible pointer type /usr/local/php-5.4.0beta1/include/php/Zend/zend_hash.h:102: note: expected ‘struct HashTable *’ but argument is of type ‘const struct zend_ini_entry (*)[1]’ /home/suin/xdebug-2.1.2/xdebug.c: In function ‘xdebug_statement_call’: /home/suin/xdebug-2.1.2/xdebug.c:1698: warning: assignment discards qualifiers from pointer target type make: *** [xdebug.lo] Error 1 | ||||
Tags | No tags attached. | ||||
Operating System | CentOS Linux release 6.0 (Final) | ||||
PHP Version | 5.4-dev | ||||
|
Xdebug 2.1.x does not support PHP 5.4. You need the "master" branch off github for that: https://github.com/derickr/xdebug and http://xdebug.org/download.php#source |