LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-12-2007, 06:47 AM   #1
girish_hilage
Member
 
Registered: Oct 2003
Posts: 78

Rep: Reputation: 15
libc problem on solaris


Hi,
While executing my application I am getting the error:
ld.so.1: testapp: fatal: libc.so.1: version 'SUNW_1.22' not found (required by file testapp)
ld.so.1: testapp: libc.so.1: open failed: No such file or directory.

I suppose it requires version of libc newer than which is on my system. But, how do I know which version it requires?
I copied the executable from some other system.

Also, by mistake I renamed libc.so to some other name and now no command is working now. Is there any way you can think of renaming it back to the original name?

Regards,
Girish
 
Old 03-12-2007, 07:12 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by girish_hilage
Hi,
While executing my application I am getting the error:
ld.so.1: testapp: fatal: libc.so.1: version 'SUNW_1.22' not found (required by file testapp)
ld.so.1: testapp: libc.so.1: open failed: No such file or directory.

I suppose it requires version of libc newer than which is on my system.
Correct.
Quote:
But, how do I know which version it requires?
ldd -v binary
Quote:
I copied the executable from some other system
This won't work. The C library is tight to the O/S. Compatibility is guaranteed to work, but only if a newer library is found.
Quote:
Also, by mistake I renamed libc.so to some other name and now no command is working now. Is there any way you can think of renaming it back to the original name?
Boot on a CD or DVD and rename back libc.

Last edited by jlliagre; 03-12-2007 at 07:14 AM.
 
Old 03-12-2007, 07:48 AM   #3
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Interesting. I get the exact same error message when trying to run the "usermod" command, but everything else works fine... Is there some sort of libc patch available? Doesn't make sense that a command that comes with the OS isn't compatible with the OS!
 
Old 03-12-2007, 09:35 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
So what O/S version are your running ?
Code:
cat /etc/release
Check what libraries your binary is requesting like this (that one is better than the previously suggested ldd):
Code:
pvs /usr/sbin/usermod
Check what the installed libc offer:
Code:
pvs /usr/lib/libc.so.1
 
Old 03-13-2007, 07:48 AM   #5
girish_hilage
Member
 
Registered: Oct 2003
Posts: 78

Original Poster
Rep: Reputation: 15
"Boot on a CD or DVD and rename back libc."

But, "mv" command itself wont work even after I boot on a CD.
 
Old 03-13-2007, 08:33 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by girish_hilage
"Boot on a CD or DVD and rename back libc."

But, "mv" command itself wont work even after I boot on a CD.
Why won't it ?
The point in booting on a CD is to have a working O/S available. A Boot CD is technically a live distro so all commands available on the CD are expected to work.
Please elaborate if you experiented differently.
 
Old 03-13-2007, 10:28 AM   #7
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
So what O/S version are your running ?
Code:
cat /etc/release
Check what libraries your binary is requesting like this (that one is better than the previously suggested ldd):
Code:
pvs /usr/sbin/usermod
Check what the installed libc offer:
Code:
pvs /usr/lib/libc.so.1
bash-3.00$ cat /etc/release
Solaris 10 1/06 s10x_u1wos_19a X86
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 December 2005

bash-3.00$ pvs /usr/sbin/usermod
libsecdb.so.1 (SUNW_1.1);
libproject.so.1 (SUNW_1.1);
libtsol.so.2 (SUNW_2.1);
libc.so.1 (SUNW_1.22.2, SUNWprivate_1.1);

bash-3.00$ pvs /usr/lib/libc.so.1
libc.so.1;
SUNW_1.22.1;
SUNW_1.22;
SUNW_1.21.3;
SUNW_1.21.2;
SUNW_1.21.1;
SUNW_1.21;
SUNW_1.20.4;
SUNW_1.20.1;
SUNW_1.20;
SUNW_1.19;
SUNW_1.18.1;
SUNW_1.18;
SUNW_1.17;
SUNW_1.16;
SUNW_1.15;
SUNW_1.14;
SUNW_1.13;
SUNW_1.12;
SUNW_1.11;
SUNW_1.10;
SUNW_1.9;
SUNW_1.8;
SUNW_1.7;
SUNW_1.6;
SUNW_1.5;
SUNW_1.4;
SUNW_1.3;
SUNW_1.2;
SUNW_1.1;
SUNW_0.9;
SUNW_0.8;
SUNW_0.7;
SYSVABI_1.3;
SUNWprivate_1.1;

Well, that explains the immediate "why" of the error message... However, it doesn't explain how things ended up this way to begin with! Interesting...
 
Old 03-13-2007, 11:04 AM   #8
girish_hilage
Member
 
Registered: Oct 2003
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre
Why won't it ?
The point in booting on a CD is to have a working O/S available. A Boot CD is technically a live distro so all commands available on the CD are expected to work.
Please elaborate if you experiented differently.
Yes. I tried it by using bootable CD but "mv" command itself was asking for libc.
 
Old 03-13-2007, 11:22 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Dox Systems - Brian
bash-3.00$ pvs /usr/sbin/usermod
...
libc.so.1 (SUNW_1.22.2, SUNWprivate_1.1);

bash-3.00$ pvs /usr/lib/libc.so.1
libc.so.1;
SUNW_1.22.1;
SUNW_1.22;
...
Well, that explains the immediate "why" of the error message... However, it doesn't explain how things ended up this way to begin with! Interesting...
Okay, that's a known issue due to a discrepancy in 120051-03 or 120051-04.
It is fixed with this patch: 120051-05.
 
Old 03-21-2007, 09:53 AM   #10
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
Okay, that's a known issue due to a discrepancy in 120051-03 or 120051-04.
It is fixed with this patch: 120051-05.
Ugh. It appears that useradd is also broken by this flaw, and I now have a new user to add! 120051-05 requires that 118855-25 (or newer) be installed. Reading the horror stories on SunSolve makes me very afraid to even attempt the 118855 patch (despite having a successful install on a test box)! Any other workarounds for adding users?
 
Old 03-21-2007, 10:39 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can use smc to create a user account, or you can simply edit /etc/passwd, run pwconv, set a password and create/chown the home directory.
 
Old 03-22-2007, 09:51 AM   #12
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
You can use smc to create a user account, or you can simply edit /etc/passwd, run pwconv, set a password and create/chown the home directory.
I may have to edit /etc/passwd then. SMC is also broken (most likely due to some patch awhile back).
 
  


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
always problem in installing libc.so.6 pxy20 Linux - Newbie 11 11-27-2007 01:47 AM
Problem with libc.6.so CmdrChopper Linux - Newbie 1 10-24-2004 06:55 PM
libc problem thrix Programming 1 02-01-2004 09:53 AM
problem with library libc.so.6 infra Linux - Software 2 10-25-2003 11:25 PM
libc.so.6 problem ih8linux Linux - Software 11 04-21-2003 02:08 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:10 AM.

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