LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error in configuring new kernel 2.6.2 (https://www.linuxquestions.org/questions/linux-newbie-8/error-in-configuring-new-kernel-2-6-2-a-143040/)

redhatman 02-06-2004 01:18 PM

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

DrOzz 02-06-2004 01:55 PM

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 ..

redhatman 02-06-2004 02:16 PM

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.

DrOzz 02-06-2004 02:21 PM

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 ...

h/w 02-06-2004 02:25 PM

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.)

redhatman 02-06-2004 03:34 PM

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

DrOzz 02-06-2004 03:45 PM

is this occuring when trying all methods?
such as make config, make xconfig, make menuconfig, etc ...? j

redhatman 02-06-2004 03:53 PM

Yes it happens during all types of config.

Demonbane 02-06-2004 03:54 PM

Try reinstalling glibc-kernelheaders from your Redhat CD

redhatman 02-06-2004 04:29 PM

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?

Demonbane 02-06-2004 04:56 PM

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

http://mirror.aarnet.edu.au/pub/redh...-8.10.i386.rpm

redhatman 02-06-2004 06:17 PM

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?

h/w 02-06-2004 06:24 PM

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".

h/w 02-06-2004 06:25 PM

and ohh, after u do those, copy the bzImage and System.map to the right place, and update your bootloader.

thewizard20 02-06-2004 06:26 PM

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


All times are GMT -5. The time now is 04:54 AM.