Re: regarding kernel compilation

From: Denis Vlasenko
Date: Tue Sep 20 2005 - 03:13:30 EST


On Tuesday 20 September 2005 10:11, Fawad Lateef wrote:
> On 9/20/05, Gireesh Kumar <gireesh.kumar@xxxxxxxxxxxxxx> wrote:
> > Hi,
> > I'd like to compile 2.4.20-6 kernel while running in 2.6 kernel. I tried
> > to do so but there are redeclaration errors with /kernel/sched.c and
> > /include/linux/sched.h. One it is FASTCALL and the other it is not.
> > Can anyone help me to fix this?

Kernel conpile should never use system includes, let alone
includes from _another_ kernel tree. (Using stdarg.h from gcc is ok)

> I don't think you will be able to compile 2.4 kernel on to the 2.6
> kernel based distro .... as in 2.6 based distro, mod-utils and other

2.6 modutils (module-init-tools to be exact) fall back to <toolname>.old
(by just exec'ing it) if those exist.

> packages are updated and will only support 2.6 based kernel .... So

Not true. I compiled 2.4 kernels on 2.6 machine without any problems.

> its better to get 2.4 kernel based distribution .... (and can keep/run
> both 2.6 and 2.4 based distributions simultanously on the same system,
> so that you can boot in any of them as per your requirement of 2.4 or
> 2.6 kernel)
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/