【CentOS7 编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)】教程文章相关的互联网学习教程文章

CentOS7 编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)【代码】【图】

?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 `/usr/local/src/zabbix-2.4.7/libiconv-1.14/srclib make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/src/zabbix-...

centos7编译libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)

如题:配置编译参数通过,在进行 make 的时候报如下错误: 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 `/usr/local/src/zabbix-2.4.7/libiconv-1.14/srclib make[1]: *** [all] Error 2 make[1]: Leaving director...