Re: 2.4.15-pre4 fails to build in setup.c

From: Chris Meadors (clubneon@hereintown.net)
Date: Wed Nov 14 2001 - 12:52:16 EST


On Wed, 14 Nov 2001, Chris Meadors wrote:

> I don't think I've seen this yet.
>
> Build failed with this error:
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -c
> -o setup.o setup.c
> setup.c: In function `c_start':
> setup.c:2791: subscripted value is neither array nor pointer
> setup.c:2792: warning: control reaches end of non-void function
> make[1]: *** [setup.o] Error 1
> make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
> make: *** [_dir_arch/i386/kernel] Error 2
>
> My "grep ^CONFIG .config" is attatched.
>
> -Chris
>

I'm replying to my own post because I've received serveral off list
replies. None of them quite correct. It seems there are two files that
need to be patched.

I'm attaching the patch that finally allowed my kernel to compile. It is
mostly the one that Horst von Brand sent me (which he said Linus
prescribed), but with a correction to the first hunk.

-Chris

-- 
Two penguins were walking on an iceberg.  The first penguin said to the
second, "you look like you are wearing a tuxedo."  The second penguin
said, "I might be..."                         --David Lynch, Twin Peaks


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:39 EST