php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1984 Failed to compile Apache+mod_ssl+php --with-imap
Submitted: 1999-08-06 16:03 UTC Modified: 2000-02-29 08:25 UTC
From: kristofe at allthingi dot is Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.12 OS: RedHat6 2.2.5-15
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kristofe at allthingi dot is
New email:
PHP Version: OS:

 

 [1999-08-06 16:03 UTC] kristofe at allthingi dot is
I am having trouble with configuration of Apache if I use --with-imap in configuring php. I have imap-4.6-3 and imap-devel-4.6-3. Following are
the commands I make. When I come to configuring Apache for the second time I get:

[root@actinium apache_1.3.6]# SSL_BASE=../openssl-0.9.3a \
> EAPI_MM=../mm-1.0.9 \
> ./configure \
> --enable-module=ssl \
> --prefix=/usr/local/apache \
> --enable-shared=ssl \
> --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
 + enabling mod_so for DSO support
modules/php3/libmodphp3.a(main.o): In function `php3_write':
main.o(.text+0x7a): undefined reference to `ap_rwrite'
modules/php3/libmodphp3.a(main.o): In function `php3_puts':
main.o(.text+0xa2): undefined reference to `ap_rputs'
modules/php3/libmodphp3.a(main.o): In function `php3_putc':
main.o(.text+0xdb): undefined reference to `ap_rputc'
modules/php3/libmodphp3.a(main.o): In function `php3_log_err':
main.o(.text+0x176): undefined reference to `ap_log_error'
modules/php3/libmodphp3.a(main.o): In function `php3_printf':
main.o(.text+0x1c0): undefined reference to `ap_vbprintf'
modules/php3/libmodphp3.a(main.o): In function `php3_set_timeout':
main.o(.text+0x512): undefined reference to `ap_signal'
modules/php3/libmodphp3.a(main.o): In function `php3_request_startup':
main.o(.text+0x5e0): undefined reference to `ap_block_alarms'
main.o(.text+0x5f8): undefined reference to `ap_register_cleanup'
main.o(.text+0x5fd): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_add_or_update':php3_hash.o(.text+0x220): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x25e): undefined reference to `ap_unblock_alarms'
php3_hash.o(.text+0x3c3): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x412): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_index_update_or_
next_insert':
php3_hash.o(.text+0x47c): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x4a0): undefined reference to `ap_unblock_alarms'
php3_hash.o(.text+0x580): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x5ba): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_pointer_update':
php3_hash.o(.text+0x6cc): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x71c): undefined reference to `ap_unblock_alarms'
php3_hash.o(.text+0x7e9): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x83b): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_pointer_index_up
date_or_next_insert':
php3_hash.o(.text+0x8a9): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x8f4): undefined reference to `ap_unblock_alarms'
php3_hash.o(.text+0x95a): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x994): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `if_full_do_resize':
php3_hash.o(.text+0xb69): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0xb89): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_del_key_or_index
':
php3_hash.o(.text+0xceb): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0xdf0): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(php3_hash.o): In function `_php3_hash_sort':
php3_hash.o(.text+0x1513): undefined reference to `ap_block_alarms'
php3_hash.o(.text+0x1595): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `_emalloc':
alloc.o(.text+0x19): undefined reference to `ap_block_alarms'
alloc.o(.text+0x104): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `_efree':
alloc.o(.text+0x171): undefined reference to `ap_block_alarms'
alloc.o(.text+0x1bc): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `_ecalloc':
alloc.o(.text+0x1e2): undefined reference to `ap_block_alarms'
alloc.o(.text+0x200): undefined reference to `ap_unblock_alarms'
alloc.o(.text+0x209): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `_erealloc':
alloc.o(.text+0x246): undefined reference to `ap_block_alarms'
alloc.o(.text+0x340): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `_estrdup':
alloc.o(.text+0x374): undefined reference to `ap_block_alarms'
alloc.o(.text+0x388): undefined reference to `ap_unblock_alarms'
alloc.o(.text+0x3a1): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `_estrndup':
alloc.o(.text+0x3c6): undefined reference to `ap_block_alarms'
alloc.o(.text+0x3dd): undefined reference to `ap_unblock_alarms'
alloc.o(.text+0x3f4): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(alloc.o): In function `shutdown_memory_manager':
alloc.o(.text+0x4aa): undefined reference to `ap_block_alarms'
alloc.o(.text+0x534): undefined reference to `ap_unblock_alarms'
modules/php3/libmodphp3.a(request_info.o): In function `php3_init_request_info':
request_info.o(.text+0x79): undefined reference to `ap_table_get'
request_info.o(.text+0x9e): undefined reference to `ap_table_get'
request_info.o(.text+0xe0): undefined reference to `ap_table_get'
modules/php3/libmodphp3.a(apache.o): In function `php3_apache_note':
apache.o(.text+0x61): undefined reference to `ap_table_get'
apache.o(.text+0x92): undefined reference to `ap_table_set'
modules/php3/libmodphp3.a(apache.o): In function `php3_info_apache':
apache.o(.text+0x172): undefined reference to `ap_group_id'
apache.o(.text+0x17a): undefined reference to `ap_user_id'
apache.o(.text+0x182): undefined reference to `ap_user_name'
apache.o(.text+0x1b1): undefined reference to `ap_max_requests_per_child'
apache.o(.text+0x1d7): undefined reference to `ap_server_root'
apache.o(.text+0x1f8): undefined reference to `top_module'
modules/php3/libmodphp3.a(apache.o): In function `php3_virtual':
apache.o(.text+0x2b7): undefined reference to `ap_sub_req_lookup_uri'
apache.o(.text+0x34e): undefined reference to `ap_run_sub_req'
apache.o(.text+0x37b): undefined reference to `ap_destroy_sub_req'
apache.o(.text+0x39b): undefined reference to `ap_destroy_sub_req'
modules/php3/libmodphp3.a(apache.o): In function `php3_apache_lookup_uri':
apache.o(.text+0x4d7): undefined reference to `ap_sub_req_lookup_uri'
apache.o(.text+0x700): undefined reference to `ap_destroy_sub_req'
modules/php3/libmodphp3.a(basic_functions.o): In function `php3_getenv':
basic_functions.o(.text+0x1d6): undefined reference to `ap_table_get'
modules/php3/libmodphp3.a(basic_functions.o): In function `php3_flush':
basic_functions.o(.text+0x1775): undefined reference to `ap_rflush'
modules/php3/libmodphp3.a(exec.o): In function `_Exec':
exec.o(.text+0x302): undefined reference to `ap_rflush'
modules/php3/libmodphp3.a(head.o): In function `_php3_Header':
head.o(.text+0x183): undefined reference to `ap_pstrdup'
head.o(.text+0x2c4): undefined reference to `ap_table_set'
head.o(.text+0x367): undefined reference to `ap_pstrdup'
modules/php3/libmodphp3.a(head.o): In function `php3_header':
head.o(.text+0x6e6): undefined reference to `ap_table_add'
head.o(.text+0x78e): undefined reference to `ap_send_http_header'
modules/php3/libmodphp3.a(post.o): In function `php3_getput':
post.o(.text+0x109): undefined reference to `ap_should_client_block'
post.o(.text+0x12a): undefined reference to `ap_hard_timeout'
post.o(.text+0x133): undefined reference to `ap_signal'
post.o(.text+0x170): undefined reference to `ap_reset_timeout'
post.o(.text+0x1b8): undefined reference to `ap_get_client_block'
post.o(.text+0x1cf): undefined reference to `ap_signal'
post.o(.text+0x1dc): undefined reference to `ap_kill_timeout'
modules/php3/libmodphp3.a(post.o): In function `php3_getpost':
post.o(.text+0x3d9): undefined reference to `ap_should_client_block'
post.o(.text+0x3fa): undefined reference to `ap_hard_timeout'
post.o(.text+0x403): undefined reference to `ap_signal'
post.o(.text+0x43c): undefined reference to `ap_reset_timeout'
post.o(.text+0x470): undefined reference to `ap_get_client_block'
post.o(.text+0x1cf): undefined reference to `ap_signal'
post.o(.text+0x1dc): undefined reference to `ap_kill_timeout'
modules/php3/libmodphp3.a(post.o): In function `php3_getpost':
post.o(.text+0x3d9): undefined reference to `ap_should_client_block'
post.o(.text+0x3fa): undefined reference to `ap_hard_timeout'
post.o(.text+0x403): undefined reference to `ap_signal'
post.o(.text+0x43c): undefined reference to `ap_reset_timeout'
post.o(.text+0x470): undefined reference to `ap_get_client_block'
post.o(.text+0x487): undefined reference to `ap_signal'
post.o(.text+0x494): undefined reference to `ap_kill_timeout' 
modules/php3/libmodphp3.a(post.o): In function `php3_TreatHeaders':
post.o(.text+0xc17): undefined reference to `ap_table_get'
post.o(.text+0xc34): undefined reference to `ap_auth_type'
post.o(.text+0xc5d): undefined reference to `ap_getword' 
post.o(.text+0xc9e): undefined reference to `ap_uudecode'
post.o(.text+0xcb6): undefined reference to `ap_getword_nulls_nc' 
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
    o ssl_module uses ConfigStart/End
      + SSL interface: mod_ssl/2.3.11
      + SSL interface build type: DSO
      + SSL interface compatibility: enabled
      + SSL interface experimental code: disabled
      + SSL interface vendor extensions: disabled
      + SSL interface plugin: Vendor DBM (libndbm)
      + SSL library path: /tmp/nytt/openssl-0.9.3a
      + SSL library version: OpenSSL 0.9.3a 29 May 1999
      + SSL library type: source tree only (stand-alone)
      + SSL library plugin mode: none
    o php3_module uses ConfigStart/End
 + enabling Extended API (EAPI)
   using MM library: ../../mm-1.0.9 (source-tree only)
 + using -ldl for vendor DSO support
 + 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!


If I ship --with-imap in php configuration php works fine with Apache but I need the imap support for imp. Following are the command I have given to get these error...

cd openssl-0.9.3a
./config
make 

cd ../mod_ssl-2.3.11-1.3.6
./configure \
--with-apache=../apache_1.3.6 \
--with-crt=/path/to/your/server.crt \
--with-key=/path/to/your/server.key
 
cd ../apache_1.3.6
./configure \
--prefix=/path/to/apache
 
cd ../php-3.0.12
CFLAGS='-O2 -I../openssl-0.9.3a' \
./configure --with-apache=../apache_1.3.6 \
--with-config-file-path=/some/path
--with-pgsql=/usr --enable-debug=no \
--enable-track-vars=yes --enable-bcmath=yes \
--enable-memory-limit=yes --with-imap=/usr
 
make
make install
  
cd ../apache_1.3.6
SSL_BASE=../openssl-0.9.3a \
EAPI_MM=../mm-1.0.9 \
./configure \
--enable-module=ssl \
--prefix=/path/to/apache \
--enable-shared=ssl \
--activate-module=src/modules/php3/libphp3.a \
--enable-module=php3
 
make
make certificate \ 
KEY=/path/to/your/server.key CERT=/path/to/your/server.crt
make install  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-06 16:10 UTC] kristofe at allthingi dot is
erm.... the mail is  kristofe@althingi.is :)
 [2000-02-29 08:25 UTC] sas at cvs dot php dot net
Upgrading Apache and PHP will solve this.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 19:00:02 2026 UTC