From:             
Operating system: Linux Debian
PHP version:      5.3.3
Package:          Compile Failure
Bug Type:         Bug
Bug description:Unable to compile PHP with both Apache2 and FPM support

Description:
------------
PHP fails to compile with both Apache 2 module (option --with-apxs2) and
FPM enabled (option --enable-fpm).

Test script:
---------------
Configure line:

./configure --prefix=/usr --sysconfdir=/etc --cache-file=./config.cache
--with-config-file-path=/etc/php
--with-config-file-scan-dir=/etc/php/extensions --enable-bcmath=shared
--with-bz2=shared --enable-calendar=shared --with-curl=shared
--enable-exif=shared --enable-ftp=shared --with-gd --with-gettext=shared
--with-gmp --with-imap=shared --with-imap-ssl --with-kerberos
--with-ldap=shared --enable-mbstring=shared --with-mcrypt=shared
--with-mhash=shared --without-mssql --with-mysql=shared,mysqlnd
--with-mysqli=shared,mysqlnd --with-openssl --enable-pcntl=shared
--enable-pdo=shared -with-pdo-mysql=shared --with-pdo-sqlite=shared
--without-pgsql --with-pspell=shared --with-snmp=shared
--with-sqlite=shared --with-sqlite3=shared --enable-sqlite-utf8
--enable-soap=shared --enable-sockets=shared --without-sybase-ct
--enable-sysvmsg=shared --enable-sysvsem=shared --enable-sysvshm=shared
--with-tidy=shared --without-unixODBC --with-xmlrpc=shared
--with-xsl=shared --enable-zip=shared --with-zlib=shared
--disable-short-tags --enable-debug --enable-cgi --enable-cli --with-pear
--enable-zend-multibyte --with-apxs2=/usr/bin/apxs2 --enable-fpm

Actual result:
--------------
$ make -j 2

blahblahblah

Generating phar.php

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_ub_write':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:84: undefined
reference to `ap_rwrite'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_header_handler':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:101: undefined
reference to `apr_table_unset'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:105: undefined
reference to `apr_table_clear'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:136: undefined
reference to `ap_set_content_length'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:139: undefined
reference to `apr_table_set'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:141: undefined
reference to `apr_table_add'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_send_headers':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:164: undefined
reference to `apr_pstrdup'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:167: undefined
reference to `apr_table_set'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:176: undefined
reference to `apr_pstrdup'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:176: undefined
reference to `ap_set_content_type'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_read_post':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:202: undefined
reference to `apr_brigade_flatten'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:203: undefined
reference to `apr_brigade_cleanup'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:201: undefined
reference to `ap_get_brigade'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_read_cookies':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:246: undefined
reference to `apr_table_get'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_getenv':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:262: undefined
reference to `apr_table_get'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_register_variables':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:271: undefined
reference to `apr_table_elts'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_flush':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:311: undefined
reference to `ap_rflush'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_log_message':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:324: undefined
reference to `ap_log_error'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:326: undefined
reference to `ap_log_rerror'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_log_message_ex':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:333: undefined
reference to `ap_log_rerror'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_add_version':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:410: undefined
reference to `ap_add_version_component'

sapi/apache2handler/.libs/sapi_apache2.o: In function `php_pre_config':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:419: undefined
reference to `ap_mpm_query'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:421: undefined
reference to `ap_log_error'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_server_startup':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:439: undefined
reference to `apr_pool_userdata_get'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:446: undefined
reference to `apr_pool_cleanup_null'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:446: undefined
reference to `apr_pool_userdata_set'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:459: undefined
reference to `apr_pool_cleanup_null'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:459: undefined
reference to `apr_pool_cleanup_register'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_request_ctor':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:478: undefined
reference to `apr_table_get'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:479: undefined
reference to `apr_pstrdup'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:482: undefined
reference to `apr_pstrdup'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:483: undefined
reference to `apr_pstrdup'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:486: undefined
reference to `apr_table_get'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:489: undefined
reference to `apr_table_unset'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:490: undefined
reference to `apr_table_unset'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:491: undefined
reference to `apr_table_unset'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:492: undefined
reference to `apr_table_unset'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:493: undefined
reference to `ap_auth_type'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:494: undefined
reference to `apr_table_get'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:499: undefined
reference to `apr_pstrdup'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_ini_dtor':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:534: undefined
reference to `apr_pool_cleanup_run'

