LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Erorr compiling kernel 2.6.10 ? (https://www.linuxquestions.org/questions/slackware-14/erorr-compiling-kernel-2-6-10-a-284195/)

sys7em 01-30-2005 03:50 PM

Erorr compiling kernel 2.6.10 ?
 
When I try to do #make menuconfig

Code:

root@mx:/usr/src/linux# make menuconfig
  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-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: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[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
root@mx:/usr/src/linux#


I don't have a clue ... how should I fix this ?

keefaz 01-30-2005 04:07 PM

Have you the kernel-headers package installed ?

DaWallace 01-30-2005 04:26 PM

I"ve had that happen before.. that's right you need the headers.. the package'll work.. you can also pluck them out of your kernel source.. (not explaining this now, don't remember.. I'd have to check)

sys7em 01-30-2005 04:31 PM

I don't know how ...but the kernel-headers where gone ...anyway I've installed them again ..and now I'm succsesfully compling kernel ..2.6.10

Thanks :)

keefaz 01-30-2005 04:32 PM

Yes you could use the kernel header files from the kernel tree with doing something like :

$ export CFLAGS="-I`pwd`/include"
$ make menuconfig

DaWallace 01-30-2005 04:39 PM

well.. I'll tell anyway..

go to the include section of your kernel source tree..
copy asm-generic asm-[your platform] (probably i386) and linux to /usr/include
and then link /usr/include/asm-[your platform] to /usr/include/asm
"ln -s /usr/include/asm-i386 /usr/include/asm"

that's it..

DaWallace 01-30-2005 04:40 PM

wow.. we make a great team..


All times are GMT -5. The time now is 11:45 PM.