Hi,
I am trying to recompile kernel using the latest version of microcore 3.0. I have installed in virtual machine using qemu. I have downloaded the kernel from kernel.org website. I downloaded the patch file from here and patched it and than i downloaded the config file and renamed it ".config" and saved it in same directory as the linux kernel source code.
when i type make oldconfig i get following error messages:
root@box:/mnt/hda1/kernel/linux-2.6.33.3# make oldconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:106:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:109:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:110:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:113:19: error: stdio.h: No such file or directory
In file included from /tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.3/include-fixed/syslimits.h:7,
from /tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.3/include-fixed/limits.h:11,
from scripts/basic/fixdep.c:114:
/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.3/include-fixed/limits.h:122:61: error: limits.h: No such file or directory
scripts/basic/fixdep.c:115:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:116:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function 'usage':
scripts/basic/fixdep.c:129: warning: implicit declaration of function 'fprintf'
scripts/basic/fixdep.c:129: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:129: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: warning: implicit declaration of function 'exit'
scripts/basic/fixdep.c:130: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c: In function 'print_cmdline':
scripts/basic/fixdep.c:138: warning: implicit declaration of function 'printf'
scripts/basic/fixdep.c:138: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:141: error: 'NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function 'grow_config':
scripts/basic/fixdep.c:154: warning: implicit declaration of function 'realloc'
scripts/basic/fixdep.c:154: warning: incompatible implicit declaration of built-in function 'realloc'
scripts/basic/fixdep.c:156: warning: implicit declaration of function 'perror'
scripts/basic/fixdep.c:156: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c: In function 'is_defined_config':
scripts/basic/fixdep.c:172: warning: implicit declaration of function 'memcmp'
scripts/basic/fixdep.c: In function 'define_config':
scripts/basic/fixdep.c:185: warning: implicit declaration of function 'memcpy'
scripts/basic/fixdep.c:185: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:204: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:212: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c:218: warning: implicit declaration of function 'tolower'
scripts/basic/fixdep.c:220: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c:204: warning: unused variable 's'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:223: error: expected declaration specifiers or '...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_config_file':
scripts/basic/fixdep.c:225: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:231: warning: implicit declaration of function 'ntohl'
scripts/basic/fixdep.c:242: warning: implicit declaration of function 'isalnum'
scripts/basic/fixdep.c: In function 'strrcmp':
scripts/basic/fixdep.c:259: warning: implicit declaration of function 'strlen'
scripts/basic/fixdep.c:259: warning: incompatible implicit declaration of built-in function 'strlen'
scripts/basic/fixdep.c: In function 'do_config_file':
scripts/basic/fixdep.c:270: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:274: warning: implicit declaration of function 'open'
scripts/basic/fixdep.c:274: error: 'O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:276: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:276: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:280: warning: implicit declaration of function 'fstat'
scripts/basic/fixdep.c:282: warning: implicit declaration of function 'close'
scripts/basic/fixdep.c:285: warning: implicit declaration of function 'mmap'
scripts/basic/fixdep.c:285: error: 'PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:285: error: 'MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:292: error: too many arguments to function 'parse_config_file'
scripts/basic/fixdep.c:294: warning: implicit declaration of function 'munmap'
scripts/basic/fixdep.c:270: warning: unused variable 'st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:299: error: expected declaration specifiers or '...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:302: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:304: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: implicit declaration of function 'strchr'
scripts/basic/fixdep.c:306: warning: incompatible implicit declaration of built-in function 'strchr'
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:308: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:309: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c:312: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c:304: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'print_deps':
scripts/basic/fixdep.c:341: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:345: error: 'O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:347: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:347: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:353: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:357: error: 'PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:357: error: 'MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:364: error: too many arguments to function 'parse_dep_file'
scripts/basic/fixdep.c:341: warning: unused variable 'st'
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:377: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:377: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:379: warning: incompatible implicit declaration of built-in function 'exit'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
Can some please help on how i can fix this error and progress further....Please help....
Thanks