sapi/apache2handler/.libs/sapi_apache2.o: In function `php_handler':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:556: undefined
reference to `apr_palloc'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:561: undefined
reference to `apr_pool_cleanup_null'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:561: undefined
reference to `apr_pool_cleanup_register'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:609: undefined
reference to `ap_add_common_vars'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:610: undefined
reference to `ap_add_cgi_vars'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:616: undefined
reference to `apr_brigade_create'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:651: undefined
reference to `ap_update_mtime'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:652: undefined
reference to `ap_set_last_modified'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:675: undefined
reference to `apr_psprintf'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:674: undefined
reference to `apr_table_set'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:683: undefined
reference to `apr_bucket_eos_create'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:686: undefined
reference to `ap_pass_brigade'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:692: undefined
reference to `apr_brigade_cleanup'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_child_init':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:702: undefined
reference to `apr_pool_cleanup_null'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:702: undefined
reference to `apr_pool_cleanup_register'

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_ap2_register_hook':

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:707: undefined
reference to `ap_hook_pre_config'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:708: undefined
reference to `ap_hook_post_config'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:709: undefined
reference to `ap_hook_handler'

/storage/php/php-5.3.3/sapi/apache2handler/sapi_apache2.c:710: undefined
reference to `ap_hook_child_init'

sapi/apache2handler/.libs/apache_config.o: In function `real_value_hnd':

/storage/php/php-5.3.3/sapi/apache2handler/apache_config.c:68: undefined
reference to `apr_pstrdup'

sapi/apache2handler/.libs/apache_config.o: In function
`php_apache_phpini_set':

/storage/php/php-5.3.3/sapi/apache2handler/apache_config.c:116: undefined
reference to `ap_server_root_relative'

sapi/apache2handler/.libs/apache_config.o: In function
`create_php_config':

/storage/php/php-5.3.3/sapi/apache2handler/apache_config.c:225: undefined
reference to `apr_palloc'

/storage/php/php-5.3.3/sapi/apache2handler/apache_config.c:229: undefined
reference to `apr_pool_cleanup_null'

/storage/php/php-5.3.3/sapi/apache2handler/apache_config.c:229: undefined
reference to `apr_pool_cleanup_register'

sapi/apache2handler/.libs/php_functions.o: In function
`php_apache_lookup_uri':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:67: undefined
reference to `ap_sub_req_lookup_uri'

sapi/apache2handler/.libs/php_functions.o: In function `zif_virtual':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:89: undefined
reference to `ap_destroy_sub_req'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:99: undefined
reference to `ap_rflush'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:101: undefined
reference to `ap_run_sub_req'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:103: undefined
reference to `ap_destroy_sub_req'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:106: undefined
reference to `ap_destroy_sub_req'

sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_lookup_uri':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:162: undefined
reference to `ap_destroy_sub_req'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:167: undefined
reference to `ap_destroy_sub_req'

sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_request_headers':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:186: undefined
reference to `apr_table_elts'

sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_response_headers':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:210: undefined
reference to `apr_table_elts'

sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_note':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:234: undefined
reference to `apr_table_get'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:237: undefined
reference to `apr_table_set'

sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_setenv':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:277: undefined
reference to `apr_table_set'

sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_getenv':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:313: undefined
reference to `apr_table_get'

sapi/apache2handler/.libs/php_functions.o: In function
`php_apache_get_version':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:328: undefined
reference to `ap_get_server_version'

sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_get_modules':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:356: undefined
reference to `ap_loaded_modules'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:355: undefined
reference to `ap_loaded_modules'

sapi/apache2handler/.libs/php_functions.o: In function `zm_info_apache':

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:383: undefined
reference to `ap_loaded_modules'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:382: undefined
reference to `ap_loaded_modules'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:413: undefined
reference to `unixd_config'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:413: undefined
reference to `unixd_config'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:413: undefined
reference to `unixd_config'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:418: undefined
reference to `ap_mpm_query'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:422: undefined
reference to `apr_snprintf'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:428: undefined
reference to `ap_server_root'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:437: undefined
reference to `apr_table_elts'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:457: undefined
reference to `apr_table_elts'

/storage/php/php-5.3.3/sapi/apache2handler/php_functions.c:466: undefined
reference to `apr_table_elts'

collect2: ld returned 1 exit status

make: *** [sapi/fpm/php-fpm] Error 1

make: *** Waiting for unfinished jobs....

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

Reply via email to