php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12287 Apache config fails with php module activated
Submitted: 2001-07-20 13:03 UTC Modified: 2001-10-08 07:39 UTC
From: grant at amadensor dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: Linux
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: grant at amadensor dot com
New email:
PHP Version: OS:

 

 [2001-07-20 13:03 UTC] grant at amadensor dot com
Apache's ./configure works fine, until I tell it to activate the module.  Then it fails with a compiler option sanity check.  The error report is blank.  Weird.  Apache 1.3.20, PHP4.0.6.  Both downloaded from the main sites yesterday.

./configure --with-imap --with-pgsql --with-apache=../apache_1.3.20 --enable-track-vars

./configure --activate-module=src/modules/php4/libphp4.a

Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc  -DLINUX=22 -I/usr/src/php-4.0.6 -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6/TSRM -I/usr/src/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`     -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/local/pgsql/lib  -rdynamic -L/usr/local/pgsql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam -lc-client  -ldl -lpq -lpam -lcrypt -lresolv -lm -ldl -lnsl  -lresolv   -lm -lcrypt
/usr/lib/libc-client.so: undefined reference to `mm_expunged'
/usr/lib/libc-client.so: undefined reference to `mm_diskerror'
/usr/lib/libc-client.so: undefined reference to `mm_lsub'
/usr/lib/libc-client.so: undefined reference to `mm_flags'
/usr/lib/libc-client.so: undefined reference to `mm_fatal'
/usr/lib/libc-client.so: undefined reference to `mm_nocritical'
/usr/lib/libc-client.so: undefined reference to `mm_notify'
/usr/lib/libc-client.so: undefined reference to `mm_searched'
/usr/lib/libc-client.so: undefined reference to `mm_status'
/usr/lib/libc-client.so: undefined reference to `mm_login'
/usr/lib/libc-client.so: undefined reference to `mm_list'
/usr/lib/libc-client.so: undefined reference to `mm_critical'
/usr/lib/libc-client.so: undefined reference to `mm_exists'
/usr/lib/libc-client.so: undefined reference to `mm_log'
/usr/lib/libc-client.so: undefined reference to `mm_dlog'
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 php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
============= End of Error Report =============

 Aborting!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-23 11:32 UTC] grant at amadensor dot com
When I remove --with-imap from the PHP config, Apache will compile.
 [2001-07-27 12:36 UTC] sniper@php.net
Get the c-client sources and compile it yourself. 
Then copy all the .h files to e.g. /www/c-client/include
and c-client.a to /www/c-client/libc-client.a

After that, do this in php source dir:

# rm config.cache
# ./configure --with-imap=/www/c-client --with-pgsql --with-apache=../apache_1.3.20
.
.

And the rest of the process is the same.
Now everything should work just fine.

--Jani

(is your distro Debian by any chance? )


 [2001-10-08 07:39 UTC] sniper@php.net
Little correction:

 > to /www/c-client/libc-client.a

this should be:
 > to /www/c-client/lib/libc-client.a

Thanks for Laurin Herlt for noticing this bad bad typo.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC