Click to See Complete Forum and Search --> : *kicks computer* Compile the kernel, damn you!


Wheaty
06-30-2001, 06:21 PM
As the subject of this post suggests, I have been having a hard time compiling ANY linux kernel on my RH7.1 setup (which is currently running the 2.4.2-2 kernel which RH7.1 comes with). I followed the NHF to the letter, and I ALWAYS get this error when it's on the bzImage compile step:

$ timer.c:35: conflicting types for 'xtime'
$ /usr/src/linux-2.4.xx/include/linux/sched.h:540: previous declaration of 'xtime'
$ make[2]: *** [timer.o] Error 1
$ make[2] leaving directory '/usr/src/linux-2.4.x/kernel'
$ make[1]: *** [first_rule] Error 2
$ make[1]: leaving directory '/usr/src/linux-2.4.x/kernel'
$ make: *** [_dir_kernel] Error 2


I have tried compiling both kernel 2.4.4 and kernel 2.4.5.... I get the exact same error. Like I said, I followed the NHF to the 't':

Untar Kernel package
CD into Kernel directory
make mrproper
make xconfig
make dep
make clean
make bzImage

WHAM, about 20 seconds into bzImage... error. Please... help ;p

possumpuss
06-30-2001, 06:24 PM
i got the same error

i haven't actually tried this myself yet - but...

i talked to someone on #linuxhelp about this problem - he told me i needed to install all of the patches between the 2.4.2 and 2.4.5 kernel, THEN try to recompile, this should take care of any dependency issues...

let me know how it goes, i would be trying to recompile today, too, if i didn't have to go somewhere tonight...

Wheaty
06-30-2001, 06:52 PM
You mean..

Apply those patches to the 2.4.5 source, or to the 2.4.2 source that comes installed with RedHat (installed in /usr/src/linux-2.4.2)?

Wheaty
06-30-2001, 07:56 PM
bump :cool:

Wheaty
06-30-2001, 10:02 PM
bump

Wheaty
07-01-2001, 01:58 AM
Yet another bump.... :D

bdg1983
07-01-2001, 06:57 AM
all of the patches between the 2.4.2 and 2.4.5 kernel

Sounds to me it's all the patches between 2.4.2 to 2.4.5. Apply all patches to 2.4.2 until you get to 2.4.5 and then compile the 2.4.5 kernel.