LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Issue compling PHP 5

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2008, 05:56 PM
grep grep is offline
Member
 
Join Date: Oct 2007
Posts: 17
Default Issue compling PHP 5

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
Reply With Quote
  #2  
Old 04-27-2008, 08:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
remove "--with-apxs2" configuration parameter.
Reply With Quote
  #3  
Old 04-27-2008, 08:30 PM
grep grep is offline
Member
 
Join Date: Oct 2007
Posts: 17
Quote:
Originally Posted by mistwang View Post
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 --with-apxs2=/usr/local/apache/bin/apxs --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?
Reply With Quote
  #4  
Old 04-28-2008, 09:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yes, that's correct.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:37 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.