From:             
Operating system: Linux 3.2.6 glibc 2.11.3
PHP version:      5.3.10
Package:          Compile Failure
Bug Type:         Bug
Bug description:With Apache 2.4.1, ./configure fails on APXS but stops only on 
the MySQL check.

Description:
------------
./configure PHP 5.3.10 fails when attempting to configure apache2handler
DSO with apache 2.4.1.

-------------------------
./configure --prefix=/usr/local/ --with-apxs2=/usr/local/apache2.4/bin/apxs
--with-config-file-path=/usr/local/ --with-mysql=/usr/local/mysql
[.../...]
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...
apxs:Error: Invalid query string `MPM_NAME'.
yes
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no
checking for Caudium support... no
checking for CLI build... yes
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for FPM build... no
checking for Zeus ISAPI support... no
checking for LiteSpeed support... no
checking for Milter support... no
[.../...]
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find libmysqlclient_r under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!
-------------------------

The behavior is very confusing, because if i choose the Apache 2.2.x APXS,
the MySQL checks work fine ! :

-------------------------
./configure --prefix=/usr/local/ --with-apxs2=/usr/local/apache2.2/bin/apxs
--with-config-file-path=/usr/local/ --with-mysql=/usr/local/mysql
[.../...]
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... yes
checking for Apache 1.x (hooks) module support via DSO through APXS... no
[.../...]
checking for specified location of the MySQL UNIX socket... no
checking for mysql_close in -lmysqlclient... yes
checking for MySQL UNIX socket location... no
[.../...]
-------------------------

In fact, the error is in the apache worker check, because of with apache
2.4, the worker can be dynamically loaded, and not fixed at compile time :
The MPM_NAME parameter doesn't exist anymore :

# /usr/local/apache2.2/bin/apxs -q MPM_NAME
prefork

# /usr/local/apache2.4/bin/apxs -q MPM_NAME
apxs:Error: Invalid query string `MPM_NAME'.

This is confirmed in the CHANGES file in the Apache 2.4.1 source, lines
1849 and below :
 *) Allow MPMs to be loaded dynamically, as with most other modules.  Use
     --enable-mpms-shared={list|"all"} to enable.  This required changes
to
     the MPM interfaces.  Removed: mpm.h, mpm_default.h (as an installed
     header), APACHE_MPM_DIR, MPM_NAME, ap_threads_per_child,
     ap_max_daemons_limit, ap_my_generation, etc.  ap_mpm_query() can't be
     called until after the register-hooks phase.  [Jeff Trawick]


Expected result:
----------------
Apache 2.4.1 DSO properly configured.

Seems by the way difficult to auto-configure PHP with Apache 2.4 apxs now,
because apxs doesn't returns any indication about default worker module or
worker modules compiled :
Have to declare what worker module the user intends to use in Apache ?


Actual result:
--------------
./configure fails

-- 
Edit bug report at https://bugs.php.net/bug.php?id=61172&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61172&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61172&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61172&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61172&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61172&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61172&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61172&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61172&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61172&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61172&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61172&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61172&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61172&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61172&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61172&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61172&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61172&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61172&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61172&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61172&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61172&r=mysqlcfg

Reply via email to