php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30640 PHP can't compile with imap that enabled Kerberos by heimdal
Submitted: 2004-11-01 04:07 UTC Modified: 2004-11-01 07:55 UTC
From: dshen19 at yahoo dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.9 OS: Linux -- Gentoo
Private report: No CVE-ID: None
 [2004-11-01 04:07 UTC] dshen19 at yahoo dot com
Description:
------------
php's configure can't finish it configuring job and stop prematruely if it compile with imap library provided by UW-imap c-client-2004a or c-client-2002a and Kerberos lib from heimdal. 

Reproduce code:
---------------
./configure --with-imap


Actual result:
--------------
configure can't finish it configuring job and stop as:

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.

config.log:

configure:41323: gcc -o conftest -g -O2   conftest.c -lc-client   -lcrypt -lpam -lresolv -lm -ldl -lnsl  1>&5
/tmp/ccoAvyPa.o(.text+0xfa): In function `main':
/var/tmp/php-4.3.9/configure:41317: undefined reference to `auth_gssapi_valid'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 "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 auth_gssapi_valid();
    int main() {
      auth_gssapi_valid();
      return 0;
    }



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-01 05:06 UTC] dshen19 at yahoo dot com
I remade the c-client-2004a and put it into /var/tmp/imap 

Reproduce code:
---------------
./configure --with-imap=/var/tmp/imap --with-kerberos=/usr --with-imap-ssl=/usr

Actual result:
--------------
checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.


config.log:
configure:41193: checking whether SSL libraries are needed for c-client
configure:41323: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib -L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt -lpam -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 "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 auth_gssapi_valid();
    int main() {
      auth_gssapi_valid();
      return 0;
    }

configure:41349: checking whether IMAP works
configure:41382: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib -L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt -lpam -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41357 "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;
    }
 [2004-11-01 07:55 UTC] derick@php.net
You're just missing libraries on your system, install the correct ones and it will work fine.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 23 20:01:23 2020 UTC