I recently update sys-libs/ldb to 1.1.4. It's installed on system since it's a dependency of sys-auth/sssd. But after the upgrade sssd refused to start with the following error: ldb: module version mismatch in /scratch/portage_hdd/portage/sys-auth/sssd-1.6.4/work/sssd-1.6.4/src/ldb_modules/memberof.c : ldb_version=1.1.4 module_version=1.1.3 ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/memberof.so : Unavailable /usr/lib64/ldb/modules/ldb/memberof.so is installed by sssd. After a rebuild of sssd, everything was working smoothly again. Portage 2.2.0_alpha86 (default/linux/amd64/10.0/developer, gcc-4.6.2, glibc-2.14.1-r2, 3.2.6-gentoo x86_64) ================================================================= System uname: Linux-3.2.6-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_W3520_@_2.67GHz-with-gentoo-2.1 Timestamp of tree: Fri, 17 Feb 2012 11:45:01 +0000 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3::sage-on-gentoo, 3.2.2 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.4.6-r1, 4.6.2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo science sage-on-gentoo progress local Installed sets: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n " FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles ftp://mirror.ovh.net/gentoo-distfiles" LANG="en_US.utf-8" LC_ALL="en_US.utf-8" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu" LINGUAS="en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/scratch/portage_hdd" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/sci /usr/local/overlays/sage-on-gentoo /usr/local/overlays/gentoo-progress-read-only /usr/local/overlays/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aacplus abook acl acpi alsa amd64 bash-completion berkdb bitmap bluetooth boost bzip2 cairo caps cdda cdr cli clucene colord consolekit cracklib crypt cuda cups curl custom-cflags custom-optimization cxx dbus dirac djvu dot dri dts dvd dvdr ebook ecls eigen emboss encode excel exif extensions faac fam ffmpeg fftw firefox flac fontconfig fontforge fortran frei0r g3dvl gbm gd-external gdbm gdu gif gles gles1 gles2 gmp gnuplot gpg gpm graphics graphviz gssapi gtk hyperestraier iconv icu idn imap inotify iproute2 ipv6 ipython ithreads jemalloc jpeg jpeg2k json kde kpathsea lapack latex lcms ldap ldap-sasl libkms libnotify logrotate lua lzma mad matplotlib mbox minizip mktemp mmx mng modules mozilla mp3 mp4 mpc mpeg mudflap multilib muparser music ncurses nettle nfs nis nls nntp nptl nptlonly nsplugin ntl ntlm numpy ocaml ogg opencl opengl openmp openntpd openssl openvg optimization pam pango passwdqc pcre pcre16 pdf pdfannotextractor pdfimport perl pgf phonon plotutils png policykit pop postproc ppds pppd pstricks publishers python qd qhull qt3support qt4 readline rfc3779 rtmp ruby sage sasl schroedinger science sdl semantic-desktop session shared-dricore sidebar slp smime smp smtp snmp sparse speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs syslog system-sqlite tcpd theora thin-splines threads tiff tokyocabinet tools truetype type3 udev udisks unicode usb utils vdpau vim vim-syntax vorbis vpx webkit x264 xattr xcb xetex xft xml xorg xulrunner xv xvfb xvid xvmc zeitgeist zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
So we should start adding warnings to all packages that install libraries that other packages link against? It's better to temporarily preserve the old libraries - we have a mechanism in place for that.
(In reply to comment #1) > So we should start adding warnings to all packages that install libraries that > other packages link against? It's better to temporarily preserve the old > libraries - we have a mechanism in place for that. I don't think the issue is the library's SONAME here. It didn't changed : objdump -p /usr/lib64/libldb.so.1.1.4 | grep SONAME SONAME libldb.so.1 Plus I'm using portage 2.2 so I'm usually protected against this kind of issues. It looks more that when a ldb module is build, it stores internally the version of ldb it was build against. At startup it checks if the version if was build and the current version are so same. The version here is not the soname, but the version of the package (1.1.4 for instance). If we look at the source code (https://fedorahosted.org/sssd/browser/src/ldb_modules/memberof.c), we have a call to LDB_MODULE_CHECK_VERSION defined in ldb_module.h : #define LDB_MODULE_CHECK_VERSION(version) do { \ if (strcmp(version, LDB_VERSION) != 0) { \ fprintf(stderr, "ldb: module version mismatch in %s : ldb_version=%s module_version=%s\n", \ __FILE__, version, LDB_VERSION); \ return LDB_ERR_UNAVAILABLE; \ }} while (0)
At the moment I see only one solution - that would display a warning about the need to rebuild sssd. For portage 2.2 can create a dynamic set in the likeness of need-rebuild
Warning has been added to all ldb ebuilds telling users to rebuild sssd.