LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-04-2006, 11:46 PM   #1
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
make menuconfig fails


hi all,

i've downloaded the latest kernel source and unpacked it successfully but when i try to do make menuconfig, it fails with the error:

Code:
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
i can rule out a corrupt download or insufficient privileges because md5 sum is good and i do this as root.

ive checked for the existence of these two files:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
and they dont exist. at least, they dont exist in /usr/include/bits/linux/ and /usr/include/bits/asm. although, they exist in /home/z71/src/linux-2.6.15.2/include.
i tried copying them into where they are expected to be in, but that doesnt work either.

i might have fudged some symlink or include file somewhere. can anyone help?
 
Old 02-05-2006, 04:55 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Try a "make depclean" then run menuconfig again.
 
Old 02-05-2006, 06:45 AM   #3
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
it says:

Makefile:486: .config No such file or directory
make: *** No rule to make target 'depclean'. Stop.
 
Old 02-05-2006, 06:48 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
What directory are you running these commands in?
 
Old 02-05-2006, 01:24 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Maybe you don't have the kernel-header package installed - that is what seems to be missing...
These headers are in each kernel-source too - but usually there is a separate package for the kernel-headers.
This is to avoid problems which could arise when compiling different applicatins against different kernel-headers - as this is what you would do if always using the everytime new (and possibly different) headers that come with each new kernel.
 
Old 02-05-2006, 03:50 PM   #6
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
bulliver,

i unpacked the tarball into /usr/src and made a linux symlink to /usr/src/linux-2.6.15.2. i've even tried unpacking it to my home directory and building from there. neither worked.
 
Old 02-05-2006, 03:59 PM   #7
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
jomen,

there is no kernel headers package in listed /var/log/packages, although i can configure and rebuild my other kernel (2.4) just fine.

do i still need to install a kernel-headers package?
 
Old 02-05-2006, 05:20 PM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
the package's name is:
sys-kernel/linux-headers
and this should be installed - I don't remember to have this installed separately - it got installed as a dependency to sys-kernel/*
BTW - what is your current profile (symlink from /etc/make.profile to /usr/portage/profiles/...)
I'm asking because you are mentioning a 2.4 kernel - which is not in the default profile since ... some time ago.
Maybe this should be adjusted to the current one - which is /usr/portage/profiles/default-linux/x86/2006.0 for x86 architecture...
I don't have anything in /var/log/packages - but that does depend on how you set up logging, I suppose...
I have "PORT_LOGDIR=/var/log/portage" in my /etc/make.conf and everything I emerge is logged there - including potentially very important messages that would otherwise just scroll by while emerging (eg. during an upgrade) many files at once.
This is convenient for reviewing anything important that might have changed between package-versions during an update.

Last edited by jomen; 02-05-2006 at 05:24 PM.
 
Old 02-05-2006, 05:49 PM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Quote:
i unpacked the tarball into /usr/src and made a linux symlink to /usr/src/linux-2.6.15.2.
My bad. The command to clean out your kernel source should be "make mrproper".

@jomen: what makes you think he is running Gentoo? If he was running Gentoo then the headers _would_ be installed, as they are part of the base system, and are required to build glibc, which of course is necessary to build anything.

@pafrica: what distro are you running?
 
Old 02-05-2006, 07:26 PM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
my bad this time... I got confused - sorry!
Quote:
@pafrica: what distro are you running?
right: that was the question I should have been asking - because I obviously did not notice that it already was answered in the first post...
but still - he does not seem to have the headers installed
 
Old 02-06-2006, 12:56 AM   #11
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
fixed!

guys,

thanks for the help. i installed the kernel headers package from my slackware 10.2 dvd and it works again. i still find it odd that i can rebuild the stock 2.4.31 kernel without the headers but not the vanilla 2.6.15.2.
 
  


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
menuconfig fails to function properly in kernel 2.6.4 csvke Linux - Software 7 03-23-2004 08:20 PM
make menuconfig BoonZie Slackware 6 12-28-2002 05:40 AM


All times are GMT -5. The time now is 10:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration