
Bug #32390 PHP can't compile with imap that enabled Kerberos by heimdal
Submitted: 2005-03-21 06:09 UTC Modified: 2005-03-29 01:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ptiggerdine at fastmail dot com dot au Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 4.3.10 OS: Gentoo linux
Private report: No CVE-ID: None
Bug Type:
From: ptiggerdine at fastmail dot com dot au
New email:
PHP Version: OS:


 [2005-03-21 06:09 UTC] ptiggerdine at fastmail dot com dot au
This is exactly the same problem as:

And I challange anyone who says that this is bogus.  If you have a look in the ./configure script, it only looks for MIT libraries NEVER looks for heimdal libraries at all. Heimdal has different library names. 

Reproduce code:
for gentoo. export USE="kerberos imap ssl php" emerge heimdal && emerge php

Expected result:
to compile

Actual result:
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

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
in/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 "configure"
#include "confdefs.h"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-21 07:50 UTC]
What is the configure line that you used? (No, gentoo emerge lines are not useful)
 [2005-03-21 08:08 UTC] ptiggerdine at fastmail dot com dot au
I don't see how this is going to help considering it's a library check issue, but here it is:

--libdir=/usr/lib --disable-cgi --with-ttf --with-freetype-dir=/usr/lib --enable-gd-native-ttf --enable-cli \
--with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr --without-interbase --without-ming \
--without-swf --without-sybase --without-gdbm --without-fdftk --without-java --without-mcal --with-unixODBC=/usr \
--without-pgsql --with-snmp=/usr --enable-ucd-snmp-hack --without-gmp --without-mssql --with-pdflib=/usr --with-gd \
--disable-gd-native-ttf --with-png=/usr --with-png-dir=/usr --with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif \
--with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock  \
--without-t1lib --with-gettext --without-qtdom --with-pspell=/usr --with-openssl=/usr --with-imap=/usr \
--with-ldap=/usr --with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-kerberos=/usr --with-pam \
--disable-memory-limit --enable-ipv6 --without-yaz --disable-debug --without-curl --enable-dbx --with-imap-ssl \
--with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt --with-xslt-sablot --with-xmlrpc --enable-wddx \
--with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr --with-crack=/usr --with-cdb --enable-pcntl \
--enable-bcmath --enable-calendar --enable-dbase --enable-filepro --enable-ftp \
--with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg \
--with-iconv --enable-shmop --enable-dio --enable-yp --with-readline=/usr --with-ncurses=/usr \
--enable-inline-optimization --enable-track-vars --enable-trans-sid --enable-versioning \
 [2005-03-21 08:23 UTC]
Please try using this CVS snapshot:
For Windows:

And what is 'heimdal' ? Does the c-client library support that..?

 [2005-03-21 10:07 UTC] ptiggerdine at fastmail dot com dot au
Honestly, why did you post if you didn't know what the bug is about.

while the CVS snapshot "may" work ( i doubt it)my production environment requires that this be pushed into an official release. If you are unable to do this, could you escalate this bug so that I can have contact with  someone who can make that call.

I have a ./configure diff that patches the search of the libraries to the right name, but I doubt that it's going to be that easy for kerberos is play ball. This is also no ideal either cos it will break on MIT libraries
 [2005-03-21 10:22 UTC]
I'm the one who this was "escaleted" thanks anyway but   we don't support any other kerberos library implementation than those that are supported by the c-client library.

 [2005-03-21 10:35 UTC] ptiggerdine at fastmail dot com dot au
Can i ask why "you only support MIT only"?  Supporting heimdal would be beneficial to php there are more project moving form MIT to heimdal.
 [2005-03-21 10:42 UTC]
I'll ask again: Does the uw-imap c-client library support heimdal implementation of kerberos?

 [2005-03-21 10:45 UTC] ptiggerdine at fastmail dot com dot au
Also, if your not going to support heimdal then my suggestion is allow php to identify that the heimdal are there and not to try and compile kerberos in, rather than stop the ./configure script
 [2005-03-21 11:02 UTC]
Can you answer the question please? 

 [2005-03-29 01:00 UTC] php-bugs at lists dot php dot net
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: Mon Aug 02 00:01:24 2021 UTC