php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46141 -lpam missing from imap configure check
Submitted: 2008-09-21 03:46 UTC Modified: 2008-11-01 01:00 UTC
From: james at bytehosting dot com Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 5.2.6 OS: Mandriva Linux 2008.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-09-21 03:46 UTC] 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;
    }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-24 16:31 UTC] jani@php.net
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..

 [2008-11-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jan 24 10:01:24 2021 UTC