LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-06-2004, 02:18 PM   #1
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Rep: Reputation: 15
Error in configuring new kernel 2.6.2


Hi, I am a bit of a newbie to linux. I am trying to complile my first kernel.

Here is what I have done so far:

1. Download linux-2.6.2.tar.gz from kernel . org
2. Extracted the kernel to /usr/src/linux
3. Make symlinks as instructed by readme from kernel . org:
cd /usr/include
rm -rf asm linux scsi
ln -s /usr/src/linux/include/asm-i386 asm
ln -s /usr/src/linux/include/include include
ln -s /usr/src/linux/include/scsi scsi
4. Ran 'make mrproper' from /usr/src/linux
5. I typed 'make xconfig' and get an error. I have also tried 'make menuconfig' and simply 'make config'. All of them give an error somewhat similar to the following. This is the error for xconfig:

make[1]: `scripts/fixdep' is up to date.
HOSTCC scripts/kconfig/mconf.o
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/kconfig/mconf.c:12:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
scripts/kconfig/mconf.c: In function `exec_conf':
scripts/kconfig/mconf.c:243: `EINTR' undeclared (first use in this function)
scripts/kconfig/mconf.c:243: (Each undeclared identifier is reported only once
scripts/kconfig/mconf.c:243: for each function it appears in.)
scripts/kconfig/mconf.c:243: `EAGAIN' undeclared (first use in this function)
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2


Can anyone help me with this, please? I would like to get xconfig working soon.

Thank you all,

Chris DeGroot
 
Old 02-06-2004, 02:55 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
i heard something along the lines of this error, and i am going to suggest something that i think should work, so here it goes ...

Quote:
ln -s /usr/src/linux/include/asm-i386 asm
ln -s /usr/src/linux/include/include include
ln -s /usr/src/linux/include/scsi scsi
get rid of these symlinks, and type make mrproper to start fresh, and then try a make config of your choice, and see if that helps ..
 
Old 02-06-2004, 03:16 PM   #3
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by DrOzz
i heard something along the lines of this error, and i am going to suggest something that i think should work, so here it goes ...



get rid of these symlinks, and type make mrproper to start fresh, and then try a make config of your choice, and see if that helps ..

Ok, I have a couple questions about that. First, how do I get rid of symlinks? Do I just delete the folder? Won't that cause more problems because i had to remove each folder and make it a symlink instead? I am just a bit wary of doing that because the README that I am using (which appears to be written by Linus Torvalds) instructed me to make those. Thanks for your help.
 
Old 02-06-2004, 03:21 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
cd /usr/include
ln -s /usr/src/linux/include/asm-i386 asm

ok lets take these two steps for example ...
you went into the /usr/include folder and you made the symlinks, so while in the /usr/include folder all you will have to type is rm asm ...
the same step applys to the others you made ...
it isn't a folder its just a link to a folder ....

p.s. you aren't going to break anything by doing this ... i just suggested this because i seen this error before with others, and i have seen this work for others ...
so it was just worth a try ...

also ...
http://www.linuxquestions.org/questi...355#post379355
you can even look at the howto i wrote and notice that none of them symlinks are made, and it still works.. .
its just like anything else, there are different ways and different howtos for the same things ....

so if you wanna try to do what i suggested then do so, if not then i am not sure what to tell ya ...
 
Old 02-06-2004, 03:25 PM   #5
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
hi.
as drozz said, remove those symlinks u made. and, unless there was a need for u to 'rm -rf' those folders, you dont have to.
i would say just remove the untarred linux 2.6 folder, untar it again, 'make clean', 'make mrproper' (might as well, only 2 lines).
and u should be having module-init-tools for 2.6 (i havent looked, but maybe mconf has something to do with it.)
 
Old 02-06-2004, 04:34 PM   #6
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks for your help, guys. I hope I didn't sound rude to you in my first reply. You clearly know more than I do about this. Anyways, I tried what you said and now I am getting the following error:

HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits
.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:214,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2

Do you guys have any ideas on this?

Thanks
 
Old 02-06-2004, 04:45 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
is this occuring when trying all methods?
such as make config, make xconfig, make menuconfig, etc ...? j
 
Old 02-06-2004, 04:53 PM   #8
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Yes it happens during all types of config.
 
Old 02-06-2004, 04:54 PM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Try reinstalling glibc-kernelheaders from your Redhat CD
 
Old 02-06-2004, 05:29 PM   #10
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Demonbane
Try reinstalling glibc-kernelheaders from your Redhat CD
Ok, I'm not sure exactly how to do that. Is it straightforward if I were to pop in the CD and try and figure it out?
 
Old 02-06-2004, 05:56 PM   #11
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Or you can download it from any Redhat mirrors, here's one :

http://mirror.aarnet.edu.au/pub/redh...-8.10.i386.rpm
 
Old 02-06-2004, 07:17 PM   #12
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
I decided to try a different version kernel, since this one wasn't working out too well for me. Anyways, I am now able to do 'xconfig', which I completed. According to the readme, I am now supposed to do 'make dep'. When I try this I get the following error:

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/
mkdep.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
132,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits
.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:
11,
from scripts/mkdep.c:35:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: for each function it appears in.)
scripts/mkdep.c:221: warning: unused variable `resolved_path'
make: *** [scripts/mkdep] Error 1

Anyone have some input into this?
 
Old 02-06-2004, 07:24 PM   #13
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
yes. i guess someone forgot to update the README for 2.6
you don;t have to run make dep.
only - "make xconfig", "make", and (as root) "make modules_install".
 
Old 02-06-2004, 07:25 PM   #14
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
and ohh, after u do those, copy the bzImage and System.map to the right place, and update your bootloader.
 
Old 02-06-2004, 07:26 PM   #15
thewizard20
Member
 
Registered: Sep 2003
Location: ny
Distribution: slackware 9.1
Posts: 73

Rep: Reputation: 15
you should not have to do the make dep with 2.6 series kernels after doing the menuconfig, just do make the make modules_install
 
  


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
configuring kernel: compilation error MasterOfTheWind Linux - Newbie 1 11-05-2005 05:00 AM
error while configuring? BinJajer Linux - Newbie 5 09-15-2005 09:23 AM
error while configuring cb951303 Slackware 2 07-12-2005 11:56 PM
configuring smtp , error D3javu Linux - Newbie 0 02-09-2005 11:48 PM
X configuring error Davin Linux - General 3 11-26-2003 09:30 PM


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