Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24429 - cyrus doesn't compile with kerberos
Summary: cyrus doesn't compile with kerberos
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-13 17:52 UTC by Clemens Schwaighofer
Modified: 2007-02-27 19:22 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Schwaighofer 2003-07-13 17:52:58 UTC
I have set kerberos in my use flags, kerberos is installed and when I want to emerge 
cyrus-imapd (or admin) it fails that kerberos wasn't compiled with DES 

Reproducible: Always
Steps to Reproduce:
1. USE="kerberos" 
2. emerge cyrus-imapd 
3. b0rks during config 
Actual Results:  
checking for des_ecb_encrypt in -ldes... no 
configure: error: The Kerberos DES library is required for Kerberos support.  You might 
want --with-auth=unix. 
 
!!! ERROR: net-mail/cyrus-imapd-2.1.13 failed. 
!!! Function econf, Line 304, Exitcode 1 
!!! econf failed 

Expected Results:  
a running cyrus imap daemon :) 

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-ck6 i586 AMD-K6(tm) 3D processor 
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 oss apm avi encode gnome libg++ mikmod mpeg pdflib quicktime spell xmms 
xv gdbm tcltk guile esd motif mozilla 3dnow acl alsa apache2 arts berkdb canna cjk 
crypt cups curl dga directfb fbcon freewnn gd gif gpm gtk gtk2 imap imlib innodb ipv6 
java jpeg kde kerberos libwww maildir mcal mmx mysql ncurses nls odbc oggvorbis 
opengl pam perl png postgres python qt readline ruby samba sasl sdl slang snmp ssl 
svga tcpd tetex tiff truetype usb wmf X xml xml2 zlib" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=k6 -O2 -pipe" 
CXXFLAGS="-march=k6 -O2 -pipe" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache userpriv usersandbox"
Comment 1 rob holland (RETIRED) gentoo-dev 2003-07-14 08:00:34 UTC
Hi, can you let me know if it installed kerberos on your machine, or if you already had it (or neither).

Thanks :)
Comment 2 Clemens Schwaighofer 2003-07-14 17:31:29 UTC
I do have kerberos installed BEFORE I installed (or tried to) cyrus-imapd. thought 
even if I haven't installed it before as I requested it in the USE list it would have 
installed before, and even more, the error messages shows that kerberos IS 
installed, but not correctly compiled for the use with cyrus-imapd 
 
linux-clemens linux # emerge -s krb 
Searching... 
[ Results for search key : krb ] 
[ Applications found : 3 ] 
 
*  app-crypt/kth-krb 
      Latest version available: 1.2.1 
      Latest version installed: [ Not Installed ] 
      Size of downloaded files: 1,832 kB 
      Homepage:    http://www.pdc.kth.se/kth-krb/ 
      Description: Kerberos 4 implementation from KTH 
 
*  app-crypt/mit-krb5 
      Latest version available: 1.2.7 
      Latest version installed: 1.2.7 
      Size of downloaded files: 5,374 kB 
      Homepage:    http://web.mit.edu/kerberos/www/ 
      Description: MIT Kerberos V 
 
*  app-crypt/pam_krb5 
      Latest version available: 1.0 
      Latest version installed: [ Not Installed ] 
      Size of downloaded files: 12 kB 
      Homepage:    http://www.fcusack.com/ 
      Description: Pam module for MIT Kerberos V 
Comment 3 rob holland (RETIRED) gentoo-dev 2003-07-16 03:21:50 UTC
hi woodchip, any ideas why this happened? I'm not good with kerberos..
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-18 14:14:32 UTC
also getting errors when using kerberos and emerge cyrus-sasl
Comment 5 Victor Toni 2003-08-02 17:24:55 UTC
I tried to emerge cyrus-imapd (2.1.14) but compiling quit with the same message as above (...You might want --with-auth=unix. ).
Tried it with mit-krb5 (1.2.7), kth-krb (1.2.1, which does not compile for me) and even with heimdal (had to use --nodeps) without success.

This bug seems to be related to bug 14863.
http://bugs.gentoo.org/show_bug.cgi?id=14863

My system is a fresh 1.4-rc4 (if it matters).
Comment 6 rob holland (RETIRED) gentoo-dev 2003-09-16 05:48:54 UTC
this is beyond my abilities to fix I'm afraid :(
Comment 7 Wolfram Schlich (RETIRED) gentoo-dev 2003-09-17 11:25:01 UTC
I have exactly the same problem...

It complains about a missing des library:

[root@atlas(pts/0):cyrus-imapd]$ epm -ql mit-krb5 | grep des
/usr/share/man/man1/kdestroy.1.gz
/usr/bin/kdestroy
/usr/lib/libdes425.a
/usr/lib/libdes425.so.3.0
/usr/lib/libdes425.so
/usr/lib/libdes425.so.3
/usr/include/kerberosIV/des.h
[root@atlas(pts/0):cyrus-imapd]$

must be /usr/include/kerberosIV/des.h ... anyway, I've tried adding ' --with-krb=/usr/include/kerberosIV' to ${myconf} but that didn't help.

Did the committer of this ebuild (msterret) even test that?!
Comment 8 Max Kalika (RETIRED) gentoo-dev 2003-09-18 19:17:35 UTC
this should be fixed in cvs for versions 2.1.14 and new 2.1.15. Please try it and report back.
Comment 9 Andrew Cooks (RETIRED) gentoo-dev 2003-11-25 01:31:57 UTC
Please reopen if the latest version didn't work.
Comment 10 Sébastien ESTIENNE 2004-07-04 06:33:37 UTC
same problem with: net-mail/cyrus-imap-admin-2.1.14

checking for res_search in -lresolv... (cached) yes
checking for des_ecb_encrypt in -ldes... no
configure: error: The Kerberos DES library is required for Kerberos support.  You might want --with-auth=unix.

!!! ERROR: net-mail/cyrus-imap-admin-2.1.14 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
Comment 11 Martin Mokrejš 2007-02-27 19:22:27 UTC
It might be the -ldes library is the one from kth-krb. Beware it is not compatible with the same library function from libcrypty bundled in openssl. In general, be sure you have not installed kth-krb before 1.3 and have a recent openssl library.

I did not have a look into cyrus-imapd, but if it requires you only some krb4 implementation you have bad luck. It is not supported anymore by Gentoo. You have to install eithe rmit-krb or heimdal as krb5 implementations. But, I don't know whether they are supported by cyrus. ;) Make sure you have no mit-krb installed together with heimdal. I suspect their filenames still clash with each other.