Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Feb 2008 15:28:43 +0200
From:      Andrew Pogrebennyk <marduk@portaone.com>
To:        John Birrell <jb@what-creek.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: DTrace/FreeBSD source snapshot
Message-ID:  <47A4700B.3000001@portaone.com>
In-Reply-To: <20080201223719.GA88460@what-creek.com>
References:  <20080201093538.GA83169@what-creek.com>	<18339.35979.765504.132672@grasshopper.cs.duke.edu> <20080201223719.GA88460@what-creek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@ -I@/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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A4700B.3000001>