LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2003, 05:15 AM   #1
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 11-16-2003, 06:16 AM   #2
TheOneKEA
Member
 
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 8.0 (amd64) w/kernel 3.19.0
Posts: 286

Rep: Reputation: 30
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.
 
Old 11-16-2003, 01:28 PM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Original Poster
Rep: Reputation: 46
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?
 
Old 11-16-2003, 01:46 PM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Original Poster
Rep: Reputation: 46
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...
 
Old 11-16-2003, 01:48 PM   #5
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Rep: Reputation: 30
what option did you use to upgrade glibc? make sure you dont have two different versions of glibc installed.. did you run ldconfig after
 
Old 11-16-2003, 01:52 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Original Poster
Rep: Reputation: 46
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

Last edited by megaspaz; 11-16-2003 at 01:53 PM.
 
Old 11-16-2003, 04:04 PM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Original Poster
Rep: Reputation: 46
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
 
Old 11-17-2003, 12:27 AM   #8
saint
Member
 
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC seg faults benne Linux - Software 5 09-05-2005 02:09 AM
Repeated seg faults Tick Linux - General 5 07-29-2004 08:09 PM
seg faults happening allan_y Linux - General 2 07-25-2004 06:30 AM
bash seg faults Kilka *BSD 4 12-15-2003 02:40 AM
w3m seg faults slakmagik Linux - Software 0 05-04-2003 11:58 PM


All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration