Hi!
I've a configuring problem with PHP4. Here is my configure command:
./configure --prefix=/usr/local/apache_1.3.29/php --with-apache=../apache_1.3.29/ --with-config-file-path=/usr/local/apache_1.3.29/conf --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --with-zlib-dir=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr/local --enable-exim --enable-gd-native-ttf --enable-ftp --with-gd=/usr/local --with-imap=/usr/local/imap-2002e/lib
After this, I've got the following message:
[...]
checking for GD support... yes
checking for the location of libjpeg... /usr/local
checking for the location of libpng... /usr/local
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local
[...]
checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... no
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.
The config.log file contains:
configure:40552: checking whether IMAP works
configure:40585: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lc-client -lcrypt -lpam -lgd -lfreetype -lpng -lz -ljpeg -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl 1>&5
configure: failed program was:
#line 40560 "configure"
#include "confdefs.h"
void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char mail_newbody();
int main() {
mail_newbody();
return 0;
}
The problem is, that if I remove the switch --with-gd the configure script works fine and the make process returns a working libphp. I really don't know, why the --with-gd switch makes an error in the IMAP configuration. Also, if I use the bundled GD-Library I'll get the same error. The paths are correct, I compiled all libraries myself and don't use a package (using Debian Woody). Is there any solution.
Thanks
Thoralf