LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2006, 11:32 PM   #1
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
unable to do make menuconfig


Hi all,

I'm suddenly unable to make menuconfig on my kernel 2.6.15 after removing my kernel 2.4.31 sources (removepkg kernel-generic-2.4.31).

here's the error msg:

Code:
make: *** No rule to make target `menuconfig'.  Stop.
root@z71v:/home/pj# cd /usr/src/linux
root@z71v:/usr/src/linux# make menuconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limits.h:122,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: error: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
socket.h exists in asm directory. so how do i fix this?
 
Old 01-28-2006, 01:27 AM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
Try make mrproper and then make menuconfig
 
Old 01-28-2006, 02:49 AM   #3
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
just tried it, still getting the same error.
 
Old 01-28-2006, 03:13 AM   #4
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
Assuming that you are installing kernel as root
 
Old 01-28-2006, 04:28 AM   #5
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
yes, i am.
 
Old 01-28-2006, 04:44 AM   #6
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
try reinstalling kernel source files. also try to check how to solve problem by checking scripts/basic/fixdep.c file and header files location in kernel sourcecode.
 
Old 01-28-2006, 04:45 AM   #7
pczou
LQ Newbie
 
Registered: Aug 2005
Posts: 14

Rep: Reputation: 0
seems the /usr/include/linux/limits.h file is missing. is the 'glibc-kernheaders' (RedHat) or 'glibc-devel' (SuSE) package installed?
 
Old 01-28-2006, 04:46 AM   #8
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
I think you are applying command where all kernel source is not present. /usr/src/linux often just contains the kernel headers
 
Old 01-28-2006, 05:58 PM   #9
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
paragn,

i don't quite understand. /usr/src/linux is a symlink to /usr/src/linux-2.6.15.1 which is where i unpacked the compressed kernel source. what should i do?
 
Old 01-28-2006, 06:18 PM   #10
mohdshakir
Member
 
Registered: Jan 2006
Distribution: gentoo, slackware
Posts: 36

Rep: Reputation: 15
have you tried to cd /usr/src/linux-2.6.15 instead of just cd /usr/src/linux and run the make menuconfig?
 
Old 01-28-2006, 07:30 PM   #11
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
check by cd to /usr/src/linux-2.6.15.1 and then make mrproper;make menuconfig. also have you tried reinstalling source code?
 
Old 01-28-2006, 10:31 PM   #12
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
ive tried doing make menuconfig both under /usr/src/linux and /usr/src/linux-2.6.15.1. i've also tried to rm -rf /usr/src/linux-2.6.15.1 and then rm -f /usr/src/linux then unpack the source to /usr/src/linux-2.6.15.1 and then rebuild the symlink. but no dice.

could the fact that i just rebuilt the other kernel have an effect on this, somehow?
 
Old 01-28-2006, 11:34 PM   #13
mohdshakir
Member
 
Registered: Jan 2006
Distribution: gentoo, slackware
Posts: 36

Rep: Reputation: 15
have you checked if your kernel's tarball is not corrupted somehow that you dont get all the files that are supposed to be in it?
 
Old 01-29-2006, 12:11 AM   #14
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
yes. forgot to mention mention that the md5 sum is good after downloading my sources.
 
Old 01-29-2006, 12:28 AM   #15
mohdshakir
Member
 
Registered: Jan 2006
Distribution: gentoo, slackware
Posts: 36

Rep: Reputation: 15
try to

$ ls /usr/src/linux/include/asm
$ ls /usr/src/linux/include/linux

and see if the required files (socket.h and limits.h) are there.
 
  


Reply



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 09:23 AM
make menuconfig puishor Linux - Software 2 07-29-2005 03:58 AM
make: *** No rule to make target `menuconfig' Ezzy Linux - Newbie 3 04-21-2005 09:21 AM
make xconfig/make menuconfig don't work acidblue Debian 2 07-27-2004 07:36 AM
make menuconfig itsjustme Slackware 6 03-07-2004 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 AM.

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
Open Source Consulting | Domain Registration