LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-21-2004, 11:26 PM   #1
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
Upgraded GCC; now many programs don't work


I'm using Gentoo Linux on x86 and kernel 2.6.3.

I recently upgrade GCC to 3.3.2 (I'm not sure what version I was using previously). Now a lot of programs stopped working. I'm pretty sure it's a problem with dynamic libraries. It seems like programs lost the ability to communicate. For instance, KDE loaded, but couldn't find any theme files. Recompiling KDE fixed the problem. I'm pretty sure I can fix any one program by recompiling it, but every program on my system is behaving like this (not even su works at the moment). Is there a way to update all programs to use whatever changed about my environment from the new GCC without recompiling the entire system?
 
Old 02-21-2004, 11:52 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
revdep-rebuild

But I must ask, did you update glibc as well? Because updating GCC shouldn't screw with you libraries too badly. I upgrade GCC quite frequency as I use the ~arch keywork and it never breaks library compatiblity for me.

Last edited by jtshaw; 02-21-2004 at 11:54 PM.
 
Old 02-22-2004, 01:22 AM   #3
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks. That worked perfectly. I had to run one of the commands manually (I ended up with a masked ebuild somehow that I didn't want), but it said everything was built successfully the second time.

edit: yeah, glibc got rebuilt. I didn't expressly merge it, though.
 
Old 02-22-2004, 02:02 AM   #4
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Original Poster
Rep: Reputation: 30
Okay. Well, just about everything is fixed, but su is still not working. I'm not sure if this is related. Any idea why su wouldn't work?
 
Old 02-22-2004, 09:17 AM   #5
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
If youi did 'emerge world':
Check if your /etc/group hasn't been replaced, and that you're still part of wheel anymore...
 
Old 02-22-2004, 03:42 PM   #6
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks. That was the problem. It works well now. Shouldn't /etc/group have been merged by etc-update, though?
 
Old 02-23-2004, 07:20 AM   #7
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
That's exactly the problem; etc-update replaces the old files with the new ones(.cfg_00000 *name* or something like that).
So the changes you made to the old files are erased...
So next time, control which file you're replacing, that's the whole point of the command; fstab, rc.conf, etc..., make.conf should not be replaced most of the time, unless you wan't to reeedit everything by hand once more...

Last edited by lokee; 02-23-2004 at 07:21 AM.
 
Old 02-23-2004, 02:41 PM   #8
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Original Poster
Rep: Reputation: 30
Yeah. I'm usually pretty good at merging config files carefully; I never even noticed that group was in there, though. It must have slipped past me.
 
Old 02-23-2004, 05:57 PM   #9
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by Zoombie
Okay. Well, just about everything is fixed, but su is still not working. I'm not sure if this is related. Any idea why su wouldn't work?
I had also recently installed dentoo on my machine and i could not get su to work.
i could log into root through the login screen.but if i logged into normal user and then did su and entered my passwd...it always gave me a permission denied.
could it be the same problem as this?
 
Old 02-23-2004, 05:59 PM   #10
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by lokee
If youi did 'emerge world':
Check if your /etc/group hasn't been replaced, and that you're still part of wheel anymore...
how do you mean part of wheel anymore.I have this line in my /etc/group:
wheel:x:10:root
(this is at my machine at work)
should it be exactly like this at home too?
thanks
 
Old 02-23-2004, 07:01 PM   #11
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Original Poster
Rep: Reputation: 30
I think a user needs to be part of wheel to use su. So you'd need to make sure any user you want to switch with (probably your primary account, at least) is part of wheel.
 
Old 02-23-2004, 07:17 PM   #12
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by Zoombie
I think a user needs to be part of wheel to use su. So you'd need to make sure any user you want to switch with (probably your primary account, at least) is part of wheel.
well under my debian install there is no entry named wheel.
i did cat /etc/group | grep wheel
and nothing.
is this something specific to Gentoo?
thanks
 
Old 02-23-2004, 09:16 PM   #13
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
i think Debian uses sysadmin or something similar as wheel. Wheel is the admin group used in FreeBSD, so I'm guessing Gentoo carried that convention over
 
Old 02-24-2004, 06:08 AM   #14
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Yep, users need to be part of wheel to use su...

If it is a gentoo problem, replace the wheel line of /etc/group with:
wheel:x:10:root,<user>

Just so you know, to play games, you need to be part of 'games'...
 
  


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
upgraded kernel to 2.6.10 but several things do not work now! parv Fedora 2 02-28-2005 10:22 AM
Upgraded memory, now PCMCIA doesn't work ponds Linux - Software 5 07-05-2004 04:59 PM
Upgraded kernel, NDISwrapper don't work no more nyghtone Linux - Laptop and Netbook 2 04-15-2004 10:27 PM
upgraded kernel and now modem won't work... lowlight Linux - Networking 0 09-11-2003 01:06 AM
Upgraded ver of KDE don't work ..help snatale1 Linux - Newbie 5 08-31-2003 11:08 PM


All times are GMT -5. The time now is 12:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration