I emerged synced today to get the latest version of xdebug available. On running emerge xdebug I get the following errors: /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/php_xdebug.h:66: warning: parame ter names (without types) in function declaration /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/php_xdebug.h:66: warning: data d efinition has no type or storage class /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: `xdebug' un declared here (not in a function) /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: initializer element is not constant /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: (near initi alization for `xdebug_module_entry.post_deactivate_func') make: *** [xdebug.lo] Error 1 make: *** Waiting for unfinished jobs.... gcc -I. -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0 -DPHP_ATOM_INC -I/var/ tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/include -I/var/tmp/portage/xdebug-1.3 .0/work/xdebug-1.3.0/main -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0 -I/u sr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/ph p/TSRM -DHAVE_CONFIG_H -O2 -march=pentium4 -fomit-frame-pointer -c /var/tmp/port age/xdebug-1.3.0/work/xdebug-1.3.0/xdebug_com.c -fPIC -DPIC -o xdebug_com.lo !!! ERROR: dev-php/xdebug-1.3.0 failed. !!! Function php-ext-source_src_compile, Line 43, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge xdebug 3. Error occurs during compilation Actual Results: The following error occured: /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/php_xdebug.h:66: warning: parame ter names (without types) in function declaration /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/php_xdebug.h:66: warning: data d efinition has no type or storage class /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: `xdebug' un declared here (not in a function) /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: initializer element is not constant /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: (near initi alization for `xdebug_module_entry.post_deactivate_func') make: *** [xdebug.lo] Error 1 make: *** Waiting for unfinished jobs.... gcc -I. -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0 -DPHP_ATOM_INC -I/var/ tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/include -I/var/tmp/portage/xdebug-1.3 .0/work/xdebug-1.3.0/main -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0 -I/u sr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/ph p/TSRM -DHAVE_CONFIG_H -O2 -march=pentium4 -fomit-frame-pointer -c /var/tmp/port age/xdebug-1.3.0/work/xdebug-1.3.0/xdebug_com.c -fPIC -DPIC -o xdebug_com.lo !!! ERROR: dev-php/xdebug-1.3.0 failed. !!! Function php-ext-source_src_compile, Line 43, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # emerge info Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1 i686) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.14.90.0.7-r4 Headers: sys-kernel/linux-headers-2.4.21 Libtools: sys-devel/libtool-1.4.3-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xprint xv zlib"
Same problem here I'm using PHP 5, i suspect that might have a part in this: root@lsvb scotty # php -v PHP 5.0.1 (cli) (built: Aug 23 2004 23:52:06) The bug: gcc -I. -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0 -DPHP_ATOM_INC -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/include -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/main -I/var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -O2 -mcpu=i686 -fomit-frame-pointer -pipe -c /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug_handler_gdb.c -fPIC -DPIC -o xdebug_handler_gdb.lo In file included from /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug_var.h:20, from /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:55: /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/php_xdebug.h:66: warning: parameter names (without types) in function declaration /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/php_xdebug.h:66: warning: data definition has no type or storage class /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: `xdebug' undeclared here (not in a function) /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: initializer element is not constant /var/tmp/portage/xdebug-1.3.0/work/xdebug-1.3.0/xdebug.c:125: error: (near initialization for `xdebug_module_entry.post_deactivate_func') make: *** [xdebug.lo] Error 1 Just ask me for more information if needed.
Works for me with PHP 4.3.10. Please test with dev-php/xdebug-1.3.2 ebuild that is in portage now.
Please reopen if dev-php/xdebug-1.3.2 does not work for you.