View Issue Details

IDProjectCategoryView StatusLast Update
0000058XdebugInstallationpublic2004-04-18 00:36
Reporterelambart Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Summary0000058: 1.3.1 won't compile on RH9
Description

This may be "bogus" to you (sorry), but I first heard of your package today and am interested in trying it out. I have tried this on two different RH9 installations (one fairly stock, the other a very up-to-date workstation)without success. I could try to figure it out myself, but
until I get hooked on xdebug I'm lacking enough incentive to hack at it.
=)

I followed the instructions in README. Note the errors from make. I performed (as a non-root user):
$ phpize
$ ./configure --enable-xconfig
$ make
/bin/sh /work/xdebug-1.3.1/libtool --mode=compile gcc -I.
-I/work/xdebug-1.3.1
-DPHP_ATOM_INC -I/work/xdebug-1.3.1/include -I/work/xdebug-1.3.1/main
-I/work/xdebug-1.3.1 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c
/work/xdebug-1.3.1/xdebug.c -o xdebug.lo
gcc -I. -I/work/xdebug-1.3.1 -DPHP_ATOM_INC -I/work/xdebug-1.3.1/include
-I/work/xdebug-1.3.1/main -I/work/xdebug-1.3.1 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c
/work/xdebug-1.3.1/xdebug.c -fPIC -DPIC -o xdebug.lo
In file included from /work/xdebug-1.3.1/xdebug_var.h:20,
from /work/xdebug-1.3.1/xdebug.c:55:
/work/xdebug-1.3.1/php_xdebug.h:66: warning: parameter names (without
types) in
function declaration
/work/xdebug-1.3.1/php_xdebug.h:66: warning: data definition has no type
or storage class
/work/xdebug-1.3.1/xdebug.c:125: xdebug' undeclared here (not in a function) /work/xdebug-1.3.1/xdebug.c:125: initializer element is not constant /work/xdebug-1.3.1/xdebug.c:125: (near initialization for xdebug_module_entry.post_deactivate_func')
make: *** [xdebug.lo] Error 1

Obviously I'm doing a clean install, here.

Additional Information

xdebug is 1.3.1 (not offered in dropdown list)

TagsNo tags attached.
Operating System
PHP Version5.0.0-dev

Activities

derick

2004-04-06 21:46

administrator   ~0000117

You need to have a more recent version of PHP 5, preferrably the latest CVS version as this one has some API changes on which Xdebug depends. Please let me know if that fixes your problem.

derick

2004-04-07 09:13

administrator   ~0000118

Reminder sent to elambart

Did the latest CVS version of PHP 5 help?

elambart

2004-04-07 18:36

reporter   ~0000119

Nope, I got the PHP5-CVS version yesterday (and installed it). Just tried to re-make xdebug here, now. Exact same error. I even did it from scratch:
rm -rf'd the xdebug directory, re-untarred the .tgz, phpize, ./configure --enable-xdebug, make...

Do you require that PHP be configured with certain extensions/settings?

and yes, php-config is in the path.

derick

2004-04-10 11:37

administrator   ~0000122

This error can only exist if you don't have the PHP 5 headers correctly installed (as the code it tries to use does only exist in recent PHP 5 sources). Are you sure you did to a "make install" after the make of PHP 5?

After that go to the xdebug source dir and do:

phpize && ./configure && make clean && make

that should compile just fine (as it does for me).

elambart

2004-04-14 22:36

reporter   ~0000123

Thanks, Derick.
Tried that but no luck. Maybe my snapshot is too old. PHP headers are installed in /usr/local/include/php

[eric@Linux2 php5-200404062030]$ grep -ir ZEND_MODULE_EXEC_FINISHED_D *.[ch]
[eric@Linux2 php5-200404062030]$

I'll go get a new one.

elambart

2004-04-14 22:53

reporter   ~0000124

Still no luck! snaps.php.net claims to have the "Latest CVS" snapshots, but...

[eric@Linux2 xdebug-1.3.1]$ grep -ir ZEND_MODULE_EXEC_FINISHED_D *.[ch]
php_xdebug.h:ZEND_MODULE_EXEC_FINISHED_D(xdebug);
xdebug.c:ZEND_MODULE_EXEC_FINISHED_D(xdebug)

[eric@Linux2 php5-200404141230]$ grep -ir ZEND_MODULE_EXEC_FINISHED_D *.[ch]
(nothing)

derick

2004-04-18 00:36

administrator   ~0000125

Hello,

you were right indeed, I forgot to merge this from the HEAD branch in cvs to 1.3.x. It's now fixed in CVS (http://xdebug.org/install.php#source).

regards,
Derick

Issue History

Date Modified Username Field Change
2004-04-06 21:34 elambart New Issue
2004-04-06 21:46 derick Note Added: 0000117
2004-04-06 21:46 derick Severity block => trivial
2004-04-06 21:46 derick Status new => feedback
2004-04-07 09:13 derick Note Added: 0000118
2004-04-07 18:36 elambart Note Added: 0000119
2004-04-10 11:37 derick Xdebug Version 1.3.0 => 1.3.1
2004-04-10 11:37 derick Note Added: 0000122
2004-04-14 22:36 elambart Note Added: 0000123
2004-04-14 22:53 elambart Note Added: 0000124
2004-04-18 00:36 derick Status feedback => closed
2004-04-18 00:36 derick Note Added: 0000125