Problem compiling graid5

Henrik Bergkvist henrik at mdfnet.se
Wed Nov 7 09:52:09 PST 2007


Hi.

I have some problems compiling geom_raid5. I get the this error:

[root at internet /usr/src/sys/modules/geom/geom_raid5]# make
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 
-nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000 -fno-common  
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -c 
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c: In 
function 'g_raid5_workerD':
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c:2405: 
error: 'sched_lock' undeclared (first use in this function)
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c:2405: 
error: (Each undeclared identifier is reported only once
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c:2405: 
error: for each function it appears in.)
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c: In 
function 'g_raid5_worker':
/usr/src/sys/modules/geom/geom_raid5/../../../geom/raid5/g_raid5.c:2555: 
error: 'sched_lock' undeclared (first use in this function)
*** Error code 1

Stop in /usr/src/sys/modules/geom/geom_raid5.


I'm using:
[root at internet ~]# uname -a
FreeBSD internet.mds.mdh.se 7.0-BETA2 FreeBSD 7.0-BETA2 #0: Wed Nov  7 
17:25:09 CET 2007     
root at internet.mds.mdh.se:/usr/obj/usr/src/sys/MYKERNEL  amd64

Does anybody know what to do?

Thanks in advance

/Henrik


More information about the freebsd-current mailing list