error in "make zImage" during 2.6.4 kernel compliation
Evening everybody!
I decided to test my linux skills by attempt to upgrade my kernel from 2.4.20-8 to 2.6.4. I'm following the directions to the letter, but I've hit a rather serious wall. I'm nearing the end of the compilation, but I can't make either a zImage or bzImage of the new kernel. Here is the output from the shell when I give the make zImage command: [root@jimb linux-2.6.4]# make zImage Makefile:392: .config: No such file or directory 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] Error 2 after that it simply returns to the shell. I though it may be that I needed make bzImage, but that give a nearly identical output, with the same 2 errors at the end, then it quits. I may have the machinestuck between kernels, but maybe not since I didn't even completely make the new kernel image. I'd like to know how to get around this problem, but I'd also like to understand the output of the make zImage command, because I don't understand most of it. Thanks for your time, JimBass |
You have some missing files dude :(
Quote:
Let me Google it, i'll be back w/ infos , maybe another member will have answer you before :) EDIT : Glibc, you have a problem with the GLibc's files :( .. ** Search In Progress :) |
I have no idea what either the /usr/include bits directory is, nor what Glibc is.
When I installed RH9, I put every package on the 3 CDs on my machine, so I would be somewhat surprised if it was a dependency issue. Thanks for the help so far, and hopefully your googling skills far surpass mine, because I didn't find jack. I tend to strike out on goole. I too often phrase my questions like I am speaking to a human, and as good as Google's engine is, it still can't "yet" deal with me as a human being. Soon for that, I hope! :D Peace, JimBass |
For the trick, i only tapped:
/usr/include/bits i have founded in the top of the page: [glibc 2.1.3] /usr/include/bits/socket.h So i have deduced it will be a glibc problem :) |
2.6.x is not like 2.4, first you do the make mrproper then make menuconfig (xconfig if u like that better), then you simply type make, just "make" it will make a bzImage for you, make zimage and make bzImage are not necessary, and make dep is gone all together. then do a make modules and make modules_install for the modules.
|
Cool. I'm trying to get glibc from rpmfind, and the redhat 9 rpms are all giving "too many user" errors. As soon as I can get a copy of it, I'll install it and see if that improves the situation.
Thanks for your help so far. Peace, JimBass |
Exodist,
I did a mrproper and a make config prior to getting the errors I talked about above. Here is the output from just "make" [root@jimb linux-2.6.4]# make Makefile:392: .config: No such file or directory 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] Error 2 [root@jimb linux-2.6.4]# doing a make menuconfig gives a similiar string of garbage: [jim@jimb linux-2.6.4]$ make menuconfig 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 [jim@jimb linux-2.6.4]$ Thanks for helping in any case. Peace, JimBass |
np :)
Thx for the kernel 2.6.x trick exodist, do you have a website for kernel 2.6.x install doc? |
ok, I should have read more of the other poss, but my info will hopefully help when u get further :-P
wiBo, no, no links. just experiance, when I started 5 years ago I got slackware 7.1 witht he 50 or so page essentals guide, it talked about the kernel and gave the basic 5 lines of instructions for compiling it, compiling my kernel was the first thing I ever did in linux cause I love features and customisation. so when 2.6.x-test came out I jumped on it, I did the make mrproper; make menuconfig and then make dep and it said there is no make dep just type make, so I did, then the modules stuff I did eventhough I may not need to. it just kinda made sence to me. on another note, get your install cd's and install all the development tools rpm's. that should fix the /usr/include dependancies |
Quote:
CooooOOOL :) Thanks :study: |
Now things are getting strange.
I downloaded glibc-2.3.2-27.9.7.i386.rpm, tried to install it, and got the message package glibc-2.3.2-27.9.7 is already installed. I thought maybe there was a problem with it in some way, so I'd remove it, and then reinstall it. I tried using the command apt-get remove glibc, and after much work it reported: 0 packages upgraded, 0 newly installed, 1341 removed and 0 not upgraded. Need to get 0B of archives. After unpacking 4076MB disk space will be freed. I didn't go through with that, as that would be about half of my machine! Any suggestions as to what my next step should be would be greatly appreciated. By the way, I installed EVERY package when I installed redhat, so there is nothing that I should be missing, development tools or otherwise. Thanks, JimBass |
All times are GMT -5. The time now is 02:00 PM. |