On 12/20/05, Simon Wu <simonwu1@xxxxxxxxx> wrote:
from few beginning lines of the compilation output, i think you have included some userspace libraries in your kernel code , which you shouldnt i guess:-)
i think thats why you are getting those undeclared errors.
hope it helps
good luck
Hello,
I am trying to re-compile a driver under kernel 2.6.13. However, when
I compile, it keeps complaining about the include files in
/usr/src/linux/scripts/basic/fixdep.c as shown below:
from few beginning lines of the compilation output, i think you have included some userspace libraries in your kernel code , which you shouldnt i guess:-)
i think thats why you are getting those undeclared errors.
good luck
Thanks,
Simon
================================
root@pcard022:/usr/src/linux# make
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:112:19: stdio.h: No such file or directory
In file included from
/usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122:75:
limits.h: No such file or directory
scripts/basic/fixdep.c:114:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:115:23: 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: 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: In function `print_cmdline':
scripts/basic/fixdep.c:135: warning: implicit declaration of
function `printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:138: error: `NULL' undeclared here (not
in a function)
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:151: warning: implicit declaration of
function `realloc'
scripts/basic/fixdep.c:151: warning: assignment makes pointer
from integer without a cast
scripts/basic/fixdep.c:152: error: `NULL' undeclared (first use
in this function)
scripts/basic/fixdep.c:153: warning: implicit declaration of
function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:169: warning: implicit declaration of
function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:182: warning: implicit declaration of
function `memcpy'
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:215: warning: implicit declaration of
function `tolower'
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:220: error: syntax error before "size_t"
scripts/basic/fixdep.c:221: warning: function declaration isn't
a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:222: error: `map' undeclared (first use
in this function)
scripts/basic/fixdep.c:222: error: `len' undeclared (first use
in this function)
scripts/basic/fixdep.c:228: warning: implicit declaration of
function `ntohl'
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
--
play the game