Skip to contentSkip to conversation

make xconfig fails for older kernels

DISCUSSION Felix Oxley 3 participants 3 messages Oct 4, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 16 lines · 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,

Quoted 8 lines

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

#2 lore raw

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

Quoted 41 lines · --- "Randy.Dunlap
Quoted 2 lines · 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.

Quoted 2 lines

When I try to configure the kernel using 'make

xconfig' I get the following

Quoted 3 lines

error:

scripts/kconfig/mconf.c:91: error: static

declaration of ___current_menu___

Quoted 2 lines

follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous

declaration of ___current_menu___ was

Quoted 5 lines

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

Quoted 4 lines

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

Quoted 3 lines

problem.

I was able to overcome the error by commenting out

the declaration of

Quoted 1 line

current_menu in mconf.c. But I am concerned as to

the cause of this problem.

Quoted 2 lines

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.

Quoted 13 lines

---
~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