DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd July 2009
magic magic is offline
New User
 
Join Date: Jul 2009
Posts: 3
Thanked 0 Times in 0 Posts
Exclamation Shared object not found 'libwrap.so.4'

Hello all,
I come begging for help as my freebsd 6.2 server has just crashed on me. It seems it had restarted itself around 9am today, and came back with 'unexpected soft update inconsistency' which I fixed by running fsck. It's now back up and running. However both sshd and inetd are both not working due to the following error:
/libexec/ld-elf.so.1: Shared object "libwrap.so.4" not found, required by "sshd"
and the same is said about "inetd"

locate libwrap shows it in /usr/lib. However I looked in that directory and it is not listed just the link libwrap.so -> libwrap.so.4

What is the easiest way to restore this file?

I appreciate any help anyone can offer.
Thanks,
Jay
Reply With Quote
  #2   (View Single Post)  
Old 22nd July 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

Quote:
locate libwrap shows it in /usr/lib.
Don't use locate(1) for this sort of thing, locate uses a database which is rebuild once a week (By default).
Use find(1) instead.

You can try if there is anything useful in the /usr/lost+found/ directory, the filename is probably garbled, check it's libwrap by using # objdump -x asfafasdf | grep SONAME.

If you can't find the file, you will need to reinstall it, from source:

Code:
cd /usr/src/lib/libwrap
cp libwrap.so.4 /usr/lib/
Or download the FreeBSD base distribution set, extract it, and get the libwrap.so.4 from that.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 22nd July 2009
magic magic is offline
New User
 
Join Date: Jul 2009
Posts: 3
Thanked 0 Times in 0 Posts
Default

Thank you so much! It seems I'm back up and running, but still with a few hicups.

find was not able to find the file, and also it was not located in /usr/src/lib/libwrap. I used sysinstall to install all the src packages thinking this would place the file there. However it did not. Then I thought I would try to install Distributions->Base. And that seemed to do the trick. It did however overwrite /etc/passwd, master.passwd and groups. I'm worried about what else it could have done. =/ Will have to check around.

Thanks again for your help!
Reply With Quote
  #4   (View Single Post)  
Old 22nd July 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

Quote:
It did however overwrite /etc/passwd, master.passwd and groups. I'm worried about what else it could have done.
It overwrote many files in /etc/ ... do and ls /etc/ and carefully inspect each file you modified to prevent suprises.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delphi or Object Pascal In OpenBSD? SunSpyda Programming 14 28th November 2009 11:21 AM
I386 ELF32 binary on AMD64 system can't find shared libraries Gemini FreeBSD General 0 9th December 2008 06:49 AM
shared libraries and linux emulation Business_woman FreeBSD General 4 16th November 2008 10:03 AM
link: `libtheora_la-common.lo' is not a valid libtool object error during compilation pax FreeBSD Ports and Packages 2 29th July 2008 11:30 AM
What include and shared library directories are searched by gcc kasse FreeBSD General 3 16th July 2008 08:44 PM


All times are GMT. The time now is 10:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick