Hello.
I have a very same problem.
I'm updating software on my old post RH9 Linux server. Everything is 99.9% done from sources...
Did plenty of updates including kernel (2.6.27.x), glibc (2.4), gcc, binutils (2.18), gtk2+, openssl, automake & autoconf, and plenty, plenty of others... This all is done on a live 'body' so I have to be careful.
Old rpm package (4.2) stopped working after glibc update (I really don't want to go back to the old one).
The entire system is stable and everything else seems to work fine, it reboots, mounts drives, plays CDs, even starts X window with old 3.4 KDE, all services are working well.
Lately decided to update the RPM package to the latest 4.7.0 ver.
I have a copy of the old rpm database in safe place so I can do anything with /var/lib/rpm/*
Also saved the /var/log/rpmpkgs.
Before compiling RPM itself I had to update/install following:
- NSS & NSPR libraries (Mozilla),
- Berkeley db-4.5.20 (also required for latest sendmail releases),
- LUA language library,
Well, after doing:
]$ cd rpm-4.7.0 (source)
]$ ./configure --prefix=/usr --with-external-db --with-lua=/usr/local CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss/nss -I/usr/include/nss/dbm"
]$ make // everything went fine here
]$ make check // 72 tests but plenty of them failed
You can download the logfile, a result of 'make check' procedure here:
http://www.ptatera.pl/download/rpmtests.log
Finally I did:
]$ make install
]$ mkdir /var/lib/rpm
]$ chown rpm.rpm /var/lib/rpm
]$ rpm --initdb
And it throws out "Segmentation fault"
then:
]$ tail /var/log/messages
gives:
May 11 17:02:19 seawolf kernel: rpm[6168]: segfault at 0 ip 00000000 sp bfeacdfc error 4 in rpm[8048000+4000]
Exactly the same way the rpm-4.6 dist. works... (or rather isn't working).
Could anyone help please?
Regards.
P.S.
And yes, I've moved from i386 to i686 arch...