Am Fri, 25 Nov 2016 08:40:51 -0800
David Wolfskill <da...@catwhisker.org> schrieb:

> On Fri, Nov 25, 2016 at 05:34:51PM +0100, O. Hartmann wrote:
> > Recent sources do not build kernel due to:
> > 
> > [...]
> > Building /usr/obj/usr/src/sys/SB21X1/ipsec_mbuf.o
> > In file included from /usr/src/sys/netipsec/ipsec_mbuf.c:43:
> > In file included from /usr/src/sys/netipsec/ipsec.h:46:
> > In file included from /usr/src/sys/netipsec/keydb.h:38:
> > /usr/src/sys/sys/mutex.h:367:2: error: LOCK_DEBUG not defined, include 
> > <sys/lock.h>
> > before <sys/mutex.h> #error LOCK_DEBUG not defined, include <sys/lock.h> 
> > before
> > <sys/mutex.h> ^
> > /usr/src/sys/sys/mutex.h:369:5: error: 'LOCK_DEBUG' is not defined, 
> > evaluates to 0
> > [-Werror,-Wundef] #if LOCK_DEBUG > 0 || defined(MUTEX_NOINLINE)
> >     ^
> > 2 errors generated.
> > *** Error code 1
> > 
> > 
[...]

I blindly followed the advice of the compiler error spit out and  included the 
line

#include <sys/lock.h>

before 

#include <sys/mutex.h>

and siehe da!, it worked and I can compile the kernel again (I have IPSEC 
enabled in my
kernel config files on all systems).

Kind regards,

Oliver

Attachment: pgpeIGPWspQez.pgp
Description: OpenPGP digital signature

Reply via email to