首页 > 其他 > 详细

编译安装libiconv报错

时间:2017-06-05 13:54:05      阅读:344      评论:0      收藏:0      [点我收藏+]

环境:centos 7.1

编译安装libiconv报错

In file included from progname.c:26:0:
./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
make[2]: *** [progname.o] Error 1
make[2]: Leaving directory `/root/libiconv-1.14/srclib‘
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/libiconv-1.14/srclib‘
make: *** [all] Error 2

进入srclib目录 执行 sed -i -e ‘/gets is a security/d‘ ./stdio.in.h

本文出自 “小菜鸟” 博客,请务必保留此出处http://baishuchao.blog.51cto.com/12918589/1932198

编译安装libiconv报错

原文:http://baishuchao.blog.51cto.com/12918589/1932198

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!