ID: 12287 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Compile Failure Operating System: Linux PHP Version: 4.0.6 New Comment: 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? ) Previous Comments: ------------------------------------------------------------------------ [2001-07-23 11:32:21] [EMAIL PROTECTED] When I remove --with-imap from the PHP config, Apache will compile. ------------------------------------------------------------------------ [2001-07-20 13:03:11] [EMAIL PROTECTED] 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! ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12287&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]