Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235734 - ebuilds looking for libexpat.so.0 after upgrading to dev-libs/expat-2.0.1
Summary: ebuilds looking for libexpat.so.0 after upgrading to dev-libs/expat-2.0.1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-25 23:30 UTC by Raul E Rangel
Modified: 2009-02-05 19:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raul E Rangel 2008-08-25 23:30:07 UTC
I updated to expat-2.0.1 from a 1.x version, and now when doing 
$ revdep-rebuild -X --library libexpat.so.0
or emerging any other packages that require expact it still try's linking against libexpat.so.0 instead of the newly created libexpat.so.1

i.e) When trying to emerge x11-libs/pango-1.20.5
I get an error: /var/tmp/portage/x11-libs/pango-1.20.5/work/pango-1.20.5/pango/.libs/lt-pango-querymodules: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

Reproducible: Always

Steps to Reproduce:
1. Upgrade from expat 1.x to 2.x
2. revdep-rebuild -X --library libexpat.so.0

Actual Results:  
Writing a pango.modules file to use with tests/examples.
/var/tmp/portage/x11-libs/pango-1.20.5/work/pango-1.20.5/pango/.libs/lt-pango-querymodules: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
make[3]: *** [pango.modules] Error 127


Expected Results:  
pango to compile normally

This happens with any ebuild that linkis to expat
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-25 23:58:26 UTC
Please post your `emerge --info'.
Comment 2 Raul E Rangel 2008-08-26 00:05:26 UTC
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Pentium III (Coppermine)
Timestamp of tree: Mon, 25 Aug 2008 12:37:03 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r1, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -funroll-loops -march=pentium3 -mfpmath=sse -mmmx -msse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -funroll-loops -march=pentium3 -mfpmath=sse -mmmx -msse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://gentoo.mirrors.pair.com/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl apache2 automount bash-completion berkdb bzip2 cli cracklib crypt cups curl dri dts dvdr fortran ftp gd gdbm gif gpm hash iconv imap ipv6 isdnlog jpeg kerberos ldap midi mpm-worker mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre pdo perl php png postgres pppd python readline reflection samba session simplexml sockets spell spl ssl sysfs tcl tcpd threads tidy tiff truetype type1 unicode winbind x264 x86 xattr xml xorg xsl xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810 vga vesa fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-26 06:11:54 UTC
Wow, you have a _lot_ of outdated packages!

Please try `emerge --sync; emerge -vuaDN world; emerge gentoolkit; revdep-rebuild;'. Reopen this bug report if the problem persists. :)
Comment 4 Raul E Rangel 2008-08-26 13:03:09 UTC
That's what i was in the middle of doing, but I got stuck because of this error. The way i got pango and the other libs to start compiling was to
$ emerge libXft
It apparently did something to fix it. Now 20hrs of compiling left, thanks!
Comment 5 jose orlando 2008-10-14 23:53:39 UTC
(In reply to comment #4)
> That's what i was in the middle of doing, but I got stuck because of this
> error. The way i got pango and the other libs to start compiling was to
> $ emerge libXft
> It apparently did something to fix it. Now 20hrs of compiling left, thanks!
> 

I had the same problem today, trying to update a gentoo box with lots of outdated packages.

I was receiveng the message 

"...error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory"

revdep-rebuild listed tens of brokens apps that relied on libexpat.so.0


I a 

ls -l /usr/lib/libexpat.so*
lrwxrwxrwx 1 root root     17 Oct 12 10:22 /usr/lib/libexpat.so -> libexpat.so.1.5.2
lrwxrwxrwx 1 root root     17 Oct 12 10:22 /usr/lib/libexpat.so.1 -> libexpat.so.1.5.2
-rwxr-xr-x 1 root root 127172 Oct 12 10:22 /usr/lib/libexpat.so.1.5.2

So I hadn't a libexpat.so.0 link. It was fixed with 

ln -s /usr/lib/libexpat.so.1.5.2 /usr/lib/libexpat.so.0

I what a think that happened is that during the emerge world some upgrade deleted the simlink and crashed before rewriting it or just deleted and never rewrote it back.
Comment 6 Stephan 2009-02-05 19:39:16 UTC
(In reply to comment #5)

> ln -s /usr/lib/libexpat.so.1.5.2 /usr/lib/libexpat.so.0

Had same issue, above workaround worked for me. The package that was failing on my system was 
sys-apps/kbd-1.13-r1