解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
来源:互联网 发布:mysql 重命名字段 编辑:程序博客网 时间:2024/05/17 22:16
./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]: *** [localcharset.o] Error 1
make[4]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16'
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[4]: *** [localcharset.o] Error 1
make[4]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oldboy/tools/nagios/nagios-plugins-1.4.16'
make: *** [all] Error 2
查找这个文件位置./stdio.h
find / -name stdio.in.h
/home/oldboy/tools/nagios/nagios-plugins-1.4.16/gl/stdio.in.h
要修改stdio.in.h 内容
sed -i -e '/gets is a security/d' ./stdio.in.h
参考:http://www.dataguru.cn/thread-562562-1-1.html
http://www.l68.net/49.html
0 0
- 解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
- 解析linux patch(解决报错./stdio.h:456:1: error: 'gets' undeclared here (not in a function))
- 编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 解决编译libiconv时报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 源码编译安装 libiconv-1.14 报:./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) [
- ./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
- ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
- 编译 libiconv-1.14 的时候出现 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- Ubuntu14.04_64编译libiconv出问题 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 在ubuntu上编译toolchain时出错./stdio.h:477: error: 'gets' undeclared here (not in a function)
- libiconv-1.14 error: ‘gets’ undeclared here (not in a function)
- PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .
- `uint32_t' undeclared here (not in a function)
- /phalcon.zep.c:130892: error: ‘ZEND_FE_END’ undeclared here (not in a function)
- /data/TestModule2/TestModule.c:26:25: error: ‘UTS_RELEASE’ undeclared here (not in a function) char
- 【SystemTap】 2.6.36 内核下运行SystemTap出现 error:‘param_ops_int64_t’ undeclared here (not in a function) 错误
- Android之ndk-build出现c:28:51: error: 'get_string' undeclared here (not in a function)解决办法
- php动态加载模块的时候出现PHP_FE_END’未声明(不在函数内) -----{error: ‘PHP_FE_END’ undeclared here (not in a function)}
- leetcode_c++:树:Populating Next Right Pointers in Each Node II(117)
- hdu5833 Zhu and 772002
- Interllij 自定义模板
- savedInstanceState
- Ubuntu 下 网易云音乐使用体验
- 解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
- 二、谈谈算法
- JavaScript性能优化技巧之函数节流
- 写开源项目步骤(上传github、发布到jcenter、录屏gif)
- c与sv混合仿真的简单示例
- 单口RAM、双口RAM、FIFO
- adaboost xgboost gbdt 三个boosting方法整理
- OSG+VS2013+Win7 环境搭建
- iOS统计xcode代码行数