SVN r350713 breaks non-debug kernel builds

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SVN r350713 breaks non-debug kernel builds

Michael Butler
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


_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: SVN r350713 breaks non-debug kernel builds

Conrad Meyer-2
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
<[hidden email]> 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
>
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"