Re: /usr/bin/ld: error: undefined symbol: main [r337834 -> r337903]

From: Larry Rosenman <ler_at_lerctr.org>
Date: Thu, 16 Aug 2018 11:53:37 -0500
On Thu, Aug 16, 2018 at 12:43:42PM -0400, Charlie Li wrote:
> On 16/08/2018 12:26, Brad Davis wrote:
> > On Thu, Aug 16, 2018, at 10:13 AM, Xin LI wrote:
> >> This was caused by r337852, but I didn't investigated further.
> >>
> >> The problem is that we have a source file called 'moduli.c' in
> >> crypto/openssh/ while the build target was moduli, and bmake seen
> >> 'moduli' in source tree as older than moduli.c, and decided to rebuild
> >> it from source, while the two files are unrelated.
> > 
> > Hi Xin,
> > 
> > I don't see how that could be the case as I didn't move the file around, I just moved how it gets installed.
> > 
> > I have done many many builds with this change in and haven't seen this problem..
> > 
> I've found this one intermittent at best. I'll run a buildworld on
> anything newer than r337852, get the linker error, update to even the
> next newer revision that changes completely unrelated files, build
> succeeds. Case in point, r337835 to r337863 failed, but r337863 to
> r337865 succeeded.
> 
> This is all with META_MODE, so could be a bug with that.
I've seen the same thing with meta-mode.  A svn up after the failure
restores the missing moduli file, and a re-run will succeed.

borg.lerctr.org /usr/src $ sudo svn up
Updating '.':
Restored 'crypto/openssh/moduli'
At revision 337914.
borg.lerctr.org /usr/src $


> 
> -- 
> Charlie Li
> Can't think of a witty .sigline today…
> 
> (This email address is for mailing list use only; replace local-part
> with vishwin for off-list communication)
> 




-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_lerctr.org
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

Received on Thu Aug 16 2018 - 14:53:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC