Edit report at http://bugs.php.net/bug.php?id=52419&edit=1

 ID:               52419
 User updated by:  php-bugs at majkl578 dot cz
 Reported by:      php-bugs at majkl578 dot cz
 Summary:          Unable to compile PHP with both Apache2 and FPM
                   support
 Status:           Open
 Type:             Bug
 Package:          Compile Failure
 Operating System: Linux Debian
 PHP Version:      5.3.3

 New Comment:

I've reinstalled libapr and libapr-dev, make clean'ed, then reconfigured
and re-run compilation. Exactly same error.

Compiling them separately works fine.



Versions:

apache2: 2.2.15-6

libapr and libapr-dev: 1.4.2-3


Previous Comments:
------------------------------------------------------------------------
[2010-07-23 18:40:03] ras...@php.net

hrm, it builds perfectly fine on my Debian box with your exact configure
line.  

Are you sure your libapr package is installed correctly?  Try a make
clean and 

reinstall your libapr.

------------------------------------------------------------------------
[2010-07-23 18:19:49] php-bugs at majkl578 dot cz

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 this bug report at http://bugs.php.net/bug.php?id=52419&edit=1

Reply via email to