When I try to compile openssh-4.1_p1 with kerberos USE flag, it fails to compile with: (cd openbsd-compat && make) make[1]: Entering directory `/var/tmp/portage/openssh-4.1_p1/work/openssh-4.1p1/openbsd-compat' i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. -I/usr/include -DHAVE_CONFIG_H -c bsd-arc4random.c In file included from bsd-arc4random.c:17: ../includes.h:181:19: kafs.h: No such file or directory make[1]: *** [bsd-arc4random.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/openssh-4.1_p1/work/openssh-4.1p1/openbsd-compat' make: *** [openbsd-compat/libopenbsd-compat.a] Error 2 Which looks like it tries to include header for AFS, which I dont use. Without kerberos it compiles fine. Note that I use app-crypt/mit-krb5-1.4-r1 flags used by openssh: -X509 -chroot -debug +ipv6 -kerberos -ldap -libedit -nocxx +pam (-selinux) -sftplogging -skey -smartcard -static +tcpd Reproducible: Always Steps to Reproduce: 1. USE="-X509 -chroot -debug ipv6 kerberos -ldap -libedit -nocxx pam -sftplogging -skey -smartcard -static tcpd" emerge -av openssh Actual Results: emerging fails while trying to include kafs.h Expected Results: working openssh with GSSAPI support cit2 ~ # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11.11 i686) ================================================================= System uname: 2.6.11.11 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.6.12 ccache version 2.4 [disabled] dev-lang/python: 2.4.1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig digest distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="cz cs en" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X acl acpi acpi4linux alsa apache2 artworkextra audiofile avi bash-completion berkdb bitmap-fonts bluetooth bmp bzip2 bzlib calendar cdda cddb crypt cups curlwrappers cyrus dba dga divx4linux drac dvd emboss encode exif foomaticdb ftp gdbm gif gimp gimpprint glep gnokii gpm hal iconv imap imlib innodb ipv6 jabber javascript jikes jpeg jpeg2k kde kdeenablefinal kerberos libg++ libwww linguas_cs linguas_en lzw-tiff mad mikmod mime ming mmx mng motif mozsvg mp3 mpeg mpg ncurses nls nptl nptlonly offensive oggvorbis openal opengl oss pam pcntl pcre pda pdflib perl php pic png pnp posix povray ppds pwdb python qt quicktime radeon readline sasl sdk sdl session shared sharedmem smime sockets spell sse ssl svg sysvipc tcpd tga theora truetype truetype-fonts trusted type1-fonts unicode usb v4l vhosts vim vim-pager vim-with-x wmf xml xml2 xmlrpc xpm xprint xrandr xsl xv xvid yvl2 zlib linguas_cz userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Re-assigning.
I unmerged mit-krb5, emerged heimdal kerberos and now it emerges properly.
Please see: http://forums.gentoo.org/viewtopic-t-348311-postdays-0-postorder-asc-highlight-sbin+sshd+error+loading+shared+libraries+libcomerr+3+shared+object-start-25.html for explanations
that URL is unrelated to this bug
changed the depend to heimdal instead of virtual/krb5 since openssh requires heimdal headers
scratch that, ppc64 needs heimdal KEYWORDing
just tested with latest openssh and mit-krb5 and this works now