Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83171 - apache-2.0.52-r2 cant load the xdebug-extension 1.3.2 (xdebug.so)
Summary: apache-2.0.52-r2 cant load the xdebug-extension 1.3.2 (xdebug.so)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-24 03:53 UTC by Michael Zeidler
Modified: 2005-08-25 00:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zeidler 2005-02-24 03:53:45 UTC
After installing php-4.3.10, mod_php-4.3.10 and xdebug-1.3.2, the mod_php doesnt work with xdebug:

Starting apache2 while using tail:

$ tail -f /var/log/apache2/error_log &

$ /etc/init.d/apache2 start

* Starting apache2 ...
 * [ ok ]
 [Thu Feb 24 11:57:31 2005] [notice] Digest:
 generating secret for digest authentication ...
 [Thu Feb 24 11:57:31 2005] [notice] Digest: done
 [Thu Feb 24 11:57:32 2005] [notice] Apache/2.0.52 (Gentoo/Linux)
 mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/4.3.10 configured -- resuming normal
 operations

$ /etc/init.d/apache2 stop

* Stopping apache2 ...
  * [ ok ]
  [root@silversurfer] mike $ Failed loading
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so:
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so: undefined symbol:
  compiler_globals
  Failed loading /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so:
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so: undefined symbol:
  compiler_globals
  [Thu Feb 24 11:57:48 2005] [notice] caught SIGTERM, shutting down
  Failed loading /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so:
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so: undefined symbol:
  compiler_globals

Reproducible: Always
Steps to Reproduce:
1. emerge php; emerge mod_php; emerge xdebug
2. etc-update
3. /etc/init.d/apache2 start
Actual Results:  
1. Error while starting/stoping apache
2. Information of the xdebug extension arent displayed by phpinfo(). 

Expected Results:  
1. xdebug-1.3.2 should work with mod_php-4.3.10.
2. ebuild should resolve possible dependencies. 

1. /usr/lib/extensions/no-debug-non-zts-20020429
I assume that the last numbers in above (..429) determines the php-version
against the module was compiled. So further I assume that there must be a
dependency to php-version 4.2.9 which is not resolved in the ebuild file.
 
2. With php-cli on the commandline there seems to be no problem with xdebug.
phpinfo() here displays the appropriate pieces of information to the
xdebug-extension.

3. some more configuration details:

------------------------------------------------------------------------------------------
Use-Flags for php and mod_php:

[ebuild   R   ] dev-php/php-4.3.10  +X +berkdb +crypt +curl -debug -doc -fdftk 
-firebird -flash -freetds +gd -gd-external -gdbm -gmp -hardenedphp +imap -informix 
+ipv6 -java +jpeg -kerberos +ldap -mcal -memlimit -mssql +mysql +ncurses +nls 
-oci8 +odbc +pam +pdflib +png -postgres +qt +readline -snmp +spell +ssl +tiff 
+truetype +xml2 -yaz 

-----------

[ebuild   R   ] dev-php/mod_php-4.3.10  +X +apache2 +berkdb +crypt +curl -debug 
-doc -fdftk -firebird -flash -freetds +gd -gd-external -gdbm -gmp -hardenedphp 
+imap -informix +ipv6 -java +jpeg -kerberos +ldap -mcal -memlimit -mssql +mysql 
+nls -oci8 +odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl +tiff +truetype 
+xml2 -yaz 0 kB 

Total size of downloads: 0 kB

------------------------------------------------------------------------------------------
net-www/apache-2.0.52-r2
dev-php/php-4.3.10
dev-php/mod_php-4.3.10
dev-php/xdebug-1.3.2
-----------------------------------------------------------------------------------------
PHP Version 4.3.10: ./configure:

