php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56273 debugging APC
Submitted: 2005-01-20 11:50 UTC Modified: 2005-02-09 10:40 UTC
From: ag at m-cam dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ag at m-cam dot com
New email:
PHP Version: OS:

 

 [2005-01-20 11:50 UTC] ag at m-cam dot com
Description:
------------
I am running Debian Serge on Ultra e450 Sparc.

PHP-4.3.11-dev (current stable does not compile with my options).

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gettext --with-xml --with-dom --with-pgsql --with-mcrypt --with-iconv --enable-mbstring
--with-mbstring=all --with-zlib-dir=/usr/include --with-imap --with-openssl --with-ldap --with-kerberos --with-imap-ssl 
--enable-debug

gcc version 3.3.5 (Debian 1:3.3.5-5)

On startup I see the following warning in my Apache logs:

PHP Warning:  Unknown(): apc: Unable to initialize module\nModule compiled with module API=20020429, debug=0, thread-safety=0\nPHP compiled with module API=20020429, debug=1, thread-safety=0\nThese options need to match\n in Unknown on line 0 

I build APC after having built PHP with --enable-debug, but there is NO way to enable debugging in APC. And unless APC is loaded, I do not get the segfaults/bus errors for which I can generate a backtrace.

The following are the list of commands I execute to build APC.

%> /usr/local/bin/phpize
%> ./configure --enable-apc --with-gnu-ld --with-php-config=/usr/local/bin/php-config
%> make -j3
%> make install
Installing shared extensions:     /usr/local/lib/php/extensions/debug-non-zts-20020429/ 






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-09 02:09 UTC] rasmus@php.net
Did you do a make install after rebuilding PHP with debug enabled?  The phpize script should have picked up the debug flag and passed it to APC when you ran phpize in the APC directory.  If you are using the old phpize from the non-debug php build, APC will be built non-debug.
 [2005-02-09 10:40 UTC] ag at m-cam dot com
Apparently, one has to manually delete all the installed PHP/PECL directories/files before attempting a new (e.g. debug enabled) installation. My initial thinking was that "make install" would take care of that by overwriting the files from a previous installation. That does not seem to be the case, though. Manually cleaning the installed files solved all the issues.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 24 09:05:44 2022 UTC