[TriLUG] Error compiling kernel 2.2.22 -- any ideas?

Jeremy Portzer jeremyp at pobox.com
Fri Nov 8 07:36:02 EST 2002


I realize this question is a bit esoteric, especially since it relates
to Red Hat 6.2, but I thought I'd at least ask.

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.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





More information about the TriLUG mailing list