SVN r350713 breaks non-debug kernel builds

Conrad Meyer cem at freebsd.org
Thu Aug 8 01:33:56 UTC 2019


Thanks for the report Michael, and sorry about the breakage.  I
believe this patch should fix the build, and I am testing it now:

--- sys/kern/kern_sysctl.c      (revision 350714)
+++ sys/kern/kern_sysctl.c      (working copy)
@@ -55,6 +55,7 @@
 #include <sys/priv.h>
 #include <sys/proc.h>
 #include <sys/jail.h>
+#include <sys/kdb.h>
 #include <sys/lock.h>
 #include <sys/mutex.h>
 #include <sys/rmlock.h>
@@ -67,7 +68,6 @@
 #endif

 #ifdef DDB
-#include <sys/kdb.h>
 #include <ddb/ddb.h>
 #include <ddb/db_lex.h>
 #endif

On Wed, Aug 7, 2019 at 6:23 PM Michael Butler
<imb at protected-networks.net> wrote:
>
> As follows ..
>
> --- kern_sysctl.o ---
> /usr/src/sys/kern/kern_sysctl.c:1623:19: error: use of undeclared
> identifier 'kdb_active'
>         if (arg2 == 0 || kdb_active) {
>                          ^
> 1 error generated.
> *** [kern_sysctl.o] Error code 1
>
>         imb
>
>


More information about the freebsd-current mailing list