Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28125 - net-misc/openssh-3.6.1_p2-r3 fails with USE="krb4 kerberos"
Summary: net-misc/openssh-3.6.1_p2-r3 fails with USE="krb4 kerberos"
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
Depends on:
Reported: 2003-09-07 12:27 UTC by brian tarricone
Modified: 2004-02-06 02:20 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description brian tarricone 2003-09-07 12:27:46 UTC
when i try to emerge net-misc/openssh-3.6.1_p2-r3, it fails with the following

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 
warning:, needed by
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../, may conflict with
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 
warning:, needed by
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../, may conflict with
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....
warning:, needed by
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../, may conflict with

!!! 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]
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -falign-functions=4
-maccumulate-outgoing-args -ffast-math -freorder-blocks"
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/
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
FEATURES="ccache autoaddcvs sandbox digest"
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"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-09-25 14:37:43 UTC
try 3.7.1_p2
Comment 2 brian tarricone 2003-09-25 22:52:19 UTC
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 => /lib/ (0x40030000) => /lib/ (0x40042000) => /usr/lib/ (0x46e92000) => /lib/ (0x40045000) => /usr/lib/ (0x40059000) => /lib/ (0x4011c000) => /usr/lib/ (0x40149000) => /usr/lib/ (0x4015c000) => /usr/lib/ (0x401b9000) => /lib/ (0x401c9000) => /lib/ (0x401cc000) => /lib/ (0x402f4000) => /usr/lib/ (0x402f7000)
        /lib/ => /lib/ (0x40000000)

is this correct?
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2003-11-21 07:24:45 UTC
krb4 and afs support was removed by upstream starting from 3.7.1_p1. 
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2004-02-06 02:20:09 UTC
Closing as krb4 support has been dropped upstream.