Subject: Re: Linker bug of the day?
To: Simon Burge <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
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
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 email@example.com; Bus. firstname.lastname@example.org)