LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2009, 10:20 AM   #1
naleen
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Need help with make menuconfig command


I am new to linux and to Ubuntu. For a University project i have to install a new kernel. Currently i am using Ubuntu and the kernel is '2.6.27-7-generic'. I tried to upgrade the kernel into 'linux-2.6.4'. I downloaded the kernel from kernel.org and extracted it into /usr/src. But when i try to run the command 'make menuconfig' i get the following error. Can someone pls help me to sort this out. Thanks a lot.

Code:
root@hasantha-laptop:/usr/src/linux-2.6.4# make menuconfig
make[1]: `scripts/fixdep' is up to date.
  HOSTCC  scripts/kconfig/mconf.o
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
scripts/kconfig/mconf.c: In function ‚exec_conf‚:
scripts/kconfig/mconf.c:225: warning: ignoring return value of ‚pipe‚, declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‚show_textbox‚:
scripts/kconfig/mconf.c:553: warning: ignoring return value of ‚write‚, declared with attribute warn_unused_result
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
 
Old 03-04-2009, 10:28 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
That's because you use gcc 3.3.4
you should edit scripts/kconfig/mconf.c to remove 'static' at line 91:
Code:
static struct menu *current_menu;
becomes
Code:
struct menu *current_menu;
 
Old 03-06-2009, 04:47 PM   #3
naleen
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Agrouf View Post
That's because you use gcc 3.3.4
you should edit scripts/kconfig/mconf.c to remove 'static' at line 91:
Code:
static struct menu *current_menu;
becomes
Code:
struct menu *current_menu;
Thanks mate, that solved the above problem. But now when I try to run the command 'make bzImage' I get the following error Do you have any idea to get around this

Code:
root@hasantha-laptop:/usr/src/linux-2.6.4# make dep
*** Warning: make dep is unnecessary now.
root@hasantha-laptop:/usr/src/linux-2.6.4# make clean
  CLEAN   scripts/kconfig
  CLEAN   scripts/lxdialog
  CLEAN   scripts
  RM  $(CLEAN_FILES)
root@hasantha-laptop:/usr/src/linux-2.6.4# make bzImage
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-i386
  HOSTCC  scripts/fixdep
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  HOSTCC  scripts/genksyms/lex.o
scripts/genksyms/lex.c: In function ‚yylex1‚:
scripts/genksyms/lex.l:95: warning: ignoring return value of ‚fwrite‚, declared                                                                                                  with attribute warn_unused_result
scripts/genksyms/lex.l: At top level:
scripts/genksyms/lex.c:1230: warning: ‚input‚ defined but not used
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/split-include
scripts/split-include.c: In function ‚main‚:
scripts/split-include.c:133: warning: ignoring return value of ‚fgets‚, declared                                                                                                  with attribute warn_unused_result
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/docproc
  HOSTCC  scripts/kallsyms
scripts/kallsyms.c: In function ‚read_symbol‚:
scripts/kallsyms.c:43: warning: ignoring return value of ‚fgets‚, declared with                                                                                                  attribute warn_unused_result
  CC      scripts/empty.o
  HOSTCC  scripts/mk_elfconfig
  MKELF   scripts/elfconfig.h
  HOSTCC  scripts/file2alias.o
  HOSTCC  scripts/modpost.o
  HOSTCC  scripts/sumversion.o
  HOSTLD  scripts/modpost
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/bin2c
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      arch/i386/kernel/asm-offsets.s
In file included from include/linux/prefetch.h:13,
                 from include/linux/list.h:7,
                 from include/linux/signal.h:4,
                 from arch/i386/kernel/asm-offsets.c:7:
include/asm/processor.h:86: error: array type has incomplete element type
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2
root@hasantha-laptop:/usr/src/linux-2.6.4#
 
Old 03-06-2009, 04:57 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,776

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
I do not have the answer but linux-2.6.4 is a *very old* kernel, it was released five years ago. Is that really what you mean by 'upgrade'
 
Old 03-06-2009, 05:48 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Cůrdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by naleen View Post
I am new to linux and to Ubuntu. For a University project i have to install a new kernel. Currently i am using Ubuntu and the kernel is '2.6.27-7-generic'. I tried to upgrade the kernel into 'linux-2.6.4'.
As the previous poster said, that's a nonsense unless there's a typo somewhere. Quite obviously, 2.6.27 > 2.6.4, which, as also said above is really old. You shouldn't be using 2.6.4 at all under any circumstance.
 
Old 03-06-2009, 06:21 PM   #6
naleen
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
I do not have the answer but linux-2.6.4 is a *very old* kernel, it was released five years ago. Is that really what you mean by 'upgrade'
OOps! I thought that the version numbers are presented in some kind of decimel notation. So i thought that the version 2.6.4 is newer than the version 2.6.27. My bad . And the reason i am trying to get that specific kernel version is that I have a patch (That lets me mount FATX partitions on Linux; I am a forensic computing student who needs to mount an Xbox hard drive on linux for investigation) that only supports that kernel version.

So is there any way that i can downgrade my kernel? Or will installing an older version of Ubuntu will enable me to install that kernel??

Thanks a lot for ur help

Last edited by naleen; 03-06-2009 at 06:24 PM.
 
Old 03-06-2009, 06:43 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Cůrdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
I see where the confussion came from. Well, I have no experience with xbox specific patches, since I don't own any xbox to toy with. But in Gentoo we have many packages for kernel sources, there's gentoo-sources, which is vanilla kernel with only a few patches specific to gentoo, mm-sources with the andrew morton's patchset, openvz-sources, xen-sources, and so on. AND, there's also xorg-sources, which has now version version 2.6.16.26. Maybe you could look at this, though as said I really have no experience with these.

To try these, you should need to pick linux 2.6.16.26 from the linux site (or 2.6.16 + the .26 patch), then patch it with the xorg-sources patchset, which can be downloaded from any of these places:

http://distfiles.gentoo.org/distfile...-xbox.patch.gz http://distro.ibiblio.org/pub/linux/...-xbox.patch.gz http://heanet.dl.sourceforge.net/sou...-xbox.patch.gz http://surfnet.dl.sourceforge.net/so...-xbox.patch.gz http://keihanna.dl.sourceforge.net/s...-xbox.patch.gz http://switch.dl.sourceforge.net/sou...-xbox.patch.gz http://mesh.dl.sourceforge.net/sourc...-xbox.patch.gz http://ufpr.dl.sourceforge.net/sourc...-xbox.patch.gz http://nchc.dl.sourceforge.net/sourc...-xbox.patch.gz http://easynews.dl.sourceforge.net/s...-xbox.patch.gz http://jaist.dl.sourceforge.net/sour...-xbox.patch.gz http://osdn.dl.sourceforge.net/sourc...-xbox.patch.gz http://ovh.dl.sourceforge.net/source...-xbox.patch.gz http://kent.dl.sourceforge.net/sourc...-xbox.patch.gz http://internap.dl.sourceforge.net/s...-xbox.patch.gz

As said, I know nothing about this, but the least I'd expect from a patchset named linux-2.6.16-xbox.patch.gz is support for xfat
 
Old 03-07-2009, 04:16 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,776

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
My best bet would be to try Slackware 10.0, available here. It has been released at end of June 2004 and include both 2.4.26 and 2.6.7 kernel releases, as noted in the ANNOUNCE.10_0 file. It should be possible to slightly upgrade to 2.4.32 and downgrade to 2.6.4 respectively. To upgrade or downgrade I would:
1) download the kernel source you need
2) patch it
3) cp Slackware's appropriate config-<kernel_version> (you will find it in /boot after having installed the kernel and kernel-source packages) as .config at the root of the new source tree
4) make oldconfig
5) make menuconfig to add your specific feature -- only if not asked for that during 'make oldconfig'
6) make the kernel and modules as usual

I don't think such thing be easy with Ubuntu, it's too young. An advantage of taking Slackware as a basis is that the kernel sources it includes are those released by Linus, unmodified.

Last edited by Didier Spaier; 03-07-2009 at 04:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make: *** No rule to make target 'menuconfig' yussef Debian 10 12-22-2005 10:23 AM
make: *** No rule to make target `menuconfig' Ezzy Linux - Newbie 3 04-21-2005 10:21 AM
make xconfig/make menuconfig don't work acidblue Debian 2 07-27-2004 08:36 AM
Cannot use make menuconfig Brakki Debian 8 03-17-2004 01:38 PM
make menuconfig OracleDBA Linux - Newbie 10 06-12-2003 02:08 PM


All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration