Can't compile PHP 5.2.3 against IMAP
Hi everyone -
I have PHP 5.0.5 running on a CentOS 4 AMD64 server right now, and I need to upgrade to PHP 5.2.3. However, since a webmail client runs on this server, the new PHP module needs to be compiled with IMAP support. Apparently the version that works with PHP 5.2.3 is imap-2006f.
So I downloaded and compiled imap-2006f and put the relevant files in /usr/include/imap-2006f. But when I try to configure PHP:
checking whether build with IMAP works... no.
configure: error: build test failed. Please check the config.log for details.
I don't know where to look for the problem now. /usr/src/build doesn't even exist! Any input would be most appreciated.
configure:48361: checking whether build with IMAP works
configure:48399: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/loc
al/lib -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/include/imap-2006f/lib -L/usr/
include/imap-2006f/lib conftest.c -lc-client -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lcurl -lz -lss
l -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lxml2 -lz -lm 1>&5
/usr/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/src/build/90147-i386/BUILD/imap-2001a/c-client/osdep.c:286: the use of `tmpnam' is dangerous, bette
r use `mkstemp'
/usr/lib/libc-client.a(osdep.o): In function `auth_gssapi_valid':
/usr/src/build/90147-i386/BUILD/imap-2001a/c-client/auth_gss.c:64: undefined reference to `gss_nt_servic
/usr/src/build/90147-i386/BUILD/imap-2001a/c-client/auth_gss.c:64: undefined reference to `gss_import_na
/usr/src/build/90147-i386/BUILD/imap-2001a/c-client/auth_gss.c:67: undefined reference to `krb5_init_con
Here's config.nice (which comes mostly from the old PHP 5.0.5 directory: