[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

help..kernel compile




Hello,

I am a new convert from Mandrake to Debian and so far I love it. I am
having a problem compiling my kernel though. I have done it in the past
with no problems. I tried initially to compile kernel-source-2.2.18pre21
ther kernel-2.2.17 but I get the same problem.
here is what I am doing:
untar the source after apt-get install kernel-source... in /usr/src. cd
to the dir and make menuconfig, I choose the default (I tried to set it
my way with the same problem) save and exit. then I ran make-kpkg
--revision=sony.1 kernel_image. things scroll and I end up with errors.
here is a snap shot of the errors:
the errors starts like this :

make[1]: Entering directory `/usr/src/kernel-source-2.2.17'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -mpreferred-stack-boundary=2 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686  -c -o init/main.o init/main.c
In file included from /usr/src/kernel-source-2.2.17/include/linux/sched.h:13,
                 from /usr/src/kernel-source-2.2.17/include/linux/mm.h:4,
                 from /usr/src/kernel-source-2.2.17/include/linux/slab.h:14,
                 from /usr/src/kernel-source-2.2.17/include/linux/malloc.h:4,
                 from /usr/src/kernel-source-2.2.17/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/kernel-source-2.2.17/include/linux/times.h:5: parse error before `clock_t'
/usr/src/kernel-source-2.2.17/include/linux/times.h:5: warning: no semicolon at end of struct or union
/usr/src/kernel-source-2.2.17/include/linux/times.h:6: warning: type defaults to `int' in declaration of `tms_stime'
.
.
.
.
.
and continues with about 1000 lines and it ends with this:
.
.
..

/usr/src/kernel-source-2.2.17/include/linux/coda.h:261: storage size of `va_atime' isn't known
/usr/src/kernel-source-2.2.17/include/linux/coda.h:262: storage size of `va_mtime' isn't known
/usr/src/kernel-source-2.2.17/include/linux/coda.h:263: storage size of `va_ctime' isn't known
/usr/src/kernel-source-2.2.17/include/linux/coda.h:563: storage size of `attr' isn't known
/usr/src/kernel-source-2.2.17/include/linux/fs.h:426: storage size of `f_owner' isn't known
/usr/src/kernel-source-2.2.17/include/linux/sched.h:288: storage size of `times' isn't known
{standard input}: Assembler messages:
{standard input}:2099: Error: Ignoring attempt to re-define symbol
{standard input}:2099: Error: Rest of line ignored. First ignored character is `,'.
{standard input}:2234: Fatal error: Symbol "open" is already defined as "*COM*"/4.
make[1]: *** [init/main.o] Error 1
make[1]: Leaving directory `/usr/src/kernel-source-2.2.17'
make: *** [stamp-build] Error 2

any help is greatly appreciated.

PS: 
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)

latest binutils from potato and bin86

thanks



-- 
 -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
|		Ayman Haidar					|
|		haidara@usol.com				|
|		just another Linux and VI lover			|
 -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-





Reply to: