Issue compling PHP 5

#1
Here's a snippet of the error output:

Code:
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/sapi_apache2.c:411: undefined reference to `apr_pool_cleanup_null'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/sapi_apache2.c:411: undefined reference to `apr_pool_userdata_set'
sapi/apache2handler/sapi_apache2.o: In function `php_pre_config':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/sapi_apache2.c:384: undefined reference to `ap_mpm_query'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/sapi_apache2.c:386: undefined reference to `ap_log_error'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_sapi_getenv':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/sapi_apache2.c:229: undefined reference to `apr_table_get'
sapi/apache2handler/apache_config.o: In function `php_apache_phpini_set':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/apache_config.c:116: undefined reference to `ap_server_root_relative'
sapi/apache2handler/apache_config.o: In function `real_value_hnd':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/apache_config.c:68: undefined reference to `apr_pstrdup'
sapi/apache2handler/apache_config.o: In function `create_php_config':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/apache_config.c:203: undefined reference to `apr_palloc'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/apache_config.c:207: undefined reference to `apr_pool_cleanup_null'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/apache_config.c:207: undefined reference to `apr_pool_cleanup_register'
sapi/apache2handler/php_functions.o: In function `zm_info_apache':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:389: undefined reference to `ap_loaded_modules'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:389: undefined reference to `ap_loaded_modules'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:417: undefined reference to `unixd_config'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:417: undefined reference to `unixd_config'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:417: undefined reference to `unixd_config'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:421: undefined reference to `ap_mpm_query'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:425: undefined reference to `apr_snprintf'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:431: undefined reference to `ap_server_root'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:440: undefined reference to `apr_table_elts'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:460: undefined reference to `apr_table_elts'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:469: undefined reference to `apr_table_elts'
sapi/apache2handler/php_functions.o: In function `zif_apache_get_modules':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:366: undefined reference to `ap_loaded_modules'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:366: undefined reference to `ap_loaded_modules'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:366: undefined reference to `ap_loaded_modules'
sapi/apache2handler/php_functions.o: In function `zif_apache_response_headers':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:213: undefined reference to `apr_table_elts'
sapi/apache2handler/php_functions.o: In function `zif_apache_request_headers':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:189: undefined reference to `apr_table_elts'
sapi/apache2handler/php_functions.o: In function `php_apache_lookup_uri':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:67: undefined reference to `ap_sub_req_lookup_uri'
sapi/apache2handler/php_functions.o: In function `zif_apache_lookup_uri':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:170: undefined reference to `ap_destroy_sub_req'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:165: undefined reference to `ap_destroy_sub_req'
sapi/apache2handler/php_functions.o: In function `zif_virtual':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:105: undefined reference to `ap_destroy_sub_req'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:101: undefined reference to `ap_rflush'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:103: undefined reference to `ap_run_sub_req'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:108: undefined reference to `ap_destroy_sub_req'
sapi/apache2handler/php_functions.o: In function `zif_apache_getenv':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:325: undefined reference to `apr_table_get'
sapi/apache2handler/php_functions.o: In function `zif_apache_setenv':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:287: undefined reference to `apr_table_set'
sapi/apache2handler/php_functions.o: In function `zif_apache_note':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:240: undefined reference to `apr_table_get'
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:244: undefined reference to `apr_table_set'
sapi/apache2handler/php_functions.o: In function `php_apache_get_version':
/opt/lsws/phpbuild/php-5.2.5/sapi/apache2handler/php_functions.c:339: undefined reference to `ap_get_server_version'
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
Any ideas?

Thanks
 
#3
remove "--with-apxs2" configuration parameter.
So out of this:

Code:
--disable-pdo --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-sockets --prefix=/usr/local [B]--with-apxs2=/usr/local/apache/bin/apxs[/B] --with-curl=/opt/curlssl/ --with-freetype-dir=/usr --with-gd --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl=/usr --with-openssl-dir=/usr --with-png-dir=/usr --with-ttf --with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr
I should remove the bold?
 
Top