LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-25-2004, 02:44 PM   #1
nowhere
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
HELP ! Where to find libcwait.so ?


Hi !

A patch I tried to install on Fedora (Core 1) erased the /etc/libcwait.so file.
Since then I can't run no binaries any more - at all. Rebooting results into kernel panic. Nice !

I corrected the error in the patch - gcc was not reachable - using the "linux rescue" feature of the boot cdrom. Problem is now that I can't have it recompiled because it looks for libraries into the /usr/lib directory. Which are not there in linux rescue because it is mounted as /mnt/sysimage/usr/lib. ld always comes up that it doesn't find "/usr/lib/libc_nonshared.a". Adding the /mnt/sysimage/usr/lib directory to the LD_LIBRARY_PATH variable has the same result.

Trying with chroot /mnt/sysimage doesn't work either ... because /etc/libcwait.so is missing !

So, before reinstalling Fedora completely for this one single missing file, I'm trying to find a copy of this file to put it there during rescue mode and reboot with it.

Is there somebody here who can help me with or recompiling this file or finding a copy somewhere ? Any clue and help is more then welcome ! Thanks !

Kind Regards,

Jan.
 
Old 02-27-2004, 02:57 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Something is ODD here, I've googled for a half hour now, and everything I've read....including this post @ LQ.............
http://www.linuxquestions.org/questi...336#post656336

says that the file your missing is located in /lib or /usr/lib..............

Last edited by 320mb; 02-27-2004 at 03:11 PM.
 
Old 03-03-2004, 10:19 AM   #3
nowhere
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I finally made it work. In fact there was a file "ld.library.so" - or something like that - that was referencing to libcwait.so. Removing this file solved the problem.

So simple it was ...
 
Old 06-22-2004, 01:50 AM   #4
rammya
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Hi,

I am also having the same problem - a patch I installed led to kernel panic and I cannot load any libraries.
I get "error while loading shared libraries : /etc/libcwait.so : cannot open shared object file..."

Where can I find the ld.library.so file?

And one more question, why is this error happening? Is the patch linking some files wrongly?

Regards,
Rammya
 
Old 02-09-2006, 10:23 AM   #5
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi all,

I know that it's a bit too late but I reply to this post for thos who stuck again.

I have encoutered the same problem in a RHES 3 with Oracle 9i. After an electrical break down, I can't have this box boot again. It was complaining about a </usr/lib/libcwait.so>.
So I boot with "linux rescue", chroot /mnt/sysimage and I find that this library was corrupt. Instead of 4431 octets, it was 4438.
I pick up a new one in another box and reboot and it's work fine now.

Cheers
 
Old 09-29-2008, 08:54 AM   #6
dudulives
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Lightbulb

hello all,

I had the same issue last week (kernel panick! libcwait.so file missing or something like that!) on RHES V3. If I understood the early warning sign ("relocation error: GLIBC_2.0 not defined......." error when trying to use the Oracle report engine "runrep" command) after restoring production data on a test server, the issue would have been resolved a lot quicker - using scenario 1 below.

In my case, the program i was trying to execute "runrep" called /etc/ld.so.preload using glibc(see more about the ld.so files here). ld.so.preload in turn pointed to /etc/libcwait.so. The libcwait.so file was missing hence the issue.

It can be fundamentally resolved within the scope of two scenarios.

1. Scenario one - if detected before a shutdown/reboot (i.e with the relocation error) then recompile another libcwait.so file (instructions here) OR copy the libcwait.so file from another server (assumption is that there is a replicated environment) and paste in /etc/.

2. Scenario two - if in the event you reboot and have the "kernel panick" issue (which I had) then reboot in rescue mode (using the RH cd). Most likely, if you try 'chroot /mnt/sysimage', it would not work as the libcwait.so file is not in /mnt/sysimage/etc/ directory. Get the libcwait.so file from another node (or recompile as indicated in scenario 1) and drop in /mnt/sysimage/ which is actually the root directory of the OS (if it were not in rescue mode). Then edit the pointer in /mnt/sysimage/ld.so.preload from /etc/libcwait.so to /mnt/sysimage/libcwait.so. Now do 'chroot /mnt/sysimage' IT SHOULD WORK if the issue is with the link in the ld.so.preload file. Now place the libcwait.so in /etc/ and reboot. VOILA!!!

Cheers.

Olayemi

Last edited by dudulives; 09-29-2008 at 09:01 AM.
 
  


Reply

Tags
error, glibc, kernel



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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 12:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 08:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 07:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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