Date: Tue, 31 Aug 1999 11:14:47 +0800 (CST) From: Matthew Enger <menger@dhs.org> To: freebsd-questions@freebsd.org Subject: Problem compiling php 3.0.12 + apache_1.3.6/9 Message-ID: <Pine.LNX.4.10.9908311110060.6944-100000@lion.kgv.edu.hk>
next in thread | raw e-mail | index | archive | help
Hello, I am trying to compile php 3.0.12 and apache 1.3.6 or apache 1.3.9 on FreeBSD 3.2-STABLE and I am haviing problems. It apears to be FreeBSD releated as it compiles fine on a RedHat Linux box. On Apache 1.3.9 I get no error listed but it reports that it has failed to configure. On Apache 1.3.6 I get the following: bash-2.03# ./configure --prefix=/home1/httpd --activate-module=src/modules/php3 /libphp3.a --enable-module=php3 Configuring for Apache, Version 1.3.6 + using installation path layout: Apache (config.layout) + activated php3 module (modules/php3/libphp3.a) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for FreeBSD 3.2 platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php3_module uses ConfigStart/End modules/php3/libmodphp3.a(main.o): In function `php3_write': /usr/local/src/php-3.0.12/main.c(.text+0x7a): undefined reference to `ap_rwrite' modules/php3/libmodphp3.a(main.o): In function `php3_puts': /usr/local/src/php-3.0.12/main.c(.text+0xa2): undefined reference to `ap_rputs' modules/php3/libmodphp3.a(main.o): In function `php3_putc': /usr/local/src/php-3.0.12/main.c(.text+0xdb): undefined reference to `ap_rputc' modules/php3/libmodphp3.a(main.o): In function `php3_log_err': /usr/local/src/php-3.0.12/main.c(.text+0x180): undefined reference to `ap_log_er ror' modules/php3/libmodphp3.a(main.o): In function `php3_printf': /usr/local/src/php-3.0.12/main.c(.text+0x1cb): undefined reference to `ap_vbprin tf' modules/php3/libmodphp3.a(main.o): In function `php3_set_timeout': /usr/local/src/php-3.0.12/main.c(.text+0x59e): undefined reference to `ap_signal ' modules/php3/libmodphp3.a(main.o): In function `php3_request_startup': /usr/local/src/php-3.0.12/main.c:639: undefined reference to `ap_block_alarms' /usr/local/src/php-3.0.12/main.c:640: undefined reference to `ap_register_cleanu p' /usr/local/src/php-3.0.12/main.c:641: undefined reference to `ap_unblock_alarms' modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_add_or_update': /usr/local/src/php-3.0.12/php3_hash.c(.text+0x1da): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x210): undefined reference to `ap_u nblock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x33d): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x380): undefined reference to `ap_u nblock_alarms' modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_index_update_or_ next_insert': /usr/local/src/php-3.0.12/php3_hash.c:270: undefined reference to `ap_block_alar ms' /usr/local/src/php-3.0.12/php3_hash.c:282: undefined reference to `ap_unblock_al arms' /usr/local/src/php-3.0.12/php3_hash.c:312: undefined reference to `ap_block_alar ms' /usr/local/src/php-3.0.12/php3_hash.c:328: undefined reference to `ap_unblock_al arms' modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_pointer_update': /usr/local/src/php-3.0.12/php3_hash.c(.text+0x5f0): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x636): undefined reference to `ap_u nblock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x6ea): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x72a): undefined reference to `ap_u nblock_alarms' modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_pointer_index_up date_or_next_insert': /usr/local/src/php-3.0.12/php3_hash.c(.text+0x784): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x7cf): undefined reference to `ap_u nblock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x82f): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x869): undefined reference to `ap_u nblock_alarms' modules/php3/libmodphp3.a(php3_hash.o): In function `if_full_do_resize': /usr/local/src/php-3.0.12/php3_hash.c:569: undefined reference to `ap_block_alar ms' /usr/local/src/php-3.0.12/php3_hash.c:574: undefined reference to `ap_unblock_al arms' modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_del_key_or_index ': /usr/local/src/php-3.0.12/php3_hash.c(.text+0xb60): undefined reference to `ap_b lock_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0xc3e): undefined reference to `ap_u nblock_alarms' modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_sort': /usr/local/src/php-3.0.12/php3_hash.c(.text+0x1284): undefined reference to `ap_ block_alarms' /usr/local/src/php-3.0.12/php3_hash.c(.text+0x12fa): undefined reference to `ap_ unblock_alarms' modules/php3/libmodphp3.a(alloc.o): In function `_emalloc': /usr/local/src/php-3.0.12/alloc.c:103: undefined reference to `ap_block_alarms' /usr/local/src/php-3.0.12/alloc.c:140: undefined reference to `ap_unblock_alarms ' modules/php3/libmodphp3.a(alloc.o): In function `_efree': /usr/local/src/php-3.0.12/alloc.c(.text+0x129): undefined reference to `ap_block _alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x163): undefined reference to `ap_unblo ck_alarms' modules/php3/libmodphp3.a(alloc.o): In function `_ecalloc': /usr/local/src/php-3.0.12/alloc.c(.text+0x17d): undefined reference to `ap_block _alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x19a): undefined reference to `ap_unblo ck_alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x1a5): undefined reference to `ap_unblo ck_alarms' modules/php3/libmodphp3.a(alloc.o): In function `_erealloc': /usr/local/src/php-3.0.12/alloc.c(.text+0x1d9): undefined reference to `ap_block _alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x2af): undefined reference to `ap_unblo ck_alarms' modules/php3/libmodphp3.a(alloc.o): In function `_estrdup': /usr/local/src/php-3.0.12/alloc.c:268: undefined reference to `ap_block_alarms' /usr/local/src/php-3.0.12/alloc.c:278: undefined reference to `ap_unblock_alarms ' /usr/local/src/php-3.0.12/alloc.c:275: undefined reference to `ap_unblock_alarms ' modules/php3/libmodphp3.a(alloc.o): In function `_estrndup': /usr/local/src/php-3.0.12/alloc.c(.text+0x319): undefined reference to `ap_block _alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x330): undefined reference to `ap_unblo ck_alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x349): undefined reference to `ap_unblo ck_alarms' modules/php3/libmodphp3.a(alloc.o): In function `shutdown_memory_manager': /usr/local/src/php-3.0.12/alloc.c(.text+0x3da): undefined reference to `ap_block _alarms' /usr/local/src/php-3.0.12/alloc.c(.text+0x44b): undefined reference to `ap_unblo ck_alarms' modules/php3/libmodphp3.a(request_info.o): In function `php3_init_request_info': /usr/local/src/php-3.0.12/request_info.c(.text+0x51): undefined reference to `ap _table_get' /usr/local/src/php-3.0.12/request_info.c(.text+0x6b): undefined reference to `ap _table_get' /usr/local/src/php-3.0.12/request_info.c(.text+0xa3): undefined reference to `ap _table_get' modules/php3/libmodphp3.a(apache.o): In function `php3_apache_note': /usr/local/src/php-3.0.12/functions/apache.c:88: undefined reference to `ap_tabl e_get' /usr/local/src/php-3.0.12/functions/apache.c:92: undefined reference to `ap_tabl e_set' modules/php3/libmodphp3.a(apache.o): In function `php3_info_apache': /usr/local/src/php-3.0.12/functions/apache.c(.text+0x132): undefined reference t o `ap_group_id' /usr/local/src/php-3.0.12/functions/apache.c(.text+0x138): undefined reference t o `ap_user_id' /usr/local/src/php-3.0.12/functions/apache.c(.text+0x13e): undefined reference t o `ap_user_name' /usr/local/src/php-3.0.12/functions/apache.c(.text+0x165): undefined reference t o `ap_max_requests_per_child' /usr/local/src/php-3.0.12/functions/apache.c(.text+0x184): undefined reference t o `ap_server_root' /usr/local/src/php-3.0.12/functions/apache.c(.text+0x1a1): undefined reference t o `top_module' modules/php3/libmodphp3.a(apache.o): In function `php3_virtual': /usr/local/src/php-3.0.12/functions/apache.c:172: undefined reference to `ap_sub _req_lookup_uri' /usr/local/src/php-3.0.12/functions/apache.c:196: undefined reference to `ap_run _sub_req' /usr/local/src/php-3.0.12/functions/apache.c:198: undefined reference to `ap_des troy_sub_req' /usr/local/src/php-3.0.12/functions/apache.c:201: undefined reference to `ap_des troy_sub_req' modules/php3/libmodphp3.a(apache.o): In function `php3_apache_lookup_uri': /usr/local/src/php-3.0.12/functions/apache.c(.text+0x411): undefined reference t o `ap_sub_req_lookup_uri' /usr/local/src/php-3.0.12/functions/apache.c(.text+0x60f): undefined reference t o `ap_destroy_sub_req' modules/php3/libmodphp3.a(basic_functions.o): In function `php3_getenv': /usr/local/src/php-3.0.12/functions/basic_functions.c(.text+0x17b): undefined re ference to `ap_table_get' modules/php3/libmodphp3.a(basic_functions.o): In function `php3_flush': /usr/local/src/php-3.0.12/functions/basic_functions.c(.text+0x144a): undefined r eference to `ap_rflush' modules/php3/libmodphp3.a(exec.o): In function `_Exec': /usr/local/src/php-3.0.12/functions/exec.c:170: undefined reference to `ap_rflus h' modules/php3/libmodphp3.a(head.o): In function `_php3_Header': /usr/local/src/php-3.0.12/functions/head.c(.text+0x129): undefined reference to `ap_pstrdup' /usr/local/src/php-3.0.12/functions/head.c(.text+0x230): undefined reference to `ap_table_set' /usr/local/src/php-3.0.12/functions/head.c(.text+0x2bc): undefined reference to `ap_pstrdup' modules/php3/libmodphp3.a(head.o): In function `php3_header': /usr/local/src/php-3.0.12/functions/head.c:335: undefined reference to `ap_table _add' /usr/local/src/php-3.0.12/functions/head.c:347: undefined reference to `ap_send_ http_header' modules/php3/libmodphp3.a(mysql.o): In function `_close_mysql_link': /usr/local/src/php-3.0.12/functions/mysql.c(.text+0x1d): undefined reference to `ap_signal' /usr/local/src/php-3.0.12/functions/mysql.c(.text+0x2d): undefined reference to `ap_signal' modules/php3/libmodphp3.a(mysql.o): In function `_close_mysql_plink': /usr/local/src/php-3.0.12/functions/mysql.c:226: undefined reference to `ap_sign al' /usr/local/src/php-3.0.12/functions/mysql.c:232: undefined reference to `ap_sign al' modules/php3/libmodphp3.a(mysql.o): In function `php3_mysql_do_connect': /usr/local/src/php-3.0.12/functions/mysql.c(.text+0x6fa): undefined reference to `ap_signal' modules/php3/libmodphp3.a(mysql.o)(.text+0x722):/usr/local/src/php-3.0.12/functi ons/mysql.c: more undefined references to `ap_signal' follow modules/php3/libmodphp3.a(post.o): In function `php3_getput': /usr/local/src/php-3.0.12/functions/post.c(.text+0xd7): undefined reference to ` ap_should_client_block' /usr/local/src/php-3.0.12/functions/post.c(.text+0xf4): undefined reference to ` ap_hard_timeout' /usr/local/src/php-3.0.12/functions/post.c(.text+0xfd): undefined reference to ` ap_signal' /usr/local/src/php-3.0.12/functions/post.c(.text+0x12a): undefined reference to `ap_get_client_block' /usr/local/src/php-3.0.12/functions/post.c(.text+0x153): undefined reference to `ap_reset_timeout' /usr/local/src/php-3.0.12/functions/post.c(.text+0x187): undefined reference to `ap_signal' /usr/local/src/php-3.0.12/functions/post.c(.text+0x192): undefined reference to `ap_kill_timeout' modules/php3/libmodphp3.a(post.o): In function `php3_getpost': /usr/local/src/php-3.0.12/functions/post.c(.text+0x35f): undefined reference to `ap_should_client_block' /usr/local/src/php-3.0.12/functions/post.c(.text+0x37c): undefined reference to `ap_hard_timeout' /usr/local/src/php-3.0.12/functions/post.c(.text+0x385): undefined reference to `ap_signal' /usr/local/src/php-3.0.12/functions/post.c(.text+0x3b2): undefined reference to `ap_get_client_block' /usr/local/src/php-3.0.12/functions/post.c(.text+0x3db): undefined reference to `ap_reset_timeout' /usr/local/src/php-3.0.12/functions/post.c(.text+0x405): undefined reference to `ap_signal' /usr/local/src/php-3.0.12/functions/post.c(.text+0x410): undefined reference to `ap_kill_timeout' modules/php3/libmodphp3.a(post.o): In function `php3_TreatHeaders': /usr/local/src/php-3.0.12/functions/post.c(.text+0xaa2): undefined reference to `ap_table_get' /usr/loca/src/php-3.0.12/functions/post.c(.text+0xabd): undefined reference to ` ap_auth_type' /usr/local/src/php-3.0.12/functions/post.c(.text+0xada): undefined reference to `ap_getword' /usr/local/src/php-3.0.12/functions/post.c(.text+0xb27): undefined reference to `ap_uudecode' /usr/local/src/php-3.0.12/functions/post.c(.text+0xb3c): undefined reference to `ap_getword_nulls_nc' + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. This is most likely because your C compiler ** is not ANSI. Apache requires an ANSI C Compiler, such ** as gcc. The above error message from your compiler ** will also provide a clue. Aborting! Can anyone help? from, Matthew Enger menger@kgv.edu.hk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.9908311110060.6944-100000>