当前位置: 技术问答>linux和unix
求助,linux内核编译问题
来源: 互联网 发布时间:2016-03-14
本文导语: redhat下编译的linux 0.11 In file included from string.c:14: ../include/string.h:129: warning: conflicting types for built-in function 'strchr' ../include/string.h:146: warning: conflicting types for built-in function 'strrchr' ../include/string.h:396: warning...
redhat下编译的linux 0.11
In file included from string.c:14:
../include/string.h:129: warning: conflicting types for built-in function 'strchr'
../include/string.h:146: warning: conflicting types for built-in function 'strrchr'
../include/string.h:396: warning: conflicting types for built-in function 'memset'
../include/string.h:39: warning: 'strncpy' defined but not used
../include/string.h:69: warning: 'strncat' defined but not used
../include/string.h:108: warning: 'strncmp' defined but not used
../include/string.h:129: warning: 'strchr' defined but not used
../include/string.h:146: warning: 'strrchr' defined but not used
../include/string.h:337: warning: 'memcpy' defined but not used
../include/string.h:364: warning: 'memcmp' defined but not used
../include/string.h:396: warning: 'memset' defined but not used
gcc -mcpu=i386 -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -I../include
-c -o malloc.o malloc.c
malloc.c: In function `malloc':
malloc.c:156: warning: use of cast expressions as lvalues is deprecated
ar rcs lib.a ctype.o _exit.o open.o close.o errno.o write.o dup.o setsid.o execve.o wait.o string.o malloc.o
sync
make[1]: Leaving directory `/linux/lib'
ld -m elf_i386 -Ttext 0 -e startup_32 boot/head.o init/main.o
kernel/kernel.o mm/mm.o fs/fs.o
kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a
kernel/math/math.a
lib/lib.a
-o tools/system
kernel/kernel.o(.text+0x1787): In function `copy_process':
: undefined reference to `memcpy'
make: *** [tools/system] Error 1
这个问题怎么改阿
In file included from string.c:14:
../include/string.h:129: warning: conflicting types for built-in function 'strchr'
../include/string.h:146: warning: conflicting types for built-in function 'strrchr'
../include/string.h:396: warning: conflicting types for built-in function 'memset'
../include/string.h:39: warning: 'strncpy' defined but not used
../include/string.h:69: warning: 'strncat' defined but not used
../include/string.h:108: warning: 'strncmp' defined but not used
../include/string.h:129: warning: 'strchr' defined but not used
../include/string.h:146: warning: 'strrchr' defined but not used
../include/string.h:337: warning: 'memcpy' defined but not used
../include/string.h:364: warning: 'memcmp' defined but not used
../include/string.h:396: warning: 'memset' defined but not used
gcc -mcpu=i386 -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -I../include
-c -o malloc.o malloc.c
malloc.c: In function `malloc':
malloc.c:156: warning: use of cast expressions as lvalues is deprecated
ar rcs lib.a ctype.o _exit.o open.o close.o errno.o write.o dup.o setsid.o execve.o wait.o string.o malloc.o
sync
make[1]: Leaving directory `/linux/lib'
ld -m elf_i386 -Ttext 0 -e startup_32 boot/head.o init/main.o
kernel/kernel.o mm/mm.o fs/fs.o
kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a
kernel/math/math.a
lib/lib.a
-o tools/system
kernel/kernel.o(.text+0x1787): In function `copy_process':
: undefined reference to `memcpy'
make: *** [tools/system] Error 1
这个问题怎么改阿
|
warning可以不用理
主要是因为copy_process中调用了memcpy但是这个文件里没包含相应的头文件
主要是因为copy_process中调用了memcpy但是这个文件里没包含相应的头文件
|
有点难度哦
|