Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2016 17:22:10 +0100
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   CURRENT: kernel fails to compile when "options IPSEC"
Message-ID:  <20161125173451.3edcfcfe@thor.walstatt.dynvpn.de>

next in thread | raw e-mail | index | archive | help
--Sig_/f06qZ8kaCR/WH34RskMA8DT
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Recent sources (309143-309194) 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> be=
fore
<sys/mutex.h> ^
/usr/src/sys/sys/mutex.h:369:5: error: 'LOCK_DEBUG' is not defined, evaluat=
es to 0
[-Werror,-Wundef] #if LOCK_DEBUG > 0 || defined(MUTEX_NOINLINE)
    ^
2 errors generated.
*** Error code 1


This error can be avoided by following the suggestion made, patching sys/ne=
tipsec/keydb.h:

--- sys/netipsec/keydb.h        (revision 309194)
+++ sys/netipsec/keydb.h        (working copy)
@@ -35,6 +35,8 @@
=20
 #ifdef _KERNEL
=20
+#include <sys/lock.h>
+
 #include <sys/mutex.h>
=20
 #include <netipsec/key_var.h>


Can someone please fix this?

I'm not sure whether the include <sys/lock.h> is the correct palce in this =
case or has to
show up earlier in the include-chain.

oh

--Sig_/f06qZ8kaCR/WH34RskMA8DT
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWDm2sgAKCRDS528fyFhY
lAAzAf9Qe0ZZFn0cRXgFsCZqtOS9hQDtaDQfHGfLnAOTehtxr2r38sNz46TZFkQj
Z6GbYp8t+m4mtCZcYbFhO6m7AMd/Af9a1ps+56AwbTx3SRaQBnEwKVVm6bWUIiBY
NfOLy1236DUk6vcA3iD8fQLPU3TkZtUy0TF7VvYpHGApFjvJuSmU
=1q/b
-----END PGP SIGNATURE-----

--Sig_/f06qZ8kaCR/WH34RskMA8DT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161125173451.3edcfcfe>