LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   php compilation error on centos 5.3 (https://www.linuxquestions.org/questions/linux-newbie-8/php-compilation-error-on-centos-5-3-a-4175447015/)

amartlk 01-24-2013 05:13 AM

php compilation error on centos 5.3
 
Hi

I have centos 5.4 installed i make try to compile php5.2.1 with following command

./configure --with-mysql --with-mysql-sock --with-mysqli --with-pdo-mysql --with-xml --with-gd --with-ttf --with-freetype-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-libpng-dir=/usr/local/lib --with-apxs2=/LAMP/server/apache/bin/apxs --with-apache2=../httpd-2.2.8 --enable-track-vars --enable-mbstring



while i fired make command i get following error


/LAMP/installers/php-5.2.1/ext/date/php_date.c:790: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/php_date.c:788: undefined reference to `__moddi3'
ext/date/.libs/php_date.o: In function `english_suffix':
/LAMP/installers/php-5.2.1/ext/date/php_date.c:681: undefined reference to `__moddi3'
ext/date/.libs/php_date.o: In function `php_do_date_sunrise_sunset':
/LAMP/installers/php-5.2.1/ext/date/php_date.c:2290: undefined reference to `__divdi3'
ext/date/.libs/php_date.o: In function `php_idate':
/LAMP/installers/php-5.2.1/ext/date/php_date.c:966: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/php_date.c:953: undefined reference to `__moddi3'
ext/date/lib/.libs/dow.o: In function `century_value':
/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:28: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:29: undefined reference to `__moddi3'
ext/date/lib/.libs/dow.o: In function `timelib_day_of_week_ex':
/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:43: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:45: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:44: undefined reference to `__moddi3'
ext/date/lib/.libs/dow.o: In function `timelib_day_of_year':
/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:72: undefined reference to `__moddi3'
ext/date/lib/.libs/dow.o:/LAMP/installers/php-5.2.1/ext/date/lib/dow.c:72: more undefined references to `__moddi3' follow
ext/date/lib/.libs/tm2unixtime.o: In function `do_range_limit':
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:40: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:41: undefined reference to `__divdi3'
ext/date/lib/.libs/tm2unixtime.o: In function `do_range_limit_days':
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:61: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:71: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:71: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:61: undefined reference to `__moddi3'
ext/date/lib/.libs/tm2unixtime.o: In function `do_years':
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:187: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:195: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:195: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:203: undefined reference to `__moddi3'
ext/date/lib/.libs/tm2unixtime.o: In function `do_months':
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:215: undefined reference to `__umoddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:215: undefined reference to `__umoddi3'
ext/date/lib/.libs/tm2unixtime.o: In function `do_years':
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:203: undefined reference to `__moddi3'
ext/date/lib/.libs/tm2unixtime.o: In function `do_adjust_special_weekday':
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:165: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/tm2unixtime.c:165: undefined reference to `__divdi3'
ext/date/lib/.libs/unixtime2tm.o: In function `timelib_unixtime2gmt':
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:48: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:60: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:60: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:89: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:89: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:104: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:113: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:114: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:79: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/date/lib/unixtime2tm.c:79: undefined reference to `__moddi3'
ext/pdo/.libs/pdo.o: In function `php_pdo_int64_to_str':
/LAMP/installers/php-5.2.1/ext/pdo/pdo.c:299: undefined reference to `__udivdi3'
ext/pdo_sqlite/sqlite/src/.libs/pager.o: In function `seekJournalHdr':
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/pager.c:608: undefined reference to `__divdi3'
ext/pdo_sqlite/sqlite/src/.libs/pager.o: In function `pager_stmt_playback':
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/pager.c:1468: undefined reference to `__divdi3'
ext/pdo_sqlite/sqlite/src/.libs/pager.o: In function `sqlite3pager_pagecount':
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/pager.c:1828: undefined reference to `__divdi3'
ext/pdo_sqlite/sqlite/src/.libs/pager.o: In function `pager_playback':
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/pager.c:1317: undefined reference to `__divdi3'
ext/pdo_sqlite/sqlite/src/.libs/printf.o: In function `vxprintf':
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/printf.c:411: undefined reference to `__umoddi3'
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/printf.c:412: undefined reference to `__udivdi3'
ext/pdo_sqlite/sqlite/src/.libs/vdbe.o: In function `sqlite3VdbeExec':
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/vdbe.c:1099: undefined reference to `__moddi3'
/LAMP/installers/php-5.2.1/ext/pdo_sqlite/sqlite/src/vdbe.c:1094: undefined reference to `__divdi3'
ext/sqlite/libsqlite/src/.libs/pager.o: In function `pager_ckpt_playback':
/LAMP/installers/php-5.2.1/ext/sqlite/libsqlite/src/pager.c:815: undefined reference to `__divdi3'
ext/sqlite/libsqlite/src/.libs/pager.o: In function `pager_playback':
/LAMP/installers/php-5.2.1/ext/sqlite/libsqlite/src/pager.c:694: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/ext/sqlite/libsqlite/src/pager.c:697: undefined reference to `__divdi3'
ext/standard/.libs/streamsfuncs.o: In function `zif_stream_socket_accept':
/LAMP/installers/php-5.2.1/ext/standard/streamsfuncs.c:251: undefined reference to `__udivdi3'
/LAMP/installers/php-5.2.1/ext/standard/streamsfuncs.c:252: undefined reference to `__umoddi3'
ext/standard/.libs/streamsfuncs.o: In function `zif_stream_socket_client':
/LAMP/installers/php-5.2.1/ext/standard/streamsfuncs.c:109: undefined reference to `__udivdi3'
/LAMP/installers/php-5.2.1/ext/standard/streamsfuncs.c:110: undefined reference to `__umoddi3'
main/.libs/snprintf.o: In function `ap_php_conv_10':
/LAMP/installers/php-5.2.1/main/snprintf.c:337: undefined reference to `__udivdi3'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_get_stat':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:200: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:201: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:202: undefined reference to `__divdi3'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_get_request_time':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:306: undefined reference to `__divdi3'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_ap2_register_hook':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:656: undefined reference to `ap_hook_pre_config'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:657: undefined reference to `ap_hook_post_config'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:658: undefined reference to `ap_hook_handler'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_log_message':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:293: undefined reference to `ap_log_rerror'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:291: undefined reference to `ap_log_error'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_log_message_ex':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:300: undefined reference to `ap_log_rerror'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_ini_dtor':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:488: undefined reference to `apr_pool_cleanup_run'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_read_cookies':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:217: undefined reference to `apr_table_get'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_request_ctor':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:435: undefined reference to `apr_table_get'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:436: undefined reference to `apr_pstrdup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:439: undefined reference to `apr_pstrdup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:440: undefined reference to `apr_pstrdup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:443: undefined reference to `apr_table_get'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:446: undefined reference to `apr_table_unset'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:447: undefined reference to `apr_table_unset'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:448: undefined reference to `apr_table_unset'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:449: undefined reference to `apr_table_unset'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:450: undefined reference to `ap_auth_type'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:451: undefined reference to `apr_table_get'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:453: undefined reference to `apr_pstrdup'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_handler':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:563: undefined reference to `ap_add_common_vars'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:564: undefined reference to `ap_add_cgi_vars'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:510: undefined reference to `apr_palloc'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:515: undefined reference to `apr_pool_cleanup_null'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:515: undefined reference to `apr_pool_cleanup_register'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:628: undefined reference to `apr_psprintf'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:628: undefined reference to `apr_table_set'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:605: undefined reference to `ap_update_mtime'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:606: undefined reference to `ap_set_last_modified'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:637: undefined reference to `apr_bucket_eos_create'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:640: undefined reference to `ap_pass_brigade'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:646: undefined reference to `apr_brigade_cleanup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:570: undefined reference to `apr_brigade_create'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_register_variables':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:238: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_read_post':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:173: undefined reference to `apr_brigade_flatten'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:174: undefined reference to `apr_brigade_cleanup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:172: undefined reference to `ap_get_brigade'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_send_headers':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:147: undefined reference to `apr_pstrdup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:147: undefined reference to `ap_set_content_type'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:133: undefined reference to `apr_pstrdup'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:138: undefined reference to `apr_table_set'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:136: undefined reference to `apr_table_set'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_header_handler':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:113: undefined reference to `apr_table_set'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:115: undefined reference to `apr_table_add'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_flush':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:278: undefined reference to `ap_rflush'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_ub_write':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:78: undefined reference to `ap_rwrite'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_server_startup':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:396: undefined reference to `apr_pool_userdata_get'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:416: undefined reference to `apr_pool_cleanup_null'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:416: undefined reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_add_version':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:367: undefined reference to `ap_add_version_component'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_server_startup':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:403: undefined reference to `apr_pool_cleanup_null'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:403: undefined reference to `apr_pool_userdata_set'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_pre_config':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:376: undefined reference to `ap_mpm_query'
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:378: undefined reference to `ap_log_error'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_getenv':
/LAMP/installers/php-5.2.1/sapi/apache2handler/sapi_apache2.c:229: undefined reference to `apr_table_get'
sapi/apache2handler/.libs/apache_config.o: In function `php_apache_phpini_set':
/LAMP/installers/php-5.2.1/sapi/apache2handler/apache_config.c:114: undefined reference to `ap_server_root_relative'
sapi/apache2handler/.libs/apache_config.o: In function `real_value_hnd':
/LAMP/installers/php-5.2.1/sapi/apache2handler/apache_config.c:67: undefined reference to `apr_pstrdup'
sapi/apache2handler/.libs/apache_config.o: In function `create_php_config':
/LAMP/installers/php-5.2.1/sapi/apache2handler/apache_config.c:201: undefined reference to `apr_palloc'
/LAMP/installers/php-5.2.1/sapi/apache2handler/apache_config.c:205: undefined reference to `apr_pool_cleanup_null'
/LAMP/installers/php-5.2.1/sapi/apache2handler/apache_config.c:205: undefined reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/php_functions.o: In function `zm_info_apache':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:389: undefined reference to `ap_loaded_modules'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:389: undefined reference to `ap_loaded_modules'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:417: undefined reference to `unixd_config'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:417: undefined reference to `unixd_config'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:417: undefined reference to `unixd_config'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:421: undefined reference to `ap_mpm_query'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:425: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:425: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:425: undefined reference to `apr_snprintf'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:431: undefined reference to `ap_server_root'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:440: undefined reference to `apr_table_elts'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:460: undefined reference to `apr_table_elts'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:469: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_get_modules':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:366: undefined reference to `ap_loaded_modules'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:366: undefined reference to `ap_loaded_modules'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:366: undefined reference to `ap_loaded_modules'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_response_headers':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:213: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_request_headers':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:189: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function `php_apache_lookup_uri':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:67: undefined reference to `ap_sub_req_lookup_uri'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_lookup_uri':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:170: undefined reference to `ap_destroy_sub_req'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:143: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:163: undefined reference to `__divdi3'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:165: undefined reference to `ap_destroy_sub_req'
sapi/apache2handler/.libs/php_functions.o: In function `zif_virtual':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:105: undefined reference to `ap_destroy_sub_req'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:101: undefined reference to `ap_rflush'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:103: undefined reference to `ap_run_sub_req'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:108: undefined reference to `ap_destroy_sub_req'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_getenv':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:325: undefined reference to `apr_table_get'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_setenv':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:287: undefined reference to `apr_table_set'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_note':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:240: undefined reference to `apr_table_get'
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:244: undefined reference to `apr_table_set'
sapi/apache2handler/.libs/php_functions.o: In function `php_apache_get_version':
/LAMP/installers/php-5.2.1/sapi/apache2handler/php_functions.c:339: undefined reference to `ap_get_server_version'
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


Regards
Amar

TB0ne 01-24-2013 09:51 AM

Quote:

Originally Posted by amartlk (Post 4876701)
Hi
I have centos 5.4 installed i make try to compile php5.2.1 with following command

./configure --with-mysql --with-mysql-sock --with-mysqli --with-pdo-mysql --with-xml --with-gd --with-ttf --with-freetype-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --with-libpng-dir=/usr/local/lib --with-apxs2=/LAMP/server/apache/bin/apxs --with-apache2=../httpd-2.2.8 --enable-track-vars --enable-mbstring

while i fired make command i get following error

Well, that's not the whole error screen. You're probably missing some headers/libraries, which are typically identified at the beginning of that stream of errors. Add to that, the latest version of PHP is 5.4.10 (from source), so the version you're installing is SIX years old...if you're going to upgrade, at least upgrade to the latest version. And did the configure step give you any errors/warnings??

Most importantly...why are you not upgrading through yum, just by typing in "yum update php"? And why do you need that SPECIFIC version? The CentOS wiki even covers doing this, and warns against it:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2

amartlk 01-25-2013 01:46 AM

Hi

THanks for reply, i have follow the link you provided i have all required php package installed , but still i got this error while compiling php , i check this same php source on 32 bit centos it work fine but i run same source of php on 64 bit show the error posted on previous post

Amar

amartlk 01-25-2013 04:53 AM

Hi guru

i fired make clean command , then the php is compile sucessfully, but when i try to start httpd service shows error as "cannot load /LAMP/server/apache/modules/libphp5.so into server: /LAMP/server/apache/modules/libphp5.so: wrong ELF class: ELFCLASS64"

Regards
Amar

TB0ne 01-25-2013 10:14 AM

Quote:

Originally Posted by amartlk (Post 4877185)
Hi
THanks for reply, i have follow the link you provided i have all required php package installed , but still i got this error while compiling php , i check this same php source on 32 bit centos it work fine but i run same source of php on 64 bit show the error posted on previous post

...and....
Quote:

Originally Posted by amartlk
i fired make clean command , then the php is compile sucessfully, but when i try to start httpd service shows error as "cannot load /LAMP/server/apache/modules/libphp5.so into server: /LAMP/server/apache/modules/libphp5.so: wrong ELF class: ELFCLASS64"

Ok, you're still not answering some questions:
  • The latest version of PHP is 5.4.10 (from source), so the version you're installing is SIX years old...why are you using such old software?
  • Why do you need that SPECIFIC version?
  • Why are you not upgrading through yum?
Again, the CentOS forums specifically say that this is a BAD IDEA:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
Quote:

Originally Posted by CentOS Wiki
Top of the page
WARNING: php version 5.2.6, as described later in this document is obsolete and prone to security issues. Please consider either upgrading to php53 as included in CentOS 5.6 or use the IUS Community Repo

Remove the entire PHP source directory, download a fresh copy, and re-compile, since that would be the simplest thing to do. The message you're getting is very plain, and it's telling you that you have some sort of mismatch in architecture, with some piece of your system. You don't say whether your machine is 32 or 64 bit, or which your Apache is, but the error has been covered before on Google:
https://bugs.php.net/bug.php?id=52993
http://enlinea.creaelicita.cl/guia/oci8.setup.html

AGAIN...that version is old, insecure, and CentOS says it's a bad idea to load. If you insist on doing it, load it through yum.

amartlk 01-29-2013 12:09 AM

hi guru
thanks for reply, i have some local application that is run on this php version hence required this version and installed apache,mysql,php not in default location , it is installed under some other location , and my server is 64 bit .i fired the command file -L /LAMP/server/apache/modules/libphp5.so , i get following message
/LAMP/server/apache/modules/libphp5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

Regards
amar

TB0ne 01-29-2013 08:53 AM

Quote:

Originally Posted by amartlk (Post 4879588)
hi guru
thanks for reply, i have some local application that is run on this php version hence required this version

Sorry, that's wrong. You do not need a SPECIFIC version of PHP to run a php application. That version or ANY newer version should work just fine. If it doesn't, then you need to update your PHP code, and move forward. Keeping something running on old, insecure software is also a very bad idea, and will do NOTHING to help you move forward. How long do you think you'll be able to use old software?? You will eventually have to update.
Quote:

and installed apache,mysql,php not in default location , it is installed under some other location
...which doesn't matter, as long as Apache can find the PHP modules. [B]AGAIN....the CentOS forums specifically say that this is a BAD IDEA:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2[/QUOTE]
Quote:

and my server is 64 bit .i fired the command file -L /LAMP/server/apache/modules/libphp5.so , i get following message
/LAMP/server/apache/modules/libphp5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
...which brings us back to "old software", and this being a bad idea. AGAIN, this is SIX YEARS OLD...CentOS WARNS YOU not to do this. You still don't say whether you re-downloaded the file, and did it from a FRESH directory, instead of what you copied over from another machine, as was suggested.

amartlk 01-30-2013 07:09 AM

Hi guru

i compile php from redownloded fresh copy it compile sucessfully but when i started apache services still show same error "shows error as "cannot load /LAMP/server/apache/modules/libphp5.so into server: /LAMP/server/apache/modules/libphp5.so: wrong ELF class: ELFCLASS64" what this error mean?

i fired the command file -L /LAMP/server/apache/modules/libphp5.so , i get following message
/LAMP/server/apache/modules/libphp5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped what it mean that apache is 32 bit? unable to understand,or how can i come to known about installed apache is 32 bit or 64 bit

Amar

TB0ne 01-30-2013 08:52 AM

Quote:

Originally Posted by amartlk (Post 4880639)
Hi guru
i compile php from redownloded fresh copy it compile sucessfully but when i started apache services still show same error "shows error as "cannot load /LAMP/server/apache/modules/libphp5.so into server: /LAMP/server/apache/modules/libphp5.so: wrong ELF class: ELFCLASS64" what this error mean?

The same thing it meant before, when I provided you links to that error on the PHP site: either your Apache is 32 bit and you're using a 64 bit PHP, or vice-versa.
Quote:

i fired the command file -L /LAMP/server/apache/modules/libphp5.so , i get following message
/LAMP/server/apache/modules/libphp5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped what it mean that apache is 32 bit? unable to understand,or how can i come to known about installed apache is 32 bit or 64 bit
So, you've compiled a 32 bit version of PHP, on a 64 bit system, and you're wondering why you're getting a message about it NOT being a 64 bit module???? You can run "rpm -qa | grep apache" to see what apache packages you have loaded.

AGAIN....WHAT YOU'RE TRYING TO DO IS A BAD IDEA...there is NO REASON to do it. Load current, up-to-date software.

amartlk 01-30-2013 11:35 PM

Hi

i fired rpm -qa | grep apache i get output,as
rpm -qa | grep httpd
system-config-httpd-1.3.3.3-1.el5
httpd-manual-2.2.3-22.el5.centos.2
httpd-2.2.3-22.el5.centos.2

/LAMP/server/apache/modules/libphp5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), means i have 32 bit php installed or try to installed ? or apache is 32 bit ?

TB0ne 01-31-2013 09:03 AM

Quote:

Originally Posted by amartlk (Post 4881098)
Hi
i fired rpm -qa | grep apache i get output,as
rpm -qa | grep httpd
system-config-httpd-1.3.3.3-1.el5
httpd-manual-2.2.3-22.el5.centos.2
httpd-2.2.3-22.el5.centos.2

Your Apache is four years old, and you're wanting to load PHP that is SIX years old. Again, these are bad ideas...upgrade both through yum.
Quote:

/LAMP/server/apache/modules/libphp5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), means i have 32 bit php installed or try to installed ? or apache is 32 bit ?
AGAIN, you either have 32 bit Apache and are trying to load a 64 bit PHP, or vice-versa. That STILL HASN'T CHANGED, nor is the fact that what you're doing is a BAD IDEA, and will cause you to have system problems, and CentOS even TELLS YOU THIS.

If you want to find out about your Apache architecture, then run "httpd -V" (or "httpd2 -V"), and look for the line that says "Architecture". Read it.

AGAIN, you are trying to do something that's not a good idea, that's introducing VERY OLD SOFTWARE to your system, and even the makers are telling you it shouldn't be done. You are ignoring ALL of this, and trying to do it anyway...do NOT be surprised when you encounter lots of problems. If you just upgrade apache and PHP through Yum, you'd have been done days ago, and have a SUPPORTED, STABLE SYSTEM. Which you will NOT have if you manage to shoehorn this old software onto your server.


All times are GMT -5. The time now is 07:51 AM.