Friday, August 26, 2005

cpio: MD5 sum mismatch on rpms created during build process under updated fedora-core3

This is the error message while running
$rpm -ihv *.rpm

error: unpacking of archive failed on file /opt/openoffice.org1.9.125/program/libgcc_s.so.1.1;430edcb0: cpio: MD5 sum mismatch

Error is for this package openoffice.org-core05-1.9.125-1.i586.rpm.

After complete installation of the packages when we run $openoffice.org-1.9 command it give error of shared objects(*.so.) not found for "javaldx" and "soffice.bin".

If you've been seeing these under "Updated fedora" it's because /lib/libgcc_s.so.1
is normally prelinked and this isn't working well with the normal rpm architecture for fedora, as a hackaround comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in /etc/rpm/macros.prelink

See
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149465 for details.

Alternatively when it makes its way into a release, configure oosource --with-system-stdlibs will avoid the problem.

Well if one don't want to do the above steps, he can run the same rpm command as:
$rpm --nomd5 -ihv *.rpm
The above command will not check for md5sum and all the packages will be installed and i think it will work fine also. As in my case OO is running without any fail.

But the correct way is to configure it with the above said option.

I think this problem is with the updated version of fedora-core3 but i am not sure about it right now.

1 comment:

Nasimuddin Ansari said...

For me, before doing rpmbuild, use "/usr/sbin/prelink -u " on the file reporing MD% sum mismatch resolved the problem.