im trying to install php-4.3.7 with imap, i configure with the following
line:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --enable-tra
ck-vars --with-ldap --with-imap=/usr/local/imap-2004 --with-xml --with-gette
xt --enable-ftp
output:
checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... 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.
xxx:~/php-4.3.7#
last lines in the config.log:
configure:41210: checking whether IMAP works
configure:41243: gcc -o
nftest -g -O2 -Wl,-rpath,/usr/local/imap-2004/lib -L/usr/local/imap-2004/l
ib conftest.c -lc-client
-lcrypt -lpam -lresolv -lm -ldl -lnsl 1>&5
/usr/local/imap-2004/lib/libc-client.a(osdep.o): In function
`ssl_onceonlyinit':
/root/imap-2004/c-client/osdep.c:267: the use of `tmpnam' is dangerous,
better use `mkstemp'
/root/imap-2004/c-client/osdep.c:280: undefined reference to `RAND_seed'
/root/imap-2004/c-client/osdep.c:285: undefined reference to
`SSL_library_init'
/usr/local/imap-2004/lib/libc-client.a(osdep.o): In function
`ssl_start_work':
......
/root/imap-2004/c-client/osdep.c:666: undefined reference to `SSL_shutdown'
/root/imap-2004/c-client/osdep.c:667: undefined reference to `SSL_free'
/root/imap-2004/c-client/osdep.c:671: undefined reference to `SSL_CTX_free'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41218 "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;
}
-----------
when i check with netstat to see if imap is running i get:
xxx:~# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:www *:* LISTEN
tcp 0 0 *:1024 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:587 *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:postgres *:* LISTEN
tcp 0 0 *:printer *:* LISTEN
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:auth *:* LISTEN
tcp 0 0 *:time *:* LISTEN
tcp 0 0 *:daytime *:* LISTEN
tcp 0 0 *:discard *:* LISTEN
tcp 0 0 *:imap2 *:* LISTEN
<-----
i see that it is imap2, i guess thats the same as imap ?
xxx:~/php-4.3.7# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See
COPYING for distribution information.
so what am i doing wrong ?
Thanks for helping :)
-ole