Hi folks,

thanks for the replays to my earlier problem. Now I got kernel 2.2.11
and the patch raid0145-19990824-2.2.11. It went well until I tried to
compile the latest raidtools (raidtools-0.41). During the configure it
say's that  I have no Raid definitions in the kernel headers:

configure:789: checking for RAID definitions in kernel headers
configure:798: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:794: `md_superblock_t' undeclared (first use this function)
configure:794: (Each undeclared identifier is reported only once
configure:794: for each function it appears in.)
configure:794: parse error before `tmp'
configure: failed program was:
#line 791 "configure"
#include "confdefs.h"
#include <linux/md.h>
int main() {
md_superblock_t tmp;
; return 0; }

So, I expected that no Raid support was compiled into the kernel but
that is wrong, 'cos I do have a /proc/mdstat.

When I atempt to compile the raidtools I get:

gcc -g -O2 -I/usr/src/linux/include -DMD_VERSION=\""raidtools-0.41"\"  
-c mdadd.c -o mdadd.o
In file included from mdadd.c:18:
common.h:39: parse error before `md_superblock_t'
common.h:39: warning: no semicolon at end of struct or union
common.h:40: `MD_SB_DISKS' undeclared here (not in a function)
common.h:41: `MD_SB_DISKS' undeclared here (not in a function)
common.h:42: `MD_SB_DISKS' undeclared here (not in a function)
common.h:45: parse error before `}'
common.h:45: warning: data definition has no type or storage class
mdadd.c: In function `do_mdadd':
mdadd.c:61: `FLOPPY_MAJOR' undeclared (first use this function)
mdadd.c:61: (Each undeclared identifier is reported only once
mdadd.c:61: for each function it appears in.)
mdadd.c:66: `REGISTER_DEV' undeclared (first use this function)
mdadd.c: In function `do_mdstart':
mdadd.c:78: `START_MD' undeclared (first use this function)
mdadd.c: In function `do_mdstop':
mdadd.c:89: `STOP_MD' undeclared (first use this function)
mdadd.c: In function `main':
mdadd.c:158: `LINEAR' undeclared (first use this function)
mdadd.c:162: `RAID0' undeclared (first use this function)
mdadd.c:166: `RAID1' undeclared (first use this function)
mdadd.c:171: `RAID5' undeclared (first use this function)
mdadd.c:208: `FAULT_SHIFT' undeclared (first use this function)
make: *** [mdadd.o] Error 1

What did I wrong?

Thanks and regards
Kay

P.S. Please cc to me directly.
-- 
--------------------------------------------------------------------
Kay A Salzwedel

Heinz Nixdorf Institute
University of Paderborn
Germany
------------------------------------------
E-Mail:  [EMAIL PROTECTED]
Tel.:    +49-5251-60 64 58
--------------------------------------------------------------------

Reply via email to