LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-05-2004, 06:49 AM   #1
k3di
LQ Newbie
 
Registered: May 2004
Location: Istanbul
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Question RedHat 8 glibc problem


Hi.

I update the glibc of my RedHat 8 box. The prev. version is 2.2.93 and the current version is 2.3.2. After the updating proccess the gcc began not to work. I update the glibc with rpms. I didn't use source code. When I try to compile some source code gcc gives me the error

/lib/libc.so.6: undefined reference to __libc_stack_end@GLIBC_2.1'
collect2: ld returned 1 exit status


What is the problem and how can I solve it? Could you please help me? I'll be very happy. Thanx...

Ender
 
Old 05-06-2004, 10:36 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I update the glibc of my RedHat 8 box. The prev. version is 2.2.93 and the current version is 2.3.2. After the updating proccess the gcc began not to work. "

gcc and glibc versions are interdependent. When you update glibc you also have to update gcc to the corresponding version.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites
 
Old 05-06-2004, 11:14 AM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Quote:
gcc and glibc versions are interdependent. When you update glibc you also have to update gcc to the corresponding version.
what do you mean to the corresponding? I have gcc-3.3.2 what glibc version do I need, or is this to do with rpms?

Can I use any verion of glibc so long as that is used to compile gcc?
 
Old 05-06-2004, 03:26 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I update the glibc of my RedHat 8 box. The prev. version is 2.2.93 and the current version is 2.3.2."
"I have gcc-3.3.2 what glibc version do I need, or is this to do with rpms?"

gcc-3.3.2 needs glibc 2.3.2 so a glibc/gcc mismatch is not your problem. Probably when you updated glibc you also updated gcc.

Now I am leaning toward the idea that there is a dependency problem between the source that you are trying to compile and your new version of glibc. Do you have any way of finding out what the code that you are compiling depends on?

As an added thought. The error message says that it is looking for /lib/libc.so.6. You can check to see what versions of glibc are installed in /lib with:
find /lib -iname "*libc*"

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

Last edited by jailbait; 05-06-2004 at 03:38 PM.
 
Old 05-06-2004, 04:22 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
jailbait, sorry to jump in on the thread and cause confusion(i'm not the original poster). The thread sparked my interest, so I asked a question pertaining to it
 
Old 05-06-2004, 04:44 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
shanenin

I didn't even notice that I was talking to 2 different people.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites
 
Old 05-07-2004, 01:37 AM   #7
k3di
LQ Newbie
 
Registered: May 2004
Location: Istanbul
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up problem was solved...

The problem was two different version of glibc installation.
When I set the LD_LIBRARY_PATH env. variable with the value '/lib' it worked. I think that there was confusion about the dynamic linking preference. Setting the LD_LIBRARY_PATH solved the problem. Thanks for your interes...
 
Old 05-10-2005, 03:18 AM   #8
joshmahesh
LQ Newbie
 
Registered: Mar 2005
Location: Hyderabad
Distribution: EL, Fedora.
Posts: 4

Rep: Reputation: 0
Unhappy

Getting problem while updating or installing the RPM. Now i am not able to install the RPM, what i i have to do to overcome with this. Please help me.......

Following error i am getting while installing the RPM
[root@testlinix1 RPMS]# rpm
rpm: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by /usr/lib/librpm-4.3.so)
rpm: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by /usr/lib/librpmdb-4.3.so)
rpm: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by /usr/lib/libselinux.so.1)
rpm: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by /usr/lib/librpmio-4.3.so)
 
Old 05-10-2005, 11:41 AM   #9
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
You cannot upgrade glibc, attempting to do so will definitely break your setup.

I would advise backing up your data, wiping RH8 and installing Fedora Core 3 which will give you the latest glibc packages.
 
  


Reply



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
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
HELP! GLIBC 2.3 Upgrade in redhat 7.2 problem ihealthbuzz Linux - Software 1 10-08-2004 03:34 PM
Upgrading glibc-2.2.4 to glibc-2.3.2 on redhat 7.2 Shuja Linux From Scratch 2 07-30-2004 12:34 AM
upgrade glibc-2.2.4 to glibc-2.3.2 on redhat 7.2 Shuja Red Hat 0 07-28-2004 06:10 AM
Installing GLIBC-2.3 on RedHat 7.3 ganninu Red Hat 1 09-03-2003 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 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
Open Source Consulting | Domain Registration