CentOS 7.X编译libiconv报错问题
编译安装libiconv报错:./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
解决方法:
vi libiconv-1.14/srclib/stdio.in.h
将698行的代码:_GL_WARN_ON_USE (gets, “gets is a security hole - use fgets instead”);
替换为:
#if defined(GLIBC) && !defined(UCLIBC) && !__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, “gets is a security hole - use fgets instead”);
#endif