2002-03-22 19:40:04

by Mike Black

[permalink] [raw]
Subject: 2.5.7 compile error

With raid5 as a module:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.7/include -Wall -Wstrict-prototypes -W
no-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasi
ng -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DKB
UILD_BASENAME=raid5 -c -o raid5.o raid5.c
In file included from raid5.c:23:
/usr/src/linux-2.5.7/include/linux/raid/raid5.h:218: parse error before
`md_wait_queue_head_t'
/usr/src/linux-2.5.7/include/linux/raid/raid5.h:218: warning: no semicolon
at end of struct or union
/usr/src/linux-2.5.7/include/linux/raid/raid5.h:222: parse error before
`device_lock'
/usr/src/linux-2.5.7/include/linux/raid/raid5.h:222: warning: type defaults
to `int' in declaration of `device_lock'
/usr/src/linux-2.5.7/include/linux/raid/raid5.h:222: warning: data
definition has no type or storage class
/usr/src/linux-2.5.7/include/linux/raid/raid5.h:226: parse error before `}'
raid5.c: In function `__release_stripe':
raid5.c:67: dereferencing pointer to incomplete type
raid5.c:71: dereferencing pointer to incomplete type
raid5.c:73: dereferencing pointer to incomplete type
raid5.c:74: dereferencing pointer to incomplete type


________________________________________
Michael D. Black Principal Engineer
[email protected] 321-676-2923,x203
http://www.csihq.com Computer Science Innovations
http://www.csihq.com/~mike My home page
FAX 321-676-2355


2002-03-22 19:58:44

by Erik McKee

[permalink] [raw]
Subject: Re: 2.5.7 compile error

It doesn't compile non modular either. Could be because it still needs
updating to use BIO's instead of bufferheads. See previous thread about this
about the complications there.

Have a nice day ;)
Erik McKee

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards?
http://movies.yahoo.com/