Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 156907 - rpm: symbol lookup error: /usr/lib/ undefined symbol: matchpathcon_init
Summary: rpm: symbol lookup error: /usr/lib/ undefined symbol: matchpath...
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 4
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-05 04:19 UTC by gax
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-06-22 17:29:17 UTC

Attachments (Terms of Use)

Description gax 2005-05-05 04:19:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-2 Firefox/1.0.3

Description of problem:
# rpm -Uvh xxxxx
rpm: symbol lookup error: /usr/lib/ undefined symbol: matchpathcon_init

same for rpm -ivh

it is impossible to use yum (or up2date if it was not broken :( ) to rever to an older rpm/rpm-libs

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.rpm -Uvh xxxxx on an update done on 2005.05.05 @ 00:18

Additional info:


rpm -a and rpm -e work

Comment 1 Paul Nasrat 2005-05-05 13:54:39 UTC
Can you paste the output of ldd /usr/lib/

Comment 2 Paul Nasrat 2005-05-05 14:01:24 UTC
I'd already caught this and it is fixed in rpm-4.4.1-18.1

To fix you can download rpm-*4.4.1-18.1 get the new libs and binaries on the fs

cd /;/usr/lib/ rpm-libs-4.4.1-18.1.i386.rpm | cpio -ivd
cd /;/usr/lib/ rpm-4.4.1-18.1.i386.rpm | cpio -ivd

Then upgrade the packages using rpm.

Comment 3 gax 2005-05-05 18:31:41 UTC
I tryed 
cd /;/usr/lib/rpm/ /tmp/rpm-libs-4.4.1-18.1.i386.rpm | cpio -ivd
cd /;/usr/lib/rpm/ /tmp/rpm-4.4.1-18.1.i386.rpm | cpio -ivd
i tryed it again after rm -f /bin/rpm /usr/lib/
this problem remains.  

for comment #1
# ldd /usr/lib/ =>  (0xb7f6c000) => /usr/lib/ (0xb7dbe000) => /usr/lib/ (0xb7d26000) => /usr/lib/ (0xb7d1e000) => /lib/ (0xb7d10000) => /lib/tls/ (0xb7be6000) => /usr/lib/ (0xb7b91000) => /usr/lib/ (0xb7b81000) => /usr/lib/ (0xb7b36000) => /lib/tls/ (0xb7b13000) => /lib/ (0xb7b0f000) => /usr/lib/ (0xb7afc000) => /usr/lib/ (0xb7ae2000) => /lib/tls/ (0xb7ace000) => /lib/tls/ (0xb7abb000) => /usr/lib/ (0xb7aaa000) => /lib/ (0xb7aa0000)
        /lib/ (0x00472000) => /usr/lib/ (0xb79b7000) => /lib/ (0xb797f000) => /lib/ (0xb7872000) => /usr/lib/ (0xb785b000) => /usr/lib/ (0xb77e9000) => /usr/lib/ (0xb77c5000) => /usr/lib/ (0xb77c2000) => /lib/ (0xb77bf000) => /lib/ (0xb77aa000) => /usr/lib/ (0xb778b000)

Comment 4 Paul Nasrat 2005-05-05 20:30:30 UTC
We're linked against which provides matchpathcon_init. Can you
run /sbin/ldconfig and try an rpm command again.

Comment 5 javier wilson 2005-05-16 16:07:42 UTC
That was it. I installed libselinux 1.23.10-2 and it solved this problem:

cd /;rpm2cpio /var/spool/up2date/libselinux-1.23.10-2.i386.rpm | cpio -ivd

Run ldconfig and then rpm and up2date worked again.

Comment 6 Ling Li 2005-06-14 04:12:58 UTC
This one is still in FC4 final.

When I yum updated from FC3 (latest) to FC4, I did it step by step:

yum -y update yum (in FC3)
get/install the fedora-release package from FC4
yum -y update kernel coreutils
yum -y update yum

New versions of rpm, yum, etc. were then installed, but not libselinux, which
made yum broken.

A simple solution other than the one above is
 1. rpm2cpio libselinux-xxxxx.rpm | cpio -di  into a temporary directory.
 2. add that temp-dir/lib to your LD_LIBRARY_PATH
 3. rpm -Uvh libselinux-xxxxx.rpm

I would suggest to add proper version dependency on libselinux to rpm.

Comment 7 Kjetil T. Homme 2006-06-16 06:07:37 UTC
this bug just hit me too, while upgrading a FC3 system into FC5 en route FC4.  I
think an errata to get the dependency right should be issued.

Comment 8 Jeff Johnson 2006-06-16 10:39:59 UTC
I think so too. Off to libselinux to remove (or otherwise use versioned symbols) for a stable and
predictable ABI.

Comment 9 Jeff Johnson 2006-06-22 17:29:17 UTC
Install a version of the libselinux package that has the necessary symbol.

Comment 10 Kjetil T. Homme 2006-06-22 20:20:55 UTC
Not a bug???

The dependencies for this RPM are broken.  They don't require a sufficiently
recent libselinux.  This causes systems to be broken, and recovery is non-obvious.

Note You need to log in before you can comment on or make changes to this bug.