[OpenAFS-devel] Compilation error on FreeBSD 9.0 buildslave

Marc Dionne marc.c.dionne@gmail.com
Fri, 26 Oct 2012 12:20:23 -0400


On Fri, Oct 26, 2012 at 3:45 AM, Simon Wilkinson
<simonxwilkinson@gmail.com> wrote:
>
>> I don't have time to investigate a fix for this, but it's caused by
>> having two distinct declarations for the same uninitialized data
>> object, which FreeBSD does not allow in kernel code.  If someone else
>> can propose a fix, poke me through Gerrit and I'll review.
>
> With eca07c108cc61fc9a6da720848e1beb78833f670, neither rx_incomingCallQueue or rx_idleServerQueue are defined in rx_globals.h. In fact, the only reference to rx_incomingCallQueue in the tree is in rx.c.
>
> I'm somewhat puzzled by this build failure, unless the FreeBSD builder isn't cleaning its tree properly between builds?

That would be my guess.  Looking at the buildbot log, neither rx.o or
rx_globals.o are rebuilt during the failed build.  So we probably have
an rx_globals.o that dates from before that change, while rx.o was
rebuilt after the change.

The kernel makefiles dont't have very detailed dependencies, so they
don't catch that rx_globals.o needs to be rebuilt in this case because
of the cahnge in rx_globals.h.

Marc