Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

A problem after upgrading/downgrading glibc

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
Koala Kid
Guru
Guru
User avatar
Posts: 382
Joined: Fri May 09, 2003 2:07 pm

A problem after upgrading/downgrading glibc

  • Quote

Post by Koala Kid » Sat Mar 11, 2006 7:10 pm

I've installed glibc 2.4 today (as part of usual emerge -uDv world) and experienced some troubles after that (couldn't load the X), so I decided to go to the previous version 2.3.6. After reboot I can't even acces my system, thanks to the following nice error message:

Code: Select all

/sbin/init: relocation error: /lib/tls/libc.so.6: symbol_dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with time preference.
[   33.848825] kernel panic - not syncing: attempted to kill init!
How do I fix that ? It looks very bad anyway...
Thank you...
"People are the worst, the worst thing about music is that people play it". M. Patton.
Top
zwik
Apprentice
Apprentice
User avatar
Posts: 167
Joined: Sun Sep 08, 2002 8:11 pm
Location: NL, NB, Liempde
Contact:
Contact zwik
Website

  • Quote

Post by zwik » Sat Mar 11, 2006 7:57 pm

I'm having similar experiences :) . I also downgraded after an upgrade of glibc. I can't get into my system anymore. Something with init. I booted up Knoppix and tried to chroot into my system. There I get this error:

Code: Select all

# chroot /mnt/gentoo/ /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory
No idea what to do :cry: .
Daily life and stuff.
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Sat Mar 11, 2006 9:27 pm

My system was running fine with glibc-2.4 but I realized I hadn't restarted X since the upgrade. After reading this post I did that and got the relocation error but after remerging xorg all was well again.

Chris
Last edited by darkphader on Sat Mar 11, 2006 10:05 pm, edited 1 time in total.
WYSIWYG - What You See Is What You Grep
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Sat Mar 11, 2006 10:00 pm

zwik wrote:No idea what to do :cry: .
You might be able to use the statically linked busybox instead (if it's installed) - try chroot /mnt/gentoo /bin/bb sh...

I have no experience with actually making busybox work though, but it's worth a try.
No-one's more important than the earthworm.
Top
brihall
Tux's lil' helper
Tux's lil' helper
Posts: 86
Joined: Tue Apr 29, 2003 8:56 pm
Location: Colorado, USA
Contact:
Contact brihall
Website

  • Quote

Post by brihall » Sat Mar 11, 2006 10:59 pm

Re-emerging xorg-x11 fixed it for me.

However, with glibc-2.4 on one of my Gentoo 2006.0 boxen (~x86), oooqs DOSes the KDE startup (so much HDD access you cannot access the box). "emerge -C oooqs" fixes that, but now of course the first OOo start takes a little longer.
Top
zwik
Apprentice
Apprentice
User avatar
Posts: 167
Joined: Sun Sep 08, 2002 8:11 pm
Location: NL, NB, Liempde
Contact:
Contact zwik
Website

  • Quote

Post by zwik » Sat Mar 11, 2006 11:55 pm

Maedhros wrote:
zwik wrote:No idea what to do :cry: .
You might be able to use the statically linked busybox instead (if it's installed) - try chroot /mnt/gentoo /bin/bb sh...

I have no experience with actually making busybox work though, but it's worth a try.
While "playing" with ldd on bash on the mount i found out all symlinks in /lib were pointing to files that would belong to glibc-2.4. I fixed every symlink in /lib manually to the "old" files of glibc :) .
Daily life and stuff.
Top
zwik
Apprentice
Apprentice
User avatar
Posts: 167
Joined: Sun Sep 08, 2002 8:11 pm
Location: NL, NB, Liempde
Contact:
Contact zwik
Website

  • Quote

Post by zwik » Sat Mar 11, 2006 11:57 pm

brihall wrote:Re-emerging xorg-x11 fixed it for me.

However, with glibc-2.4 on one of my Gentoo 2006.0 boxen (~x86), oooqs DOSes the KDE startup (so much HDD access you cannot access the box). "emerge -C oooqs" fixes that, but now of course the first OOo start takes a little longer.
So if i remerge xorg X should work again?

Did you had nptl before? On glibc other than 2.4 that is.
Daily life and stuff.
Top
houtworm
Guru
Guru
User avatar
Posts: 397
Joined: Sat Mar 08, 2003 10:11 pm
Location: Den Haag, Netherlands
Contact:
Contact houtworm
Website

  • Quote

Post by houtworm » Sun Mar 12, 2006 4:34 am

zwik wrote: I fixed every symlink in /lib manually to the "old" files of glibc :) .
Wow! you saved my day, thanks!
dank je wel :-)
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Top
dufeu
l33t
l33t
User avatar
Posts: 927
Joined: Fri Aug 30, 2002 2:59 pm
Location: US-FL-EST

Perhaps this should be made a sticky?

  • Quote

Post by dufeu » Sun Mar 12, 2006 4:53 am

I had the same problem starting X after emerging glibc-2.4.

I re-emerged =sys-libs/glibc-2.3.6-r3 and all is now well.

I'm not going to yet upgrade to glibc-2.4 again because I don't know what other packages might be effected. Besides xorg that is. I'm guessing that we'll need to do a revdep-rebuild on the .so object.

In the meantime, I suspect a number of people will be hit with this problem so making this topic sticky might be a good idea.

edit: The following bugs have recently appeared in bugzilla and most appear related.

Code: Select all

125809    nor  	P2  PPC  	x11@gentoo.org  	NEW  	  	mesa-6.4.2-r1 fails to build on ppc64 with glibc-2.4/gcc-...
125818 	nor 	P5 	AMD 	toolchain@gentoo.org 	NEW 		sys-libs/glibc-2.4 and problem with locale
125832 	maj 	P2 	All 	mozilla@gentoo.org 	NEW 		Compilation of mozilla 1.7.12 (and probably firefox/thund...
125861 	nor 	P2 	All 	games@gentoo.org 	NEW 		zsnes 1.42 crashes with glibc 2.4
125868 	maj 	P2 	All 	base-system@gentoo.org 	NEW 		After installation of glibc-2.4: /usr/bin/python: relocat...
125887 	nor 	P2 	AMD 	bug-wranglers@gentoo.org 	NEW 		net-misc/wget-1.10.2 fails (gcc 4.1/glibc 2.4)
People whom think M$ is mediocre, don't know the half of it.
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Sun Mar 12, 2006 5:12 am

People upgrading from 2.3.6 need to upgrade glibc, then the toolchain (glibc binutils gcc libstdc++-v3 libtool portage) and then emerge -e world.

Code: Select all

# emerge glibc binutils gcc libstdc++-v3 libtool portage
# emerge -e world
There is a change between the linked version is why. (Probably something more complex, but this is my understanding)
Top
Koala Kid
Guru
Guru
User avatar
Posts: 382
Joined: Fri May 09, 2003 2:07 pm

  • Quote

Post by Koala Kid » Sun Mar 12, 2006 6:29 am

zwik wrote:
Maedhros wrote:
zwik wrote:No idea what to do :cry: .
You might be able to use the statically linked busybox instead (if it's installed) - try chroot /mnt/gentoo /bin/bb sh...

I have no experience with actually making busybox work though, but it's worth a try.
While "playing" with ldd on bash on the mount i found out all symlinks in /lib were pointing to files that would belong to glibc-2.4. I fixed every symlink in /lib manually to the "old" files of glibc :) .
Hey buddy, could you explain a little more about what exactly you did ? I can't chroot my system from a LiveCD, always receive the message I mentioned in my original post...
"People are the worst, the worst thing about music is that people play it". M. Patton.
Top
zwik
Apprentice
Apprentice
User avatar
Posts: 167
Joined: Sun Sep 08, 2002 8:11 pm
Location: NL, NB, Liempde
Contact:
Contact zwik
Website

  • Quote

Post by zwik » Sun Mar 12, 2006 10:21 am

Koala Kid wrote:
zwik wrote:
Maedhros wrote:
zwik wrote:No idea what to do :cry: .
You might be able to use the statically linked busybox instead (if it's installed) - try chroot /mnt/gentoo /bin/bb sh...

I have no experience with actually making busybox work though, but it's worth a try.
While "playing" with ldd on bash on the mount i found out all symlinks in /lib were pointing to files that would belong to glibc-2.4. I fixed every symlink in /lib manually to the "old" files of glibc :) .
Hey buddy, could you explain a little more about what exactly you did ? I can't chroot my system from a LiveCD, always receive the message I mentioned in my original post...
I mounted the partition where the /lib directory is found. I "cd'ed" into it for example "cd /mnt/gentoo/lib". With the command "ls -al" you see some symlinks are linked with files with the number 2.4 in it. Those are wrong! You unlinked those files with unlink and ln -s'ed the new symlinks with the files with the number 2.3.6 in it.

That's all :) .
Daily life and stuff.
Top
dufeu
l33t
l33t
User avatar
Posts: 927
Joined: Fri Aug 30, 2002 2:59 pm
Location: US-FL-EST

????????

  • Quote

Post by dufeu » Sun Mar 12, 2006 9:47 pm

nesl247 wrote:People upgrading from 2.3.6 need to upgrade glibc, then the toolchain (glibc binutils gcc libstdc++-v3 libtool portage) and then emerge -e world.

Code: Select all

# emerge glibc binutils gcc libstdc++-v3 libtool portage
# emerge -e world
There is a change between the linked version is why. (Probably something more complex, but this is my understanding)
That's an awful lot of work. Basically it means re-building the entire system.

I'm sure this will work, but is it really needed?
People whom think M$ is mediocre, don't know the half of it.
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

Re: ????????

  • Quote

Post by nesl247 » Sun Mar 12, 2006 10:20 pm

dufeu wrote:
nesl247 wrote:People upgrading from 2.3.6 need to upgrade glibc, then the toolchain (glibc binutils gcc libstdc++-v3 libtool portage) and then emerge -e world.

Code: Select all

# emerge glibc binutils gcc libstdc++-v3 libtool portage
# emerge -e world
There is a change between the linked version is why. (Probably something more complex, but this is my understanding)
That's an awful lot of work. Basically it means re-building the entire system.

I'm sure this will work, but is it really needed?
Alot of packages are linked to the older version, so I would do this. It might not be explicitly required but it is recommended. Plus this will allow your system have any benefits brought on by glibc2.4.
Top
nmbrthry
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 80
Joined: Tue Jun 21, 2005 3:03 am
Location: Urbana-Champaign, IL

  • Quote

Post by nmbrthry » Sun Mar 12, 2006 10:38 pm

I always use emwrap for rebuilding after a toolchain update. See this thread for more details.
Top
dufeu
l33t
l33t
User avatar
Posts: 927
Joined: Fri Aug 30, 2002 2:59 pm
Location: US-FL-EST

Thank you for the pointer to the thread.

  • Quote

Post by dufeu » Mon Mar 13, 2006 3:45 am

nmbrthry wrote:I always use emwrap for rebuilding after a toolchain update. See this thread for more details.
Thank you very much. The thread explains and clarifies quite a bit for me. Including the need to rebuild everything clean after the toolchain gets updated.

I'll be following instructions this week. :-)
People whom think M$ is mediocre, don't know the half of it.
Top
Koala Kid
Guru
Guru
User avatar
Posts: 382
Joined: Fri May 09, 2003 2:07 pm

Re: ????????

  • Quote

Post by Koala Kid » Wed Mar 15, 2006 4:11 pm

nesl247 wrote:
dufeu wrote:
nesl247 wrote:People upgrading from 2.3.6 need to upgrade glibc, then the toolchain (glibc binutils gcc libstdc++-v3 libtool portage) and then emerge -e world.

Code: Select all

# emerge glibc binutils gcc libstdc++-v3 libtool portage
# emerge -e world
There is a change between the linked version is why. (Probably something more complex, but this is my understanding)
That's an awful lot of work. Basically it means re-building the entire system.

I'm sure this will work, but is it really needed?
Alot of packages are linked to the older version, so I would do this. It might not be explicitly required but it is recommended. Plus this will allow your system have any benefits brought on by glibc2.4.
Hehe, nice tip :P
Anyway, I ended with re-installing the whole system cause too many things stopped working and it was easier to re-install.
"People are the worst, the worst thing about music is that people play it". M. Patton.
Top
Post Reply

17 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic