I have downloaded 2.6.0 + patches up to 2.6.13 from kernel.org.
When I try to configure the kernel using 'make xconfig' I get the following
error:
scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’
follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of ‘current_menu’ was
here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2
I attempted make menuconfig, make config, and make oldconfig but each failed
with the same error,
This happens on 2.6.0, 2.6.1, 2.6.2 2.6.3, 2.6.4.
I have previously built newer kernels such as 2.6.13-rc2-rt7 without a
problem.
I was able to overcome the error by commenting out the declaration of
current_menu in mconf.c. But I am concerned as to the cause of this problem.
Does anyone have an explanation?
thanks,
Felix
On Tue, 4 Oct 2005 02:13:03 +0100 Felix Oxley wrote:
>
> I have downloaded 2.6.0 + patches up to 2.6.13 from kernel.org.
>
> When I try to configure the kernel using 'make xconfig' I get the following
> error:
>
> scripts/kconfig/mconf.c:91: error: static declaration of ___current_menu___
> follows non-static declaration
> scripts/kconfig/lkc.h:63: error: previous declaration of ___current_menu___ was
> here
> make[1]: *** [scripts/kconfig/mconf.o] Error 1
> make: *** [xconfig] Error 2
>
> I attempted make menuconfig, make config, and make oldconfig but each failed
> with the same error,
>
> This happens on 2.6.0, 2.6.1, 2.6.2 2.6.3, 2.6.4.
> I have previously built newer kernels such as 2.6.13-rc2-rt7 without a
> problem.
>
> I was able to overcome the error by commenting out the declaration of
> current_menu in mconf.c. But I am concerned as to the cause of this problem.
>
> Does anyone have an explanation?
Sorry, not really, other than to say that make menuconfig and
make xconfig work fine for me on 2.6.4.
I just downloaded the 2.6.4 tarball and tested/verified them.
---
~Randy
You can't do anything without having to do something else first.
-- Belefant's Law
make oldconfig, menuconfig, gconfig work fine with me
(_but_ using a 2.6.13.2 .config -- so the jump is
smaller...)
make xconfig gives me troubles 2 (static parser...)
another way to go would be to explicitly save your old
(2.6.4) .config into something like .config-randy...
then consume it... (xconfig will not find a .config /
implicitly work, then you fool it by loading
.config-randy) that _should_ do it... if still not
working, mrproper the old 6.4 then goto
.config-randy... my $.02
daniel
--- "Randy.Dunlap" <[email protected]> wrote:
> On Tue, 4 Oct 2005 02:13:03 +0100 Felix Oxley wrote:
>
> >
> > I have downloaded 2.6.0 + patches up to 2.6.13
> from kernel.org.
> >
> > When I try to configure the kernel using 'make
> xconfig' I get the following
> > error:
> >
> > scripts/kconfig/mconf.c:91: error: static
> declaration of ___current_menu___
> > follows non-static declaration
> > scripts/kconfig/lkc.h:63: error: previous
> declaration of ___current_menu___ was
> > here
> > make[1]: *** [scripts/kconfig/mconf.o] Error 1
> > make: *** [xconfig] Error 2
> >
> > I attempted make menuconfig, make config, and make
> oldconfig but each failed
> > with the same error,
> >
> > This happens on 2.6.0, 2.6.1, 2.6.2 2.6.3, 2.6.4.
> > I have previously built newer kernels such as
> 2.6.13-rc2-rt7 without a
> > problem.
> >
> > I was able to overcome the error by commenting out
> the declaration of
> > current_menu in mconf.c. But I am concerned as to
> the cause of this problem.
> >
> > Does anyone have an explanation?
>
> Sorry, not really, other than to say that make
> menuconfig and
> make xconfig work fine for me on 2.6.4.
> I just downloaded the 2.6.4 tarball and
> tested/verified them.
>
> ---
> ~Randy
> You can't do anything without having to do something
> else first.
> -- Belefant's Law
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
Felix Oxley wrote:
> I have downloaded 2.6.0 + patches up to 2.6.13 from kernel.org.
>
> When I try to configure the kernel using 'make xconfig' I get the following
> error:
>
> scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’
> follows non-static declaration
> scripts/kconfig/lkc.h:63: error: previous declaration of ‘current_menu’ was
> here
> make[1]: *** [scripts/kconfig/mconf.o] Error 1
> make: *** [xconfig] Error 2
>
> I attempted make menuconfig, make config, and make oldconfig but each failed
> with the same error,
>
> This happens on 2.6.0, 2.6.1, 2.6.2 2.6.3, 2.6.4.
> I have previously built newer kernels such as 2.6.13-rc2-rt7 without a
> problem.
What gcc version? The configuration program may have had some compile
bugs with newer compilers that were fixed in later kernels. In
particular I think gcc4 is stricter about those "static declaration
follows non-static" problems.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/
On Tuesday 04 October 2005 04:48, Robert Hancock wrote:
> What gcc version? The configuration program may have had some compile
> bugs with newer compilers that were fixed in later kernels. In
> particular I think gcc4 is stricter about those "static declaration
> follows non-static" problems.
I think you have nailed it. I'm using GCC 4.0.2.
Incidentally the first 2.6 kernel in which this issue was resolved is 2.6.9.
I will install GCC 2.9.5.
Thanks to all.
Felix
Felix Oxley wrote:
> I think you have nailed it. I'm using GCC 4.0.2.
> Incidentally the first 2.6 kernel in which this issue was resolved is 2.6.9.
For the record, the first version of the stock kernel which will build
for me with GCC 4.0.2 is 2.16.12. (Using a minimal .config)
> Felix Oxley wrote:
>
>> I think you have nailed it. I'm using GCC 4.0.2. Incidentally the
>> first 2.6 kernel in which this issue was resolved is 2.6.9.
>
>
> For the record, the first version of the stock kernel which will build
> for me with GCC 4.0.2 is 2.16.12. (Using a minimal .config)
>
To clarify, using GCC 4.0.2 I get the following:
<= 2.6.9 cannot make config/menuconfig/xconfig
2.6.10 + 11 build fails in i386/asm(?)
2.6.12 builds ok
Felix
On Tue, Oct 04, 2005 at 03:12:28PM +0100, Felix Oxley wrote:
>
> >Felix Oxley wrote:
> >
> >>I think you have nailed it. I'm using GCC 4.0.2. Incidentally the
> >>first 2.6 kernel in which this issue was resolved is 2.6.9.
> >
> >
> >For the record, the first version of the stock kernel which will build
> >for me with GCC 4.0.2 is 2.16.12. (Using a minimal .config)
> >
>
> To clarify, using GCC 4.0.2 I get the following:
>
> <= 2.6.9 cannot make config/menuconfig/xconfig
> 2.6.10 + 11 build fails in i386/asm(?)
> 2.6.12 builds ok
Assuming you are on i386 this 100% what was expected since kernel 2.6.12
is the first kernel to compile with gcc 4.0 .
> Felix
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed