LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with compiling kernel. (https://www.linuxquestions.org/questions/linux-software-2/problem-with-compiling-kernel-224841/)

apacz 08-31-2004 12:04 PM

Problem with compiling kernel.
 
Hi,
I just installed slackware linux (now im running on kernel 2.4) and i downloaded linux kernel 2.6.8.1. And here appears the problem, when i put
in /usr/src/linux-2.6.8.1/
make menuconfig then i've got:

Quote:

root@desktop:/usr/src/linux-2.6.8.1# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from scripts/basic/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:212,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or 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
I think i don't have some library.. or something ?
Can anybody help me ?

nafan 08-31-2004 02:14 PM

Try getting hold of GCC 3.4.1 and installing it as it seems you're missing some header files. Be sure to use the same options for GCC's ./configure that 'gcc -v' returns.

Personally, I wouldn't build a kernel (or GCC) as root, but do all the compiling as a normal user, and only do the installing of the kernel/GCC using 'su'.


All times are GMT -5. The time now is 06:35 PM.