php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
Votes:1
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
Have you experienced this issue?
Rate the importance of this bug to you:

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

http://bugs.php.net/bug.php?id=30640

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-21 07:50 UTC] derick@php.net
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:

/configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man \
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib \
--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 \
--with-config-file-path=/etc/php/cli-php4
 [2005-03-21 08:23 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

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



 [2005-03-21 10:07 UTC] ptiggerdine at fastmail dot com dot au
And what is 'heimdal' ? Does the c-client library support   
    that..?
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] sniper@php.net
I'm the one who this was "escaleted" to..so 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] sniper@php.net
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] sniper@php.net
Can you answer the question please? 

 [2005-03-29 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-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 21 16:01:24 2020 UTC