LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2013, 08:02 AM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Rep: Reputation: 1
Error message when switching to ROOT user using 'su -'


On a freshly installed Sabayon Linux (a distribution based on Gentoo, but comes along with a package manager, so no need to compile packages) I encounter a strange behaviour when switching to ROOT user in a terminal:

Code:
pascal@Sabayon-Parcellite:~ $ su -
Password:
/usr/bin/make_services: error while loading shared libraries: libobjc.so.3: cannot open shared object file: No such file or directory
/usr/bin/gdnc: error while loading shared libraries: libobjc.so.3: cannot open shared object file: No such file or directory
Sabayon-Parcellite:~ #
So I successfully became ROOT, everything works fine except for that error message. There is no error message when not requiring the same login environment as ROOT:

Code:
pascal@Sabayon-Parcellite:~ $ su
Password:
root@Sabayon-Parcellite:~ #
Or


Code:
pascal@Sabayon-Parcellite:~ $ sudo su
Password:
root@Sabayon-Parcellite:~ #
According to the man page the option - provides the same environment as if I had logged in as ROOT, some place I have read that it is preferable to become ROOT that way (su -). When searching for the meaning of the error message I did not hit upon much, except for one thread in the Gentoo forum about a similiar issue explaining that this was due to a compilation error.

Could anyone give me some hints about the nature of the problem and about how I might be able to fix this? It is not a serious issue, everything works as I said, but still I find it somewhat annoying.
Thanks for your help
 
Old 09-29-2013, 01:35 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Sounds like you're sourcing an environment script, take a look in all the usual places:

/root/.bashrc
/root/.bash_profile
/etc/profile.d/*

One of them should have a reference to 'gdnc'
 
Old 09-30-2013, 04:54 AM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Original Poster
Rep: Reputation: 1
Thanks for the quick response,

there is no reference to 'gdnc' in either /root/.bash_profile or /root/.bashrc but some scripts in /etc/profile.d/ contain that.

I did:

Code:
grep -R 'gdnc' ./
./gnustep-4.csh:        if ( -x $GNUSTEP_SYSTEM_TOOLS/gdnc ) then
./gnustep-4.csh:                $GNUSTEP_SYSTEM_TOOLS/gdnc
./gnustep-4.sh:if [ -x ${GNUSTEP_SYSTEM_TOOLS}/gdnc ]; then
./gnustep-4.sh:    ${GNUSTEP_SYSTEM_TOOLS}/gdnc
You can find the contents of gnustep-4.csh and gnustep-4.sh under the following links, I put them on Pastebin:

http://pastebin.com/LhYAxavv

http://pastebin.com/4GDi3Zby

What can I do? Am I supposed to put a reference to gdnc into /root/.bashrc or /root/.bash_profile? Thanks for your help
 
Old 09-30-2013, 07:18 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,142
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
The real problem is not the call to gdnc, but that you are missing a dependency for gdnc. I don't know for Sabayon/Gentoo, but on Slackware libobjc is part of the gcc-objc package, look if you can find a similar package on your system or if you are able to install it.

Also, if this is a fresh default install of Sabayon, without any additions or removals of software, you should file a bug report for this problem.

Last edited by TobiSGD; 09-30-2013 at 07:19 AM.
 
1 members found this post helpful.
Old 09-30-2013, 10:17 AM   #5
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Original Poster
Rep: Reputation: 1
Thanks for your hint Tobi,


well there is no package gcc-objc in the Sabayon repositories, I have all gcc-related packages installed. That would leave me with compiling it the Gentoo way, which is a fallback option with this distribution.

I find it somewhat weird though, that on my desktop, where Sabayon is also installed, I do not get this error message. Here on my notebook this is not a pristine fresh install, I have added quite some stuff since initial install, so the problem could lie here.

I will ask the guys on the Sabayon forum another time about this problem and will mention the point you made about the missing libobjc.

For the time being I will use su instead of su -.

So far that has worked for me quite fine, except that I still find myself in the user HOME directory.

Anyway thanks for your help
 
Old 09-30-2013, 11:20 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,142
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
Just had a short look at the Sabayon entropy store for libobjc (which seems to be part of the package gnustep-base/libobjc2) and it got a version update at 2013-09-27, so I would at first try to make a full system update and look if the problem is still there after that.
 
Old 10-01-2013, 12:03 PM   #7
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Original Poster
Rep: Reputation: 1
I feel somewhat ashamed that you do the work I should do.

Well, my system is up-to-date, but the package gnustep-base/libobjc2 is not in the Sabayon repository, but needs to be compiled via Portage. As I said on another Sabayon desktop system I have no such problem. This problem only occured after some updating and installing of packages, so I guess that during these processes some other package messed around with libobjc.
 
  


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
Problems while switching to root user dinakumar12 Linux - Server 8 08-29-2011 05:55 AM
root user login error message jpmaxyusuf Linux - Desktop 1 06-01-2011 12:11 AM
switching between user and root without logging out redhat_marsi Linux - Newbie 7 06-13-2005 10:38 AM
error message: user <username> does exist, using root feetyouwell Linux - Software 3 01-10-2004 01:40 PM
Switching between root and user PapaNoHair Slackware 14 07-28-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 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