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