Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 64694

Summary: upgrading heimdal to 0.6.3-r1 breaks ssh (and in following, gnome)
Product: Gentoo Linux Reporter: Chris Rebert <gentoo>
Component: [OLD] GNOMEAssignee: Gentoo Kerberos Maintainers <kerberos>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gnome, jgonzalez.openinput, menion, rphillips
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Rebert 2004-09-19 15:54:30 UTC
upon upgrading heimdal with other packages compiled with the kerberos use flag, gnome won't start, citing an error in /usr/bin/ssh-agent claiming that libcom_err cannot be found

Reproducible: Always
Steps to Reproduce:
1. have a box where the kerberos USE flag is and has been on.
2. make sure gnome and gdm are installed+configured
3. upgrade heimdal
4. try starting a regular gnome session
Actual Results:  
an error message saying that the session lasted shorter than 10 secs appears and
shows the Xsession-errors file which contains the above error message

Expected Results:  
started gnome without a problem

Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -fprefetch-loop-arrays
-ftracer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -fprefetch-loop-arrays
-ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apm avi berkdb bitmap-fonts bonobo bzlib calendar caps cddb
cdr chroot clanJavaScript clanVoice crypt ctype cups curl curlwrappers dba dbm
dbx dga divx4linux droproot dv dvd dvdr encode esd exif fam flac flatfile
foomaticdb fs ftp gd gdbm gif gimp gimpprint gmp gnome gnomedb gnutls gphoto2
gpm gstreamer gtk gtk2 gtkhtml guile iconv ieee1394 imagemagick imap imlib
inifile ipv6 jabber java jbig jce jp2 jpeg kerberos ladcca lcms libg++ libwww
lzw mad maildir mbox md5sum mhash mikmod mime mmx mmx2 mng mozilla moznocompose
moznoirc moznomail mozp3p mozsvg mpeg mpi music native ncurses network nls
no_wxgtk1 nocd nomac odbc oggvorbis opengl oss pam pcntl pcre pdf pdflib perl
png posix ppds python quicktime radeon readline recode rtc sasl scanner sdl
session sftplogging skey slang slp smime sockets speex spell sse sse2 ssl svg
svga sysvipc tcltk tcpd tetex theora tidy tiff truetype unicode usb v4l2
video_cards_radeon wmf wxwin x86 xml2 xmlrpc xpm xprint xsl xv xvid xvmc zlib"
Comment 1 foser (RETIRED) gentoo-dev 2004-09-20 04:48:07 UTC
thats an abi issue.. i think thats more something for the heimdal maintainer
Comment 2 Chris Rebert 2004-09-20 17:10:35 UTC
The exact error from .xsession-errors:

/etc/X11/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/X11/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "USERNAMEREMOVED"
/etc/X11/gdm/Xsession: Beginning session setup...
/etc/X11/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-session
/usr/bin/ssh-agent: error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
Comment 3 Spider (RETIRED) gentoo-dev 2004-09-21 13:36:48 UTC
quick solution:
  rebuild (open)ssh  
real solution:
  bug heimdal maintainers to make it binary compatible between versions.

preventive action:
  revdep-rebuild
Comment 4 Jose Gonzalez Gomez 2004-10-18 11:04:17 UTC
I would like this bug to have further testing. I have encountered similar problems, and found some people that reported some strange behavior. It seems libcom_err is provided by e2fsprogs (somebody could confirm this?) and heimdal, and that seems to provoke these error.

Extracted from a conversation with another guy experiencing something similar:

>>> I saved my make.conf, and then stripped the additions out of USE, and am now emerging heimdal, alone. After it's installed, I'll put the make.conf with your suggestions in, and emerge the whole list. That way, heimdal will satisfy virtual/krb5 and block mit-krb5. When I was playing around with this a few months back, I noticed a strange 'toggle' behavior with heimdal. Install once, it's OK. Install again, and things disappear. Install a third time, and it's OK, again. I haven't looked for this in Bugzilla, but if I have to, I'll just do that third emerge. I also remember from a few months ago having some circular dependency problems with cyrus-sasl and openldap.
>>
>>
>>
>>
>>    I haven't noticed this toggle behavior, but maybe it's related with the bug I mentioned before... about the circular dependencies, I don't know exactly how portage handles them, but if you emerge cyrus-sasl, then openldap and then cyrus-sasl again I think everything should be ok. The last compilation would compile the ldap support that was missing in the first compilation, if you still hadn't OpenLDAP installed.
>>
> More about the toggle behavior. It appears to be related to "libcom_err.so". This is normally supplied by e2fsprogs, but is also supplied by Heimdal. Furthermore, sshd digs its nails into the lib, but I don't think that should be the root of the problem. Anyway, if I build Heimdal the second time, after a reboot sshd refuses to start because it can't find libcom_err.so. Even though my server is just in my basement, most of the time I do the work from upstairs in the study, so an sshd failure becomes a system failure. To be honest, I never checked Heimdal to see if it worked, I just rebuild again because sshd failed.
>
> But I'm not sure about this bit of having libcom_err.so furnished by two different packages. Seems like an update to e2fsprogs would break things, too.


   I was having troubles in a machine related to some packages not finding libcom_err.so, so the root of the problem must be this. If I have some time I'll take a look at this and file a bug report to Gentoo. 
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2005-06-06 13:56:40 UTC
0.6.4-r1 now solves this completely.

*** This bug has been marked as a duplicate of 45682 ***