Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required?
When compiling kernel 2.6.15 in a minimal slackware 10.2 install, the following error occurs.
I've verified all prerequisites for compilation. I've experiemented with the slackware 10.2 CD and noticed that, if I install the kernel-headers package (which says it's for kernel 2.4.31, the currently-installed kernel), the 2.6 kernel compiles without any errors whatsoever. Am I wrong in saying that a 2.6 kernel should NOT need a previous kernel's headers? -Dave ----------- CHK include/linux/version.h 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/i486-slackware-linux/3.4.4/include/limits.h:122, from /usr/lib/gcc/i486-slackware-linux/3.4.4/include/syslimits.h:7, from /usr/lib/gcc/i486-slackware-linux/3.4.4/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[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [include/linux/autoconf.h] Error 2 |
Installing SW10.2 test26.s kernel require 2.6.13 kernel modules but 2.4.3x kernel-headers. So it makes sense to keep same kernel-headers package when compiling newer 2.6x kernel. I would check SW current changelogs for any changes regarding kernel-headers because current uses 2.6.14x and 2.6.15x testing kernels.
|
Okay, that makes sense because it did compile without errors, but i'm a little confused - why would compiling a 2.6 kernel require 2.4 kernel headers?
|
kernel-headers and new 2.6 kernel
Pat explains it in changelog for SW10.2 with regards to testing26.s install kernel(2.6.13). I just obey eventhough a part of my brain wants to keep headers and kernel versions the same.
|
Quote:
|
Okay - thanks. One more question - why would a full kernel source actually need any kernel headers other than what comes in from kernel.org?
|
Quote:
allow me to quote Linus Torvalds: Quote:
just my :twocents:... |
Quote:
|
I was having the same problem and now I know what I need...2.4 header
|
All times are GMT -5. The time now is 12:32 AM. |