Subject: Re: Linker bug of the day?
To: Simon Burge <simonb@netbsd.org>
From: Todd Vierling <tv@pobox.com>
List: port-mips
Date: 04/27/1999 09:11:52
On Tue, 27 Apr 1999, Simon Burge wrote:

: Shouldn't everything already be resolved in the second collect2 command
: line by the second /usr/lib/libc.a, and -lc not be needed?

You provided -lc, so a third-level recursion may go there before looping
back to the first libc.a.  So yes, it's perfectly legal for the linker to
use the shared object as part of the linking.

Now, why you are getting the warnings I'm not sure, as you said that your
libc.a is a half hour older than libc.so (!?  Shouldn't that be at most a
couple minutes?  At "make install" time, they are installed one after
the other)....

It's possible here that you are running into a problem with static data
allocation (some of it is in the shared object, some linked with the
program, with the same symbol names).

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)