Bug 13766

Summary: ldconfig doesn't recognize symbolic links to libraries
Product: Base System Reporter: nsayer <nsayer>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description nsayer freebsd_committer freebsd_triage 1999-09-15 20:10:01 UTC
After upgrading a machine to -current, I did an ls -alt /usr/lib and moved
all of the old libraries to /usr/lib/compat.

I compared the resulting /usr/lib/compat to the compat3x distribution.
There were quite a few more files, but all of them were older version
numbers of libraries already in /usr/lib. In particular, libtermcap.so.2
was there, but /usr/lib/libtermcap.so.5 is a symlink to libncurses.5.

So I deleted the libraries in compat that were not in the compat3x dist.

At that point, several installed programs broke, complaining that
libtermcap.so.2 was not found.

ldconfig -r does NOT find libtermcap.so at all, despite the fact that
md5 /usr/lib/libtermcap.so and /usr/lib/libncurses.so.5 return the
same value.

How-To-Repeat: 
On a -current machine, ldconfig -r will not show libtermcap unless
you have an old copy lying about.
Comment 1 nsayer freebsd_committer freebsd_triage 2000-03-24 16:10:51 UTC
State Changed
From-To: open->closed

Pass me the pointy hat.