Date: Sat, 26 Nov 2016 08:46:07 +0100 From: "O. Hartmann" <ohartmann@walstatt.org> To: David Wolfskill <david@catwhisker.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: r309145: mutex.h:369:5: error: 'LOCK_DEBUG' is not defined Message-ID: <20161126084607.1c8ced25@thor.walstatt.dynvpn.de> In-Reply-To: <20161125164051.GS22600@albert.catwhisker.org> References: <20161125173451.3edcfcfe@thor.walstatt.dynvpn.de> <20161125164051.GS22600@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/XRfVUX21H/u2UaVJoLZnFrs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Fri, 25 Nov 2016 08:40:51 -0800 David Wolfskill <david@catwhisker.org> schrieb: > On Fri, Nov 25, 2016 at 05:34:51PM +0100, O. Hartmann wrote: > > Recent sources do not build kernel due to: > >=20 > > [...] > > 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, eva= luates to 0 > > [-Werror,-Wundef] #if LOCK_DEBUG > 0 || defined(MUTEX_NOINLINE) > > ^ > > 2 errors generated. > > *** Error code 1 > >=20 > >=20 [...] I blindly followed the advice of the compiler error spit out and included = the line #include <sys/lock.h> before=20 #include <sys/mutex.h> and siehe da!, it worked and I can compile the kernel again (I have IPSEC e= nabled in my kernel config files on all systems). Kind regards, Oliver --Sig_/XRfVUX21H/u2UaVJoLZnFrs Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWDk9vwAKCRDS528fyFhY lORSAgCmInqyL9DZ/iHZ55rxeOUS0VCFfUcA22KSu1Uu+MI/G504LcsZmIB1YxHH bsBIsk6kPAk0hBRIPdCymf+ixi4hAgCD2+R/vOQ1qAW6usa9h7atidnupr2j3dRV MclVZY2EBe9Hl3XhVhf2e3XHq909sCdHkdf5yeFruCsN84B7ABVM =LeZr -----END PGP SIGNATURE----- --Sig_/XRfVUX21H/u2UaVJoLZnFrs--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161126084607.1c8ced25>