错误一:
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");
^
/usr/bin/gcc -std=gnu99 -I. -O2 -I/home/sinlinx/a31s/linux/lichee/buildroot/output/host/include -I/home/sinlinx/a31s/linux/lichee/buildroot/output/host/usr/include -MT freadahead.o -MD -MP -MF .deps/freadahead.Tpo -c -o freadahead.o freadahead.c
/usr/bin/gcc -std=gnu99 -I. -O2 -I/home/sinlinx/a31s/linux/lichee/buildroot/output/host/include -I/home/sinlinx/a31s/linux/lichee/buildroot/output/host/usr/include -MT freading.o -MD -MP -MF .deps/freading.Tpo -c -o freading.o freading.c
mv -f .deps/dup-safer-flag.Tpo .deps/dup-safer-flag.Po
/usr/bin/gcc -std=gnu99 -I. -O2 -I/home/sinlinx/a31s/linux/lichee/buildroot/output/host/include -I/home/sinlinx/a31s/linux/lichee/buildroot/output/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 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");
^
make[4]: *** [freadahead.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [freading.o] Error 1
make[4]: *** [clean-temp.o] Error 1
mv -f .deps/fatal-signal.Tpo .deps/fatal-signal.Po
mv -f .deps/gl_linkedhash_list.Tpo .deps/gl_linkedhash_list.Po
make[4]: Leaving directory `/home/sinlinx/a31s/linux/lichee/buildroot/output/build/host-m4-1.4.15/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/sinlinx/a31s/linux/lichee/buildroot/output/build/host-m4-1.4.15/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sinlinx/a31s/linux/lichee/buildroot/output/build/host-m4-1.4.15'
make[1]: *** [all] 閿欒 2
make[1]:姝e湪绂诲紑鐩綍 `/home/sinlinx/a31s/linux/lichee/buildroot/output/build/host-m4-1.4.15'
make: *** [/home/sinlinx/a31s/linux/lichee/buildroot/output/build/host-m4-1.4.15/.stamp_built] 閿欒 2
解决方法:
/home/sinlinx/a31s/linux/lichee/buildroot/output/build/host-m4-1.4.15/lib/stdio.h
#if defined(__GLIBC__) &&!defined(__UCLIBC__) &&!__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, "gets is a security hole -use fgets instead");
#endif