Welcome! Log In Create A New Profile

Advanced

Ubuntu Hardy - php 5.3.2 - php-fpn compile error

Posted by Brian Tafoya 
Brian Tafoya
Ubuntu Hardy - php 5.3.2 - php-fpn compile error
July 19, 2010 02:50PM
I have been trying for hours to get past an error that only appears
when I add php-fpn. Hopefully someone out there has seen it:

sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_ap2_register_hook':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:693: undefined
reference to `ap_hook_pre_config'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:694: undefined
reference to `ap_hook_post_config'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:695: undefined
reference to `ap_hook_handler'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_child_init':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:688: undefined
reference to `apr_pool_cleanup_null'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_log_message':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:312: undefined
reference to `ap_log_rerror'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:310: undefined
reference to `ap_log_error'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_log_message_ex':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:319: undefined
reference to `ap_log_rerror'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_register_variables':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:257: undefined
reference to `apr_table_elts'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_read_post':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:188: undefined
reference to `apr_brigade_flatten'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:189: undefined
reference to `apr_brigade_cleanup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:187: undefined
reference to `ap_get_brigade'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_send_headers':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:162: undefined
reference to `apr_pstrdup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:162: undefined
reference to `ap_set_content_type'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:150: undefined
reference to `apr_pstrdup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:153: undefined
reference to `apr_table_set'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_header_handler':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:99: undefined
reference to `apr_table_clear'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:95: undefined
reference to `apr_table_unset'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:125: undefined
reference to `apr_table_set'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:123: undefined
reference to `ap_set_content_length'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:127: undefined
reference to `apr_table_add'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_flush':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:297: undefined
reference to `ap_rflush'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_ub_write':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:78: undefined
reference to `ap_rwrite'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_ini_dtor':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:520: undefined
reference to `apr_pool_cleanup_run'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_request_ctor':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:464: undefined
reference to `apr_table_get'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:465: undefined
reference to `apr_pstrdup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:468: undefined
reference to `apr_pstrdup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:469: undefined
reference to `apr_pstrdup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:472: undefined
reference to `apr_table_get'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:475: undefined
reference to `apr_table_unset'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:476: undefined
reference to `apr_table_unset'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:477: undefined
reference to `apr_table_unset'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:478: undefined
reference to `apr_table_unset'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:479: undefined
reference to `ap_auth_type'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:480: undefined
reference to `apr_table_get'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:485: undefined
reference to `apr_pstrdup'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_handler':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:595: undefined
reference to `ap_add_common_vars'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:596: undefined
reference to `ap_add_cgi_vars'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:542: undefined
reference to `apr_palloc'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:547: undefined
reference to `apr_pool_cleanup_null'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:547: undefined
reference to `apr_pool_cleanup_register'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:660: undefined
reference to `apr_psprintf'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:660: undefined
reference to `apr_table_set'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:637: undefined
reference to `ap_update_mtime'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:638: undefined
reference to `ap_set_last_modified'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:669: undefined
reference to `apr_bucket_eos_create'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:672: undefined
reference to `ap_pass_brigade'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:678: undefined
reference to `apr_brigade_cleanup'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:602: undefined
reference to `apr_brigade_create'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_server_startup':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:425: undefined
reference to `apr_pool_userdata_get'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:445: undefined
reference to `apr_pool_cleanup_null'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:445: undefined
reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_add_version':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:396: undefined
reference to `ap_add_version_component'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_server_startup':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:432: undefined
reference to `apr_pool_cleanup_null'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:432: undefined
reference to `apr_pool_userdata_set'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_pre_config':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:405: undefined
reference to `ap_mpm_query'
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:407: undefined
reference to `ap_log_error'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_ap2_register_hook':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:696: undefined
reference to `ap_hook_child_init'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_child_init':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:688: undefined
reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_getenv':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:248: undefined
reference to `apr_table_get'
sapi/apache2handler/.libs/sapi_apache2.o: In function
`php_apache_sapi_read_cookies':
/tmp/php-5.3.2/sapi/apache2handler/sapi_apache2.c:232: undefined
reference to `apr_table_get'
sapi/apache2handler/.libs/apache_config.o: In function
`php_apache_phpini_set':
/tmp/php-5.3.2/sapi/apache2handler/apache_config.c:116: undefined
reference to `ap_server_root_relative'
sapi/apache2handler/.libs/apache_config.o: In function
`real_value_hnd':
/tmp/php-5.3.2/sapi/apache2handler/apache_config.c:68: undefined
reference to `apr_pstrdup'
sapi/apache2handler/.libs/apache_config.o: In function
`create_php_config':
/tmp/php-5.3.2/sapi/apache2handler/apache_config.c:225: undefined
reference to `apr_palloc'
/tmp/php-5.3.2/sapi/apache2handler/apache_config.c:229: undefined
reference to `apr_pool_cleanup_null'
/tmp/php-5.3.2/sapi/apache2handler/apache_config.c:229: undefined
reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/php_functions.o: In function
`zm_info_apache':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:382: undefined
reference to `ap_loaded_modules'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:382: undefined
reference to `ap_loaded_modules'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:413: undefined
reference to `unixd_config'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:418: undefined
reference to `ap_mpm_query'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:422: undefined
reference to `apr_snprintf'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:428: undefined
reference to `ap_server_root'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:437: undefined
reference to `apr_table_elts'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:457: undefined
reference to `apr_table_elts'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:466: undefined
reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_get_modules':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:355: undefined
reference to `ap_loaded_modules'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_getenv':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:313: undefined
reference to `apr_table_get'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_setenv':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:277: undefined
reference to `apr_table_set'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_note':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:234: undefined
reference to `apr_table_get'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:237: undefined
reference to `apr_table_set'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_response_headers':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:210: undefined
reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_request_headers':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:186: undefined
reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function
`zif_apache_lookup_uri':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:167: undefined
reference to `ap_destroy_sub_req'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:162: undefined
reference to `ap_destroy_sub_req'
sapi/apache2handler/.libs/php_functions.o: In function `zif_virtual':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:103: undefined
reference to `ap_destroy_sub_req'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:99: undefined
reference to `ap_rflush'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:101: undefined
reference to `ap_run_sub_req'
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:106: undefined
reference to `ap_destroy_sub_req'
sapi/apache2handler/.libs/php_functions.o: In function
`php_apache_get_version':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:328: undefined
reference to `ap_get_server_version'
sapi/apache2handler/.libs/php_functions.o: In function
`php_apache_lookup_uri':
/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:67: undefined
reference to `ap_sub_req_lookup_uri'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1


