Problem compiling graid5

From: Henrik Bergkvist <henrik_at_mdfnet.se>
Date: Wed, 07 Nov 2007 18:21:58 +0100
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_at_ -I_at_/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
Received on Wed Nov 07 2007 - 16:52:09 UTC

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