Re: SVN r350713 breaks non-debug kernel builds

From: Conrad Meyer <cem_at_freebsd.org>
Date: Wed, 7 Aug 2019 18:33:42 -0700
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)
_at__at_ -55,6 +55,7 _at__at_
 #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>
_at__at_ -67,7 +68,6 _at__at_
 #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
>
>
Received on Wed Aug 07 2019 - 23:33:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC