[xdebug-dev] Bug 0000058: 1.3.1 won't compile on RH9

From: <xdebug-dev[@]lists.xdebug.org>
Date: Sat, 10 Apr 2004 12:37:48 +0200

A BUGNOTE has been added to this bug.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000058
======================================================================
Reporter: elambart
Handler:
======================================================================
Project: Xdebug
Bug ID: 58
Category: Installation
Reproducibility: always
Severity: trivial
Priority: normal
Status: feedback
Operating System:
PHP Version: 5.0.0-dev
Xdebug Version: 1.3.1
======================================================================
Date Submitted: 2004-04-06 22:34 CEST
Last Modified: 2004-04-10 12:37 CEST
======================================================================
Summary: 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.
======================================================================

----------------------------------------------------------------------
 derick - 2004-04-06 22:46 CEST
----------------------------------------------------------------------
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 10:13 CEST
----------------------------------------------------------------------
Reminder sent to elambart

Did the latest CVS version of PHP 5 help?

----------------------------------------------------------------------
 elambart - 2004-04-07 19:36 CEST
----------------------------------------------------------------------
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 12:37 CEST
----------------------------------------------------------------------
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).

Bug History
Date Modified Username Field Change
======================================================================
2004-04-06 22:34elambart New Bug
2004-04-06 22:46derick Bugnote Added: 0000117
2004-04-06 22:46derick Severity block => trivial
2004-04-06 22:46derick Status new => feedback
2004-04-07 10:13derick Bugnote Added: 0000118
2004-04-07 19:36elambart Bugnote Added: 0000119
2004-04-10 12:37derick Bugnote Added: 0000122
2004-04-10 12:37derick Xdebug Version 1.3.0 => 1.3.1
======================================================================
Received on Sat Apr 10 2004 - 12:37:50 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST