页次: 1
用 https://whycan.cn/t_1008.html
里面的源码包编译通过了
编译出现很多错误,不知为什么
/usr/bin/gcc -I. -O2 -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/include -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/usr/include -MT freading.o -MD -MP -MF .deps/freading.Tpo -c -o freading.o freading.c
/usr/bin/gcc -I. -O2 -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/include -I/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/host/usr/include -MT gl_linkedhash_list.o -MD -MP -MF .deps/gl_linkedhash_list.Tpo -c -o gl_linkedhash_list.o gl_linkedhash_list.c
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
In file included from freadahead.h:18:0,
from freadahead.c:20:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
In file included from freading.h:18:0,
from freading.c:20:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
Makefile:1279: recipe for target 'freading.o' failed
make[4]: *** [freading.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:1279: recipe for target 'freadahead.o' failed
make[4]: *** [freadahead.o] Error 1
mv -f .deps/fd-safer-flag.Tpo .deps/fd-safer-flag.Po
mv -f .deps/dup-safer-flag.Tpo .deps/dup-safer-flag.Po
Makefile:1279: recipe for target 'clean-temp.o' failed
make[4]: *** [clean-temp.o] Error 1
mv -f .deps/gl_linkedhash_list.Tpo .deps/gl_linkedhash_list.Po
make[4]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/lib'
Makefile:1083: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/lib'
Makefile:1023: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15'
Makefile:976: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15'
package/Makefile.package.in:289: recipe for target '/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/.stamp_built' failed
make: *** [/root/linux_bsp/f1c600/out/sunivw1p1/linux/common/buildroot/build/host-m4-1.4.15/.stamp_built] Error 2
make: Leaving directory '/root/linux_bsp/f1c600/buildroot'
ERROR: build buildroot Failed
root@e46b861a6d2d:~/linux_bsp/f1c600#
页次: 1