'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share'
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib'
'--enable-experimental-zts' '--with-apxs2=/usr/sbin/apxs2' '--with-ndbm=/usr'
'--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr'
'--without-interbase' '--without-ming' '--without-swf' '--without-sybase'
'--without-gdbm' '--without-fdftk' '--without-java' '--without-mcal'
'--with-unixODBC=/usr' '--without-pgsql' '--without-snmp'
'--with-xpm-dir=/usr/X11R6' '--without-gmp' '--without-mssql'
'--with-pdflib=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-png=/usr'
'--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr'
'--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr'
'--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext'
'--with-qtdom=/usr/qt/3' '--with-pspell=/usr' '--with-openssl=/usr'
'--with-imap=/usr' '--with-ldap=/usr' '--with-dom=/usr' '--with-dom-xslt=/usr'
'--with-dom-exslt=/usr' '--without-kerberos' '--with-pam'
'--disable-memory-limit' '--enable-ipv6' '--without-yaz' '--disable-debug'
'--with-curlwrappers' '--with-curl=/usr' '--enable-dbx' '--with-imap-ssl'
'--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt'
'--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml'
'--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr'
'--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath'
'--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp'
'--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-iconv'
'--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses'
'--without-readline' '--enable-inline-optimization' '--enable-track-vars'
'--enable-trans-sid' '--enable-versioning'
'--with-config-file-path=/etc/php/apache2-php4' '--without-pear'

------------------------------------------------------------------------------------------
php.ini config:

/etc/php/apache2-php4/php.ini or /etc/apache2/conf/php.ini:

zend_extension_ts=/usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so

-> or with:
zend_extension=/usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so

------
/etc/php/cli-php4/php.ini:
zend_extension=/usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so


------------------------------------------------------------------------------------------
xdebug.so in filesystem:

# ls -al /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so
-rw-r--r--  1 root root 100128 24. Feb 11:04
/usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so

------------------------------------------------------------------------------------------
Starting apache2 while using tail:

$ tail -f /var/log/apache2/error_log &

$ /etc/init.d/apache2 start

* Starting apache2 ...
 * [ ok ]
 [Thu Feb 24 11:57:31 2005] [notice] Digest:
 generating secret for digest authentication ...
 [Thu Feb 24 11:57:31 2005] [notice] Digest: done
 [Thu Feb 24 11:57:32 2005] [notice] Apache/2.0.52 (Gentoo/Linux)
 mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/4.3.10 configured -- resuming normal
 operations

$ /etc/init.d/apache2 stop

* Stopping apache2 ...
  * [ ok ]
  [root@silversurfer] mike $ Failed loading
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so:
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so: undefined symbol:
  compiler_globals
  Failed loading /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so:
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so: undefined symbol:
  compiler_globals
  [Thu Feb 24 11:57:48 2005] [notice] caught SIGTERM, shutting down
  Failed loading /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so:
  /usr/lib/extensions/no-debug-non-zts-20020429/xdebug.so: undefined symbol:
  compiler_globals
-----------------------------------------------------------------------------------------
Comment 1 Michael Zeidler 2005-02-28 10:43:25 UTC
The xdebug-extension crashes with apache compiled with the USE-flag "threads". When "threads" is on as a global USE-flag apache is compiled with MPM-module worker, if not, its compiled with the MPM-module preforked.
The xdebug
Comment 2 Michael Zeidler 2005-02-28 10:43:25 UTC
The xdebug-extension crashes with apache compiled with the USE-flag "threads". When "threads" is on as a global USE-flag apache is compiled with MPM-module worker, if not, its compiled with the MPM-module preforked.
The xdebug´s ebuild-file must check whether apache was emerged as mentioned before.
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2005-05-31 15:13:41 UTC
I'm in two minds about whether it's worth adding this test or not.  The PHP
documentation clearly states that PHP shouldn't be used with threaded Apache2 MPMs.

I'll have a think about it.
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2005-08-25 00:47:02 UTC
Hi,

This issue is now resolved in the Gentoo PHP Overlay packages.  The overlay is
available for general use, or you can wait until we add the packages to Portage
in the next few weeks.

http://svn.gnqs.org/projects/gentoo-php-overlay/

Best regards,
Stu