Re: Errors compiling kernel 2.2.22 ?

"Roland Verlander" <[email protected]> Sat, 9 Nov 2002 09:10:58 +1100
Newsgroups gmane.linux.redhat.release.zoot
Message-ID <000e01c28773$b7dc1d80$e6a48a90@DH53F61S>
I also had some problems with compiling 2.2.22 on my RH6.2, but compiling a
2.4 kernel seemed to work fine but you said you can't do that.
Try getting the vanilla 2.2.22 kernel from www.kernel.org as Red Hat has a
few hundred patches in thier kernels that might be causing your problem.
----- Original Message -----
From: "Jeremy Portzer" <[email protected]>
To: <[email protected]>
Sent: Friday, November 08, 2002 11:29 PM
Subject: Errors compiling kernel 2.2.22 ?


> Hello,
>
> Has anyone had trouble compiling kernel 2.2.22 on RHL 6.2, specifically
> the loop.c module?
> I'm using the kernel-source-2.2.22-6.2.2 rpm available from the errata.
> There are a large number of errors in loop.c, such as:
>
> loop.c: In function `compute_loop_size':
> loop.c:157: `a2e0a082' undeclared (first use in this function)
> loop.c:157: subscripted value is neither array nor pointer
> loop.c:158: subscripted value is neither array nor pointer
>
> It goes on and on...
> loop.c:208: `caf51008' undeclared (first use in this function)
> loop.c:208: invalid lvalue in increment
> loop.c:212: nondigits in number and not hexadecimal
> loop.c:212: nondigits in number and not hexadecimal
>
> Hundreds of those errors.  It looks as if the file is corrupted somehow,
> but if you look at loop.c itself, everything is fine.  Maybe some messed
> up #defines somewhere?  How would I debug this further?
>
> Here's the steps I'm using to compile:
> make mrproper
> cp configs/kernel-2.2.22-i686-smp.config .config
> make dep
> make clean
> make bzImage
> make modules   <-- fails here
>
> I tried some of the other configurations, but they all yield the same
> error.  I may try using the vanilla 2.2.22 source instead of the Red Hat
> package, but this is a production server and I'd rather use Red Hat's
> optimizations.  (Yes, I know a better idea overall would be to upgrade
> to a newer version of Red Hat Linux, or at least upgrade to a 2.4
> kernel, but these aren't options for this production server right now.)
>
> Thanks for any advice,
>
> Jeremy Portzer
> Instructional Web Server Administrator
> Durham Technical Community College
>
>
>
>
>
>
>