Here is my config:

../configure --enable-fpm --prefix=/usr --with-apxs2=/usr/bin/apxs2 --
with-config-file-path=/etc/apache2 --with-config-file-scan-dir=/etc/
apache2/conf.d --mandir=/usr/share/man --disable-debug --with-
regex=php --disable-rpath --disable-static --with-pic --with-
layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-
sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --
enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif --
enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr --
enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr --
with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --
enable-zip --with-exec-dir=/usr/lib/php5/libexec --without-mm --with-
curl=shared,/usr --with-zlib-dir=/usr --with-gd=shared,/usr --enable-
gd-native-ttf --with-gmp=shared,/usr --with-jpeg-dir=shared,/usr --
with-xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr --with-
freetype-dir=shared,/usr --with-t1lib=shared,/usr --with-ldap=shared,/
usr --with-ldap-sasl=/usr --with-mhash=shared,/usr --with-
mysql=shared,/usr --with-mysqli=/usr/bin/mysql_config --with-
pspell=shared,/usr --with-unixODBC=shared,/usr --with-xsl=shared,/usr
--with-snmp=shared,/usr --with-sqlite=shared,/usr --with-mssql=shared,/
usr --with-tidy=shared,/usr --with-xmlrpc=shared --with-pgsql=shared,/
usr --enable-gd-native-ttf --enable-dba=shared --with-openssl-
dir=shared,/usr --enable-gd-jis-conv --enable-json --with-
mcrypt=shared,/usr --enable-pcntl --with-pdo-mysql --with-pdo-
odbc=unixODBC,/usr --with-pdo-pgsql=shared,/usr --with-pdo-sqlite --
enable-xmlreader --with-tsrm-pthreads --with-imap --with-imap-ssl


Help! Thanks in advance!
Aleksandar Lazic
Re: Ubuntu Hardy - php 5.3.2 - php-fpn compile error
July 19, 2010 04:48PM
Hi Brian,

On Mon 19.07.2010 11:46, Brian Tafoya wrote:

>I have been trying for hours to get past an error that only appears
>when I add php-fpn. Hopefully someone out there has seen it:
>
>/tmp/php-5.3.2/sapi/apache2handler/php_functions.c:313: undefined
>reference to `apr_table_get'

[snip]

>Help! Thanks in advance!

Does not exlude the --with-apxs2 the fpm?!

Can yout run the configure without --with-apxs2

Do you have installed the libapr dev libs

aptitude search libapr

I haven't seen the option --enable-fpm in the

../configure --help

nor with

~/php-5.3.2 $ egrep -r fpm *

which php have you downloaded?

http://www.php.net/downloads.php

Cheers

Aleks
Aleksandar Lazic
Re: Ubuntu Hardy - php 5.3.2 - php-fpn compile error
July 19, 2010 05:22PM
On Mon 19.07.2010 22:46, Aleksandar Lazic wrote:
> Hi Brian,
>
> On Mon 19.07.2010 11:46, Brian Tafoya wrote:
>
>> I have been trying for hours to get past an error that only appears
>> when I add php-fpn. Hopefully someone out there has seen it:
>>
>> /tmp/php-5.3.2/sapi/apache2handler/php_functions.c:313: undefined
>> reference to `apr_table_get'
>
> [snip]
>
>> Help! Thanks in advance!
>
> Does not exlude the --with-apxs2 the fpm?!
>
> Can yout run the configure without --with-apxs2
>
> Do you have installed the libapr dev libs
>
> aptitude search libapr
>
> I haven't seen the option --enable-fpm in the

[snip]

Answer: I found the option here

http://php-fpm.org/download/

BR

Aleks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready