TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling (old) kernels
Eek.
I'm trying to compile kernels. I'm not used to makefiles and big
'organized' compiles -- it there anyone who is willing to offer a little
assistance?
I'm trying to compile kernel 1.2.13, but it doesn't like to 'make
dep'. I get a lot of these, where the file 'included from' changes.
-----
In file included from capability.c:9:
/usr/src/linux/include/asm/uaccess.h:25: warning: `KERNEL_DS' redefined
/usr/src/linux/include/asm/segment.h:5: warning: this is the location of
the previous definition
/usr/src/linux/include/asm/uaccess.h:26: warning: `USER_DS' redefined
/usr/src/linux/include/asm/segment.h:8: warning: this is the location of
the previous definition
-----
where the include files change as it goes through the makefile. The at
the end it crashes and I get:
-----
make[2]: Entering directory `/usr/src/linux-1.2.13/fs/minix'
gcc -D__KERNEL__ -I/usr/src/linux/include -E -M *.c > .depend
make[2]: Leaving directory `/usr/src/linux-1.2.13/fs/minix'
make[2]: Entering directory `/usr/src/linux-1.2.13/fs/ext2'
gcc -D__KERNEL__ -I/usr/src/linux/include -E -M *.c > .depend
compress.c:2244: #error "this code ought to be changed"
make[2]: *** [dep] Error 1
make[2]: Leaving directory `/usr/src/linux-1.2.13/fs/ext2'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/usr/src/linux-1.2.13/fs'
make: *** [dep] Error 2
-----
Unfortunately, I find myself inbetween: I'm not scared of compilers or
playing with the kernel, but I'm not experienced at reading / writing
makefiles. Any helpful suggestions, either how to get the compile working
or a straight forward approach to getting up to speed would be
appreciated.
Phil M.
--
Life is complex:
It has real and imaginary components.
--Unknown