Trace of compile when error comes: gcc -DHAVE_CONFIG_H -DSASLAUTHD_CONF_FILE_DEFAULT=\"/etc/saslauthd.conf\" -I. -I. -I.. -I./include -I../include -Wall -W -Wall -O3 -march=pentium3 -pipe -fstack-protector -c saslauthd-main.c gcc -DHAVE_CONFIG_H -DSASLAUTHD_CONF_FILE_DEFAULT=\"/etc/saslauthd.conf\" -I. -I. -I.. -I./include -I../include -Wall -W -Wall -O3 -march=pentium3 -pipe -fstack-protector -c md5.c In file included from md5.c:363: md5.c: In function `_saslauthd_hmac_md5_init': md5.c:121: warning: passing arg 0 of `_saslauthd_MD5Update' discards qualifiers from pointer target type In file included from md5.c:384: md5.c:324: warning: passing arg 0 of `MD5_memcpy' discards qualifiers from pointer target type In file included from md5.c:385: md5.c:324: warning: passing arg 0 of `MD5_memcpy' discards qualifiers from pointer target type In file included from md5.c:478: md5.c: In function `_saslauthd_hmac_md5': md5.c:121: warning: passing arg 0 of `_saslauthd_MD5Update' discards qualifiers from pointer target type In file included from md5.c:499: md5.c:324: warning: passing arg 0 of `MD5_memcpy' discards qualifiers from pointer target type In file included from md5.c:500: md5.c:324: warning: passing arg 0 of `MD5_memcpy' discards qualifiers from pointer target type In file included from md5.c:514: md5.c:121: warning: passing arg 0 of `_saslauthd_MD5Update' discards qualifiers from pointer target type saslauthd-main.c: In function `detach_tty': saslauthd-main.c:595: warning: unused variable `pid_buf' saslauthd-main.c: In function `server_exit': saslauthd-main.c:857: warning: unused variable `lock_st' gcc -Wall -W -Wall -O3 -march=pentium3 -pipe -fstack-protector -o saslauthd mechanisms.o auth_dce.o auth_getpwent.o auth_krb5.o auth_krb4.o auth_pam.o auth_rimap.o auth_shadow.o auth_sia.o auth_sasldb.o lak.o auth_ldap.o cache.o utils.o ipc_unix.o ipc_doors.o saslauthd-main.o md5.o -lcrypt -lresolv -lpam -lldap -llber -lcrypto -lresolv auth_krb5.o(.text+0x16c): In function `auth_krb5': : undefined reference to `krb5_init_context' auth_krb5.o(.text+0x1e8): In function `auth_krb5': : undefined reference to `krb5_parse_name' auth_krb5.o(.text+0x1fa): In function `auth_krb5': : undefined reference to `krb5_free_context' auth_krb5.o(.text+0x24c): In function `auth_krb5': : undefined reference to `krb5_cc_resolve' auth_krb5.o(.text+0x298): In function `auth_krb5': : undefined reference to `krb5_get_init_creds_opt_init' auth_krb5.o(.text+0x2a8): In function `auth_krb5': : undefined reference to `krb5_get_init_creds_opt_set_tkt_life' auth_krb5.o(.text+0x2f2): In function `auth_krb5': : undefined reference to `krb5_get_init_creds_password' auth_krb5.o(.text+0x332): In function `auth_krb5': : undefined reference to `krb5_free_principal' auth_krb5.o(.text+0x340): In function `auth_krb5': : undefined reference to `krb5_free_context' auth_krb5.o(.text+0x3ed): In function `auth_krb5': : undefined reference to `krb5_free_cred_contents' auth_krb5.o(.text+0x405): In function `auth_krb5': : undefined reference to `krb5_free_principal' auth_krb5.o(.text+0x437): In function `auth_krb5': : undefined reference to `krb5_free_context' auth_krb5.o(.text+0x47b): In function `auth_krb5': : undefined reference to `krb5_free_principal' auth_krb5.o(.text+0x4ad): In function `auth_krb5': : undefined reference to `krb5_free_context' auth_krb5.o(.text+0x4d2): In function `auth_krb5': : undefined reference to `krb5_free_principal' auth_krb5.o(.text+0x4e0): In function `auth_krb5': : undefined reference to `krb5_free_context' auth_krb5.o(.text+0x505): In function `auth_krb5': : undefined reference to `krb5_free_principal' auth_krb5.o(.text+0x513): In function `auth_krb5': : undefined reference to `krb5_free_context' auth_krb5.o(.text+0x5a9): In function `k5support_verify_tgt': : undefined reference to `krb5_sname_to_principal' auth_krb5.o(.text+0x600): In function `k5support_verify_tgt': : undefined reference to `krb5_kt_read_service_key' auth_krb5.o(.text+0x66c): In function `k5support_verify_tgt': : undefined reference to `krb5_mk_req' auth_krb5.o(.text+0x692): In function `k5support_verify_tgt': : undefined reference to `krb5_free_data_contents' auth_krb5.o(.text+0x6a4): In function `k5support_verify_tgt': : undefined reference to `krb5_free_principal' auth_krb5.o(.text+0x6e7): In function `k5support_verify_tgt': : undefined reference to `krb5_rd_req' auth_krb5.o(.text+0x713): In function `k5support_verify_tgt': : undefined reference to `krb5_auth_con_free' auth_krb5.o(.text+0x727): In function `k5support_verify_tgt': : undefined reference to `krb5_auth_con_free' auth_krb5.o(.text+0x740): In function `k5support_verify_tgt': : undefined reference to `krb5_free_keyblock' collect2: ld returned 1 exit status make[2]: *** [saslauthd] Error 1 make[2]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.14/work/cyrus-sasl-2.1.14/saslauthd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/cyrus-sasl-2.1.14/work/cyrus-sasl-2.1.14' make: *** [all-recursive-am] Error 2 !!! ERROR: dev-libs/cyrus-sasl-2.1.14 failed. !!! Function src_compile, Line 105, Exitcode 2 !!! compile problem This is the output of my emerge -puv world: [ebuild U ] dev-libs/cyrus-sasl-2.1.14 [2.1.13] +gdbm +berkdb +ldap +mysql -kerberos -static +ssl +java +pam emerge info output: Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no 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="/home/distfiles" PKGDIR="/home/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts aalib svga ggi tcltk java mysql postgres X sdl gpm tcpd pam ssl perl python imlib oggvorbis gtk qt kde motif opengl ldap snmp cdr acpi acpi4linux apache2 artswrappersuid dnd dvb dvd gb gd gd-external imap innodb ipv6 jikes lcms leim maildir md5sum moznocompose moznoirc mule nocardbus pda pic ppds samba sasl slp sse tiff usb vim-with-x wmf xface xml -3dnow -bonobo -guile -esd -gnome" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -fstack-protector" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" FEATURES="sandbox ccache fixpackages"
*** Bug 25869 has been marked as a duplicate of this bug. ***
Just a note from the DUP bug I created: You can of course workaround the problem by including krb support and installing krb5, but what was really odd for me was, after installing mit-krb5 and re-emerging (successfully) cyrus-sasl, I then removed mit-krb5, set -kerberos in my USE flags, re-emerged cyrus-sasl again and it re-emerged just fine, despite my having removed mit-krb5! 1. I set "-kerberos" in my USE flags. 2. I tried to emerge cyrus-sasl, but it failed as shown above. 3. I set "kerberos" in my USE flags and emerged mit-krb5. 4. I emerged cyrus-sasl successully. 5. I set "-kerberos" in my USE flags. 6. I removed (emerg -C) mit-krb5 from my system. 7. I re-emerged cyrus-sasl successfully! md.
I have done quite a bit of testing and I concur that kerberos support does not compile properly. I am removing the kerberos hooks in the ebuild until a solution can be found. I will post here with progress I make.
cyrus-sasl-2.1.15 builds for me fine with any combination of the kerberos USE flag: 1) without kerberos installed, 2) w/ kerberos installed + USE=kerberos 3) w/ kerberos installed + USE=-kerberos 4) just for good measure, unmerged krb5 and emerged cyrus-sasl again and everything is still fine. Can you try 2.1.15 version to see if it fixes the krb problems?
Things look good in 2.1.15