2002-08-02 16:50:17

by Ognen Duzlevski

[permalink] [raw]
Subject: problem compiling 2.5.30

Hi, sorry if this popped up before. It is a redhat 7.3 box, gcc 2.96.
this happens when I include devfs into the kernel.

See below:

make[2]: Entering directory `/usr/src/linux-2.5.30/fs/partitions'
gcc -Wp,-MD,./.check.o.d -D__KERNEL__ -I/usr/src/linux-2.5.30/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=check
-DEXPORT_SYMTAB -c -o check.o check.c
check.c: In function `devfs_register_partitions':
check.c:470: array subscript is not an integer
make[2]: *** [check.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.30/fs/partitions'
make[1]: *** [partitions] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.30/fs'
make: *** [fs] Error 2

Thanks,
Ognen




2002-08-03 13:03:48

by Brad Heilbrun

[permalink] [raw]
Subject: Re: problem compiling 2.5.30

On Fri, Aug 02, 2002 at 11:53:21AM -0500, Ognen Duzlevski wrote:
> Hi, sorry if this popped up before. It is a redhat 7.3 box, gcc 2.96.
> this happens when I include devfs into the kernel.

Courtesy of a nice typo... this should fix it (not tested however).

--
Brad Heilbrun

--- ./linus-2.5/fs/partitions/check.c Thu Aug 1 22:48:50 2002
+++ ./brad-2.5/fs/partitions/check.c Sat Aug 3 05:52:29 2002
@@ -467,7 +467,7 @@
for (part = 1; part < max_p; part++) {
if ( unregister || (p[part].nr_sects < 1) ) {
devfs_unregister(p[part].de);
- dev->part[p].de = NULL;
+ p[part].de = NULL;
continue;
}
devfs_register_partition (dev, minor, part);