Subject: Re: -current build error
To: Chavdar Ivanov <ci4ic4@gmail.com>
From: Andrew Doran <ad@netbsd.org>
List: current-users
Date: 03/13/2007 16:02:09
Hi,

> #   compile  humanize_number/hntest.o
> /f/tools/bin/i386--netbsdelf-gcc -O2   -Werror    -nostdinc -isystem
> /e/dest/usr/include  -c
> /usr/src/regress/lib/libc/gen/humanize_number/hntest.call-sys ---
> --- dependall-kern ---
> /usr/src/sys/kern/subr_extent.c:99:1: error: "simple_lock_init" redefined
> In file included from /e/dest/usr/include/sys/lock.h:87,
>                  from /e/dest/usr/include/sys/pool.h:52,
>                  from /usr/src/sys/kern/subr_extent.c:66:
> /e/dest/usr/include/sys/simplelock.h:175:1: error: this is the
> location of the previous definition
> /usr/src/sys/kern/subr_extent.c:101:1: error: "simple_lock" redefined
> /e/dest/usr/include/sys/simplelock.h:176:1: error: this is the
> location of the previous definition
> /usr/src/sys/kern/subr_extent.c:103:1: error: "simple_unlock" redefined
> /e/dest/usr/include/sys/simplelock.h:177:1: error: this is the
> location of the previous definition
> ...
>
> I've had it three times today; the last after removing all traces of a
> previous build, cvs update and make cleandir.
>
> Chavdar

Took a while but I finally figured it out :-). It's fixed by these
revisions:

sys/kern/kern_extent.c  1.65
sys/sys/simplelock.h    1.3

Cheers,
Andrew