From:             james at bytehosting dot com
Operating system: Mandriva Linux 2008.1
PHP version:      5.2.6
PHP Bug Type:     Compile Failure
Bug description:  -lpam missing from imap configure check

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 bug report at http://bugs.php.net/?id=46141&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46141&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46141&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46141&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46141&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46141&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46141&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46141&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46141&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46141&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46141&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46141&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46141&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46141&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46141&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46141&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46141&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46141&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46141&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46141&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46141&r=mysqlcfg

Reply via email to