[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared libs stopped working?



Hi,
Marcus Bointon wrote,

> I'm running 3.1-stable on i386.
> 
> Just about anything I run that uses a shared library has recently given up
> working, giving errors like this (e.g., running nano):
> 
> /usr/libexec/ld.so: nano: libintl.so.1.1: No such file or directory
> 
> Just about all my libraries are in /usr/local/lib (I have not touched or
> moved anything from defaults), and there are no library directories listed
> in my PATH (seems normal I think?). There doesn't seem to be a
> /etc/ld.so.conf by default for OpenBSD, and ldconfig doesn't improve
> matters. In this example, /usr/local/lib/libintl.so.1.1 does exist.
> 
> Only thing I can think of is that I recently specified compiler flags for a
> non-ports package that needed to point explicitly to the libraries
> directory. However, I don't see why that should affect running other
> programs.
> 
> Can someone please tell me where to check so the system can find my
> libraries again?

ldconfig behaves different to the Linux ldconfig.
man ldconfig

Use ldconfig -r to show the hints file in readable form.

Probably your /var/run/ld.so.hints is corrupted or missing.
Recreate it with ldconfig.

bye
  Waldemar

-- 
8485 D0CE 2743 656E 867C  5C93 0317 AFD8 BE21 BD90