Re: DTrace/FreeBSD source snapshot

From: Andrew Pogrebennyk <marduk_at_portaone.com>
Date: Sat, 02 Feb 2008 15:28:43 +0200
Could you help me solve this problem during "make kernel" on i386?

cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -DDIS_MEM -DSMP 
-DDEBUG  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc 
-I/usr/src/sys/modules/dtrace/dtrace/../../../compat/opensolaris 
-I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace 
-I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386 
-I/usr/src/sys/modules/dtrace/dtrace/../../../contrib/opensolaris/uts/common 
-I/usr/src/sys/modules/dtrace/dtrace/../../.. 
-DHAVE_KERNEL_OPTION_HEADERS -include 
/usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I_at_ -I_at_/contrib/altq 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fno-common -g -I/usr/obj/usr/src/sys/GENERIC 
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -Wno-unknown-pragmas -c 
/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386/dtrace_subr.c
/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386/dtrace_subr.c: 
In function 'dtrace_trap':
/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386/dtrace_subr.c:448: 
error: dereferencing pointer to incomplete type
/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386/dtrace_subr.c:448: 
error: dereferencing pointer to incomplete type
/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386/dtrace_subr.c:460: 
error: dereferencing pointer to incomplete type
/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/i386/dtrace_subr.c:460: 
error: dereferencing pointer to incomplete type
*** Error code 1

In these lines we are trying to case pointer to struct trapframe to 
pointer to u_char like:
frame->tf_eip += dtrace_instr_size((u_char *) frame->tf_eip);
What do i do to get it to work?

-- 
Sincerely,
Andrew Pogrebennyk
Received on Sat Feb 02 2008 - 12:28:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:26 UTC