|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-10-24 16:31 UTC] jani@php.net
  [2008-11-01 01:00 UTC] php-bugs at lists dot php dot net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
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; }