LinuxQuestions.org
Help answer threads with 0 replies.
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 06-03-2005, 05:20 PM   #1
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Kernel compile error


Hi, when i try do a 'make menuconfig' or 'make bzImage' in kernel dir it give these lines:

Code:
root@Aerius:/usr/src/linux-2.6.10# 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.5/include/limits.h:122,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.5/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.5/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
What I do? (before it dont happen)
 
Old 06-03-2005, 06:52 PM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Try copying .config out of the way (ie. cp .config ..) and run
make mrproper
then copy .config back (ie. cp ../.config .) and try
make menuconfig again.

I'm not sure if this will fix your problem, but it will eliminate a lot of possibilities.
 
Old 06-03-2005, 07:21 PM   #3
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by uberNUT69
Try copying .config out of the way (ie. cp .config ..) and run
make mrproper
then copy .config back (ie. cp ../.config .) and try
make menuconfig again.

I'm not sure if this will fix your problem, but it will eliminate a lot of possibilities.
Same thing
 
Old 06-03-2005, 07:31 PM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
How about trying with a default config?

cp arch/i386/defconfig .config


Starting to sound like you don't have all the devel packages you need,
but you said it was working before.
Have you uninstalled anything recently?
 
Old 06-03-2005, 08:03 PM   #5
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by uberNUT69
How about trying with a default config?

cp arch/i386/defconfig .config


Starting to sound like you don't have all the devel packages you need,
but you said it was working before.
Have you uninstalled anything recently?
Ermm, with swaret i updated glibc, before that its working fine, after update, it start give this errors

Ill try use the default config, then i give a feedback.
 
Old 06-03-2005, 08:33 PM   #6
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
If you copy the defconfig in and 'make oldconfig' works then make sure you
have the ncurses and libc development packages.
 
Old 06-03-2005, 09:20 PM   #7
_InTeNsDoWn_
Member
 
Registered: Dec 2004
Location: Portugal
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by uberNUT69
If you copy the defconfig in and 'make oldconfig' works then make sure you
have the ncurses and libc development packages.
Same thing and i have the ncurses and libc
 
Old 06-03-2005, 10:02 PM   #8
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Check these packages: (or whatever they're called for your distro)

ncurses-dev? (not just ncurses)

kernel-devel?

kernel-headers

Also, do you have a link from your source directory to /usr/src/linux (or similar).
eg. in Debian #ln -s /usr/src/kernel-source-2.6.11 /usr/src/linux
 
Old 06-03-2005, 10:32 PM   #9
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Quote:
Originally posted by _InTeNsDoWn_
Ermm, with swaret i updated glibc, before that its working fine, after update, it start give this errors

Ill try use the default config, then i give a feedback.
there's your problem you might as well start over and reinstall next time read the upgrade.txt on the cd.
 
Old 04-15-2006, 12:28 PM   #10
kamik
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Boow
there's your problem you might as well start over and reinstall next time read the upgrade.txt on the cd.
So, but I have exactly the same problem on CentOS 4.3, and I have installed only original packages and update from distribution sources...
Is there any Idea to solve this problem without reinstalling?
 
Old 04-15-2006, 01:42 PM   #11
kamik
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by kamik
So, but I have exactly the same problem on CentOS 4.3, and I have installed only original packages and update from distribution sources...
Is there any Idea to solve this problem without reinstalling?
OK i have solved it by reinstalling glibc-kernelheaders package.

I have used:
1. yum remove <package>
2. save names of removing packages
3. yum install <package package ..> because of reinstaling all depended packages.

ALLERRT! be carful with this kind of action - read carefully list of removed packages at first step (yum should have to ask you first) before continuing uninstallation

Kamik
 
  


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
Kernel compile error Navyblue Linux - Newbie 20 08-01-2005 11:53 PM
Error during the kernel (2.6.10) compile. Whynot Debian 1 03-03-2005 08:34 PM
error 2 trying to compile 2.4 kernel TonyJ Fedora 2 09-15-2004 08:51 PM
Kernel 2.6.4 compile error kkiedrowski Slackware 3 04-30-2004 10:37 AM
Kernel compile error theabyyss Linux - General 4 04-08-2002 05:36 AM


All times are GMT -5. The time now is 12:43 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