ID: 46141
Updated by: [EMAIL PROTECTED]
Reported By: james at bytehosting dot com
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: Mandriva Linux 2008.1
PHP Version: 5.2.6
New Comment:
Looks more like miscompiled c-client. Please install it from some RPM
and don't build it yourself. PHP configure DOES add pam if it's found..
Previous Comments:
------------------------------------------------------------------------
[2008-09-21 03:46:54] james at bytehosting dot com
Description:
------------
PHP ./configure fails when adding --with-imap due to pam not being
linked
This is the exact same problem as Bug#:26923 -- however, it seems to
again be recurring therefor, re-opening as new bug against 5.2.6!
**IMAP support is being compiled as a shared-module** Therefor -lpam
needs to be called.
Reproduce code:
---------------
./configure --with-imap=shared,/usr
Expected result:
----------------
Configure should succeed and not exit
Actual result:
--------------
checking for CRYPTO_free in -lcrypto... (cached) yes
checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for
details.
configure:49236: checking whether build with IMAP works
configure:49274: gcc -o conftest -I/usr/include -L/usr/lib64
conftest.c -lssl -lcrypto -lc-client -lcrypt -lssl -lcrypto -lcurl
-lz
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lxml2 -lz -lm 1>&5
/usr/lib64/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/home/mandrake/rpm/BUILD/imap-2006k/c-client/osdep.c:335: warning: the
use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib64/libc-client.a(osdep.o): In function `checkpw_cleanup':
osdep.c:(.text+0xd9d9): undefined reference to `pam_setcred'
osdep.c:(.text+0xd9e7): undefined reference to `pam_end'
/usr/lib64/libc-client.a(osdep.o): In function `checkpw':
osdep.c:(.text+0xda62): undefined reference to `pam_start'
osdep.c:(.text+0xda7c): undefined reference to `pam_set_item'
osdep.c:(.text+0xda8e): undefined reference to `pam_authenticate'
osdep.c:(.text+0xdaa0): undefined reference to `pam_acct_mgmt'
osdep.c:(.text+0xdab2): undefined reference to `pam_setcred'
collect2: ld returned 1 exit status
configure: failed program was:
#line 49247 "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;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46141&edit=1