Subject: bin/9504: LD uses static libs for a dynamic program.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <erh@nimenees.com>
List: netbsd-bugs
Date: 02/28/2000 17:42:34
>Number:         9504
>Category:       bin
>Synopsis:       LD uses static libs for a dynamic program.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 28 17:42:00 2000
>Last-Modified:
>Originator:     Eric Haszlakiewicz
>Organization:
>Release:        Feb. 26 2000
>Environment:
	NetBSD/Alpha
>Description:
	ld on a current NetBSD/Alpha machine tried to use libfoo.a
even when not creating a static binary.  I ran into this while trying
to build objdump which links against libbfd.  An old libbfd.a existed
and ld tried using it and couldn't find some symbols which were in the
newer libbfd.so.3.
>How-To-Repeat:
	rm /usr/lib/libbfd.a
	touch /usr/lib/libbfd.a
	cd /usr/src/gnu/usr.bin/binutils/objdump
	make cleandir && make depend && make all

	This should result in a "file not recognized: File truncated" error.
>Fix:
>Audit-Trail:
>Unformatted: