2003-05-26 11:56:23

by maha rajan

[permalink] [raw]
Subject: Kernel compilation errors.

Dear all,
I am running a kernel 2.4.20-8 and i have the
sources of linux-2.4.4 and when i try to compile it I
get the messages below.Can you please help me with
this.. i get similar errors with 2.4.7-10 also.

gcc -D__KERNEL__ -I/usr/src2.4/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=athlon -c -o
timer.o timer.c
timer.c:35: conflicting types for `xtime'
/usr/src2.4/linux/include/linux/sched.h:540: previous
declaration of `xtime'
make[2]: *** [timer.o] Error 1
make[2]: Leaving directory `/usr/src2.4/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src2.4/linux/kernel'
make: *** [_dir_kernel] Error 2

My system is an athlon/256MB/inboard Nvidia
video/Sound.

Thanks in advance
with regards,
Maharajan. V


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com


2003-05-27 04:30:05

by satyakumar.y

[permalink] [raw]
Subject: Re: Kernel compilation errors.



in function timer.c comment line 35 volatile struct timeval xtime
__attribute__ ((aligned (16)));

it will compile





maha rajan
<[email protected]> To: [email protected]
Sent by: cc:
linux-kernel-owner@vger. Subject: Kernel compilation errors.
kernel.org


05/26/2003 05:39 PM






Dear all,
I am running a kernel 2.4.20-8 and i have the
sources of linux-2.4.4 and when i try to compile it I
get the messages below.Can you please help me with
this

gcc -D__KERNEL__ -I/usr/src2.4/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=athlon -c -o
timer.o timer.c
timer.c:35: conflicting types for `xtime'
/usr/src2.4/linux/include/linux/sched.h:540: previous
declaration of `xtime'
make[2]: *** [timer.o] Error 1
make[2]: Leaving directory `/usr/src2.4/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src2.4/linux/kernel'
make: *** [_dir_kernel] Error 2

My system is an athlon/256MB/inboard Nvidia
video/Sound.

Thanks in advance
with regards,
Maharajan. V


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com