打印
[资料分享]

最有用的Linux的编译之编译过程中的错误一

[复制链接]
798|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xiaohai8856|  楼主 | 2015-9-23 10:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 xiaohai8856 于 2015-9-23 10:27 编辑

错误一:
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



解决办法.pdf

43.2 KB

相关帖子

沙发
sdnumcu| | 2015-9-23 18:35 | 只看该作者
你是有多无聊

使用特权

评论回复
板凳
xiaohai8856|  楼主 | 2015-9-24 09:23 | 只看该作者

:lol 还行吧,不知道那个下载要分的那个怎么弄,就成这样了,想赚点积分都这么困难

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

102

主题

315

帖子

16

粉丝