Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: crash build problem

In article <>,
Patrick Welche  <> wrote:
>Building -current/i386 stops in
>#   compile  crash/db_trace.o
>-O2 -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
>-Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings
>-Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra
>-Wno-unused-parameter -Wsign-compare -std=gnu99  -Werror
>"-march=pentium4"  -I/usr/src/usr.sbin/crash
>-I/usr/src/usr.sbin/crash/obj.i386 -I/usr/src/usr.sbin/crash/../../sys
>-fno-strict-aliasing -DDDB_VERBOSE_HELP -DDB_MAX_LINE=10000000
>-D_KMEMUSER -nostdinc -isystem /usr/include   -c   
>cc1: warnings being treated as errors
>/usr/src/usr.sbin/crash/../../sys/arch/i386/i386/db_trace.c: In function
>warning: implicit declaration of function 'lwp_getpcb'
>warning: assignment makes pointer from integer without a cast
>*** Error code 1
>I tried
>Index: db_trace.c
>RCS file: /cvsroot/src/sys/arch/i386/i386/db_trace.c,v
>retrieving revision 1.64
>diff -u -r1.64 db_trace.c
>--- db_trace.c  21 Nov 2009 03:11:00 -0000      1.64
>+++ db_trace.c  21 Nov 2009 16:31:49 -0000
>@@ -33,6 +33,7 @@
> #include <sys/systm.h>
> #include <sys/proc.h>
> #include <sys/intr.h> 
>+#include <sys/lwp.h>
> #include <sys/cpu.h> 
> #include <machine/db_machdep.h>
>as lwp_getpcb is defined there, but no change?! Now I'm mistified: explicit
>addition of the header didn't seem to get rid of the "implicit declaration"
>What have I missed?

Kernel only function?


Home | Main Index | Thread Index | Old Index