Subject: lib/6458: checkver in library build process is too agressive about finding libraries in subdirectories
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nathanw@MIT.EDU>
List: netbsd-bugs
Date: 11/18/1998 09:38:28
>Number:         6458
>Category:       lib
>Synopsis:       checkver uses find(1) to find libraries in any directory under the given one.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 18 06:50:00 1998
>Last-Modified:
>Originator:     Nathan J. Williams
>Organization:
Massachvsetts Institvte of Technology
>Release:        NetBSD-current as of 1998/11/17
>Environment:
System: NetBSD road-runner.lcs.mit.edu 1.3H NetBSD 1.3H (ROAD-RUNNER) #149: Tue Nov 17 12:28:10 EST 1998 nathanw@road-runner.lcs.mit.edu:/b/nbsd/src/sys/arch/i386/compile/ROAD-RUNNER i386


>Description:
	My build of libc failed at install time because the check stage, 
using checkver, found a copy of libc.so.13.0 in a subdirectory of /usr/lib. 
I'm not 100% sure what checkver's role in life is really supposed to be, but 
I feel certain that finding libraries in out-of-the-way corners that aren't 
usually referenced by the linker isn't it. 

>How-To-Repeat:
	mkdir /usr/lib/weird; touch /usr/lib/weird/libc.so.13.0
	cd /usr/src/lib/libc; make && make install.
The following libraries have versions greater than the source:
/usr/lib/weird/libc.so.13.0
*** Error code 1

Stop.

>Fix:
	Change checkver to use a non-recursive search for libraries.
>Audit-Trail:
>Unformatted: