编译安装libiconv报错
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译安装libiconv报错相关的知识,希望对你有一定的参考价值。
环境: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报错的主要内容,如果未能解决你的问题,请参考以下文章
centos7编译libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)(示例代码
编译安装php-5.3.27报错:make: *** [sapi/fpm/php-fpm] 错误 1