Bug 51252 - EVMS: after install emerge needs an ldconfig
Bug#: 51252 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: eradicator@gentoo.org Reported By: herber@thing.com
Component: Server
URL: 
Summary: EVMS: after install emerge needs an ldconfig
Keywords:  
Status Whiteboard: 
Opened: 2004-05-16 23:28 0000
Description:   Opened: 2004-05-16 23:28 0000
Simple problem, I think, with one of the EVMS packages.
After this command completed without errors:

emerge -v evms   lvm-user lvm2 raidtools 

I got these errors when I tried to run the evms commands:

lurch conf.d # evms
evms: error while loading shared libraries: libevms-2.2.so.0: cannot open shared object file: No such file or directory
lurch conf.d # evmsgui
evmsgui: error while loading shared libraries: libevms-2.2.so.0: cannot open shared object file: No such file or directory
lurch conf.d # updatedb

lurch conf.d # locate libevms
/usr/lib/libevms.a
/usr/lib/libevms.so
/lib/libevms-2.2.so.0.2
/lib/libevms.so
        
I ran ldconfig and the gui started perfectly:
       
lurch conf.d # ldconfig
lurch conf.d # evmsgui

emerge unmerge emvs
emerge -v emvs
>>> /etc/evms.conf
>>> /etc/evms.conf.sample
--- /etc/init.d/
>>> /etc/init.d/evms
 * Presently gentoo-sources-2.4.22 has basic support for evms2,
 * but does NOT support some of the more advanced features.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
/var/lib/init.d/depcache: line 24: 192.168.168.4: command not found
>>> sys-fs/evms-2.2.2 merged.
>>> Recording sys-fs/evms in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.


real    2m1.048s
user    1m31.130s
sys     0m13.547s
lurch conf.d # evmsgui 
evmsgui: error while loading shared libraries: libevms-2.2.so.0: cannot open shared object file: No such file or directory

lurch conf.d # ldconfig
lurch conf.d # evmsgui 

And it works again.

Reproducible: Always
Steps to Reproduce:
1. emerge evms
2. run evms or evmsgui
3.

Actual Results:  
gave this result:
evms: error while loading shared libraries: libevms-2.2.so.0: cannot open shared
object file: No such file or directory


Expected Results:  
No error, the program should have run.

lurch conf.d # emerge info
Portage 2.0.50-r6 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo
ftp://ftp.mirrors.ussg.iu.edu/pub/linux/gentoo/  http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 apm avi berkdb cdr crypt cscope cups dvd dvdr encode
esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 imlib joystick jpeg kde libg++
libwww lirc mad matroska mikmod motif mozilla mpeg mysql ncurses net nogcj
nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime
readline sdl slang spell ssl tcpd tiff transcode truetype usb xinerama xml2 xmms
xv zlib"

------- Comment #1 From Greg Kroah-Hartman 2004-06-21 13:13:40 0000 -------
Not a kernel bug, throwing back to wranglers to properly file.

------- Comment #2 From Mr. Bones. 2004-06-21 14:54:20 0000 -------
emvs is part of the x86-kernel herd.

------- Comment #3 From Jeremy Huddleston (RETIRED) 2004-07-23 01:42:04 0000 -------
fixed in portage.  thanks.