Forum Home
Press F1
 
Thread ID: 44731 2004-04-28 08:33:00 Patching the Linux Kernel - Experts please! Growly (6) Press F1
Post ID Timestamp Content User
232703 2004-04-28 08:33:00 Hi there,

I run Knoppix 3.3 (built on debian). I wanted to upgrade to Kernel 2.6.5, but so far have had many mixed instructions. I have managed to:

1) Download it
2) Unpack it
3) Configure it
4) Clean it
5) Compile it (with "make" - though it had an error at the end, which is gone now)

But now, when I try to run "make install", it comes up with this bizarre annoying error.

HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.3/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.3/include/limits.h:11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: Not a directory
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: Not a directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: error: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

Apparently "make install" uses lilo. I went to the lilo configuration, (lilo.conf), and coudnt find anything wrong. However, the one website that did help (find that here : www.linuxdocs.org ) mentioned something about the lilo.conf having an kernel= setting and someother setting that I couldn't find. The same site, however, expects me, like all the other, to get throught the whole thing without much trouble. Especially at this point. Infact, I used the program that was meant to output the compressed kernel image to arch/i386/boot/bzImage, but no such file exists on the computer!!!!

Does anyone know how to fix the problem, or even a more indepth tutorial on how this process is meant to occur??

Any help would be greatly appreciated!!!
Growly (6)
232704 2004-04-28 22:28:00 Try www.linuxquestions.org

forrest44
forrest44 (754)
232705 2004-04-28 23:16:00 Im not 100% sure on what 'make install' does, but I've always done:
make menuconfig
make bzImage
make modules (If I have modules)
make modules_install
cp arch/i386/boot/bzImage /boot/kernel-2.6.5-buildXYZ
cp System.map /boot/kernel-2.6.5-buildXYZ.map
rm /boot/System.map
ln -s /boot/kernel-26.5-buildXYZ.map /boot/System.map


Hope this helps


Chill.
Chilling_Silence (9)
232706 2004-04-29 08:54:00 Thanks guys,

I tried the forum, and your help Chill, but it comes up with this annoying error when i try and conifg!

root@server:/usr/src/linux# make xconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket . h:35,
from /usr/include/netinet/in . h:24,
from scripts/basic/fixdep . c:107:
/usr/include/bits/socket . h:305:24: asm/socket . h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
root@server:/usr/src/linux#



Now what do I do?! I've tried deleting all the new kernel files (i,e the Linux-2 . 6 . 5 Folder) and then unpacking it again, but the same error pops up!!! It also does the same for config, menuconfig, and gconfig .
Growly (6)
232707 2004-04-29 08:56:00 Oh, and i forgot to mention - When i first did this I coould use menuconfig. Then the rest of it screwed up so I wanted to do it again and this happens!! Growly (6)
232708 2004-04-30 21:38:00 PLEASE?! Growly (6)
1