LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   upgraded to glibc2.3 and now rpm seg faults (https://www.linuxquestions.org/questions/linux-software-2/upgraded-to-glibc2-3-and-now-rpm-seg-faults-116594/)

megaspaz 11-16-2003 04:15 AM

upgraded to glibc2.3 and now rpm seg faults
 
i successfully did a clean install/upgrade of glibc 2.3.2 but the rpm package manager is now broken. when trying to remove, install, or upgrade packages rpm will exit with a seg fault. since rpm is broken, i can't install the older glibc rpm packages. right now, i've gotten a hold of the rpm package source code from redhat for my system and need to know what options to put in the ./configure line as running a vanilla ./configure and make command led to an error stating that i need to tell it where the glibc shared objects are.

if you know of any other options that need to be set or anything else that comes to mind, please let me know. thank you.

TheOneKEA 11-16-2003 05:16 AM

glibc 2.3.2 has the userspace bits of the New POSIX Threading Library, or NPTL. When I upgraded to 2.6 and glibc 2.3.2, my RPM broke as well.

Try this at a command-line, logged in as root:

export LD_ASSUME_KERNEL=2.2.5
rpm --rebuilddb

Then try to use RPM. If it works, then everything is OK. If it doesn't, then download and install the very latest rpm RPMs. I installed rpm-4.2.1-0.30 and rebuilt my RPM database and now everything is OK.

megaspaz 11-16-2003 12:28 PM

tried out those commands and i still get seg faults.

it looks like i'm gonna need to build the source. which packages would i go about getting for rpm so i can rebuild the source?

megaspaz 11-16-2003 12:46 PM

well here's the output of make.

Code:

cc1: warnings being treated as errors
next_prime.c:43: warning: no previous prototype for `next_prime'
make[4]: *** [next_prime.o] Error 1
make[4]: Leaving directory `/home/vjong/rpm-4.2/elfutils/lib'
**leaving directory messages**
make: *** [all] Error 2

something about next_prime...

php 11-16-2003 12:48 PM

what option did you use to upgrade glibc? make sure you dont have two different versions of glibc installed.. did you run ldconfig after

megaspaz 11-16-2003 12:52 PM

used the -Uvh option and --nodeps option. the only deps i saw were gcc2.96 and gcc3.1-5 needed old version of glibc.

Code:

rpm -qa | grep "glibc"
glibc-headers-2.3.2-91
glibc-utils-2.3.2-91
glibc-devel-2.3.2-91
glibc-profile-2.3.2-91
glibc-debug-2.3.2-91
glibc-kernheaders-2.4-8.24
glibc-common-2.3.2-91
glibc-2.3.2-91
compat-glibc-6.2-2.1.3.2


megaspaz 11-16-2003 03:04 PM

got past the first error by installing from source, libelf. now i got a python problem.
Code:

rpmmodule.lo -MD -MP -MF .deps/rpmmodule.TPlo  -fPIC -DPIC -o .libs/rpmmodule.lo
rpmmodule.c:7:20: Python.h: No such file or directory
make[3]: *** [rpmmodule.lo] Error 1
make[3]: Leaving directory `/home/vjong/rpm-4.2/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vjong/rpm-4.2/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vjong/rpm-4.2'
make: *** [all] Error 2
[prompt rpm-4.2]# locate Python.h
/usr/share/doc/swig-1.1p5/Python.html
/usr/include/python1.5/Python.h
/usr/include/python2.2/Python.h

the error says there's no Python. h but there is. maybe the problem is that it doesn't know which Python.h to use? how to go about specifying that?

command used for configure so far:

./configure --includedir=/usr/include

saint 11-16-2003 11:27 PM

Why did you not use the up2date that is provided with Red hat? You shuld never give "--nodeps" until you are sure what you are doing. Try using the "up2date glibc" for a hopefully better future.


All times are GMT -5. The time now is 04:25 PM.