when i try to emerge net-misc/openssh-3.6.1_p2-r3, it fails with the following output: gcc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o uidswap.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o monitor_fdpass.o kexdhs.o kexgexs.o auth-krb5.o auth-krb4.o loginrec.o auth-pam.o auth2-pam.o auth-sia.o md5crypt.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/athena/lib -lssh -lopenbsd-compat -lwrap -lpam -ldl -lresolv -ldes -lkrb4 -lresolv -lutil -lz -lnsl -lcrypto -ldes -lkrb5 -lk5crypto -lcom_err gcc -o ssh-add ssh-add.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/athena/lib -lssh -lopenbsd-compat -lresolv -ldes -lkrb4 -lresolv -lutil -lz -lnsl -lcrypto -ldes -lkrb5 -lk5crypto -lcom_err /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libkrb4.so, may conflict with libcom_err.so.1 gcc -o ssh-keygen ssh-keygen.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/athena/lib -lssh -lopenbsd-compat -lresolv -ldes -lkrb4 -lresolv -lutil -lz -lnsl -lcrypto -ldes -lkrb5 -lk5crypto -lcom_err /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libkrb4.so, may conflict with libcom_err.so.1 auth-krb4.o(.text+0x5e7): In function `krb4_init': : undefined reference to `krb_get_default_tkt_root' collect2: ld returned 1 exit status make: *** [sshd] Error 1 make: *** Waiting for unfinished jobs.... /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libkrb4.so, may conflict with libcom_err.so.1 !!! ERROR: net-misc/openssh-3.6.1_p2-r3 failed. !!! Function src_compile, Line 106, Exitcode 2 !!! compile problem it appears to be trying to link against -lkrb4, part of app-crypt/mit-krb5, when it should be linking against -lkrb, part of app-crypt/kth-krb. 'emerge info' reports: Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test4-bk7) ================================================================= System uname: 2.6.0-test4-bk7 i686 AMD Athlon(tm) processor ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -falign-functions=4 -maccumulate-outgoing-args -ffast-math -freorder-blocks" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache autoaddcvs sandbox digest" GENTOO_MIRRORS="http://212.219.247.19/sites/www.ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/ ftp://cs.ubishops.ca/pub/gentoo http://www.ibiblio.org/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm crypt foomaticdb libg++ mad mikmod nls pdflib png spell truetype xmms xv zlib directfb gdbm slang tetex tcltk java guile X gpm tcpd python gtk qt motif -kde -arts alsa gtk2 cdr gphoto2 ncurses readline ungif gif jpeg gnome -mozilla aalib bonobo perl mysql esd imlib innodb berkdb sasl ssl pam krb4 kerberos mmx 3dnow encode oggvorbis avi dvd mpeg quicktime sdl acpi4linux xfs cups xml xml2 libwww flash apache2 fbcon svga v4l2 opengl"
try 3.7.1_p2
not sure if i'm mistaken, but it looks like 3.7.1_p2 has removed support for krb4. from the ebuild it appears to only include configure flags for krb5, and my final ssh binary is only linked to krb5 binaries: $ ldd /usr/bin/ssh libresolv.so.2 => /lib/libresolv.so.2 (0x40030000) libutil.so.1 => /lib/libutil.so.1 (0x40042000) libz.so.1 => /usr/lib/libz.so.1 (0x46e92000) libnsl.so.1 => /lib/libnsl.so.1 (0x40045000) libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40059000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4011c000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x40149000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x4015c000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x401b9000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x401c9000) libc.so.6 => /lib/libc.so.6 (0x401cc000) libdl.so.2 => /lib/libdl.so.2 (0x402f4000) libcom_err.so.3 => /usr/lib/libcom_err.so.3 (0x402f7000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) is this correct?
krb4 and afs support was removed by upstream starting from 3.7.1_p1.
Closing as krb4 support has been dropped upstream.