Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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?
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!
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.