From nsayer@medusa.kfu.com Wed Sep 15 12:06:54 1999
Return-Path: <nsayer@medusa.kfu.com>
Received: from quack.kfu.com (quack.kfu.com [170.1.70.2])
	by hub.freebsd.org (Postfix) with ESMTP id 061BF15031
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Sep 1999 12:06:53 -0700 (PDT)
	(envelope-from nsayer@medusa.kfu.com)
Received: from medusa.kfu.com (medusa.kfu.com [170.1.70.5])
	by quack.kfu.com (8.9.2/8.8.5) with ESMTP id MAA05405
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Sep 1999 12:06:53 -0700 (PDT)
Received: (from nsayer@localhost)
	by medusa.kfu.com (8.9.3/8.8.8) id MAA75521;
	Wed, 15 Sep 1999 12:06:53 -0700 (PDT)
	(envelope-from nsayer)
Message-Id: <199909151906.MAA75521@medusa.kfu.com>
Date: Wed, 15 Sep 1999 12:06:53 -0700 (PDT)
From: nsayer@freebsd.org
Sender: nsayer@medusa.kfu.com
Reply-To: nsayer@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: ldconfig doesn't recognize symbolic links to libraries
X-Send-Pr-Version: 3.2

>Number:         13766
>Category:       bin
>Synopsis:       ldconfig doesn't recognize symbolic links to libraries
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 12:10:01 PDT 1999
>Closed-Date:    Fri Mar 24 08:10:51 PST 2000
>Last-Modified:  Fri Mar 24 08:11:10 PST 2000
>Originator:     Nick Sayer
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Just me
>Environment:

Post upgrade of 3.x system to 4.0-CURRENT os of 9/14

>Description:

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.

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nsayer 
State-Changed-When: Fri Mar 24 08:10:51 PST 2000 
State-Changed-Why:  
Pass me the pointy hat. 
>Unformatted:
