nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)

简介:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@localhost nagios-plugins-1.4.16] # ./configure
[root@localhost nagios-plugins-1.4.16] # make 
mv  -f .deps /full-write .Tpo .deps /full-write .Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. /intl    -g -O2 -MT localcharset.o -MD -MP -MF .deps /localcharset .Tpo -c -o localcharset.o localcharset.c
In  file  included from localcharset.c:26:0:
. /stdio .h:456:1: error: ‘gets’ undeclared here (not  in  function )
  _GL_WARN_ON_USE (gets,  "gets is a security hole - use fgets instead" );
  ^
make [4]: *** [localcharset.o] Error 1
make [4]: Leaving directory ` /usr/local/monitor/nagios-plugins-1 .4.16 /gl '
make [3]: *** [all-recursive] Error 1
make [3]: Leaving directory ` /usr/local/monitor/nagios-plugins-1 .4.16 /gl '
make [2]: *** [all] Error 2
make [2]: Leaving directory ` /usr/local/monitor/nagios-plugins-1 .4.16 /gl '
make [1]: *** [all-recursive] Error 1
make [1]: Leaving directory ` /usr/local/monitor/nagios-plugins-1 .4.16'
make : *** [all] Error 2
[root@localhost nagios-plugins-1.4.16] #

wKioL1iAd4KyZ0GcAABiyShpOc0229.png

删除stdio.in.h文件中_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");行

1
2
3
[root@localhost nagios-plugins-1.4.16] # find / -iname stdio.in.h
/usr/local/monitor/nagios-plugins-1 .4.16 /gl/stdio . in .h
[root@localhost nagios-plugins-1.4.16] # sed -i '/gets is a security/d' gl/stdio.in.h



本文转自 justin_peng 51CTO博客,原文链接:http://blog.51cto.com/ityunwei2017/1893212,如需转载请自行联系原作者
相关文章
|
7月前
|
API C++
【Azure 环境】VS Code登录China Azure(Function)报错 An error occurred while signing in: invalid_request - AADSTS65002
An error occurred while signing in: invalid_request - AADSTS65002: Consent between first party application 'c27c220f-ce2f-4904-927d-333864217eeb' and first party resource '797f4846-ba00-4fd7-ba43-dac1f8f63013' must be configured via preauthorization - applications owned and operated by Microsoft mus
359 13
|
7月前
|
缓存 开发工具 C++
VS Code调试Function报错|无法加载Diagnostics.Abstractions怎么办?
在调试 Azure Function 时,可能出现 “Could not load file or assembly 'Microsoft.Extensions.Diagnostics.Abstractions, Version=8.0.0.0'” 错误,导致主机启动失败。本文详细解析该依赖加载错误的成因,并提供基于不同安装方式(NPM 或 MSI)的解决方案,涵盖重装 Core Tools、清理缓存、检查 .NET SDK 版本等操作步骤,同时提供日志排查与 Docker 容器化替代方案,帮助开发者快速恢复本地调试流程。
302 0
|
8月前
|
网络协议 API 网络安全
【Azure Function App】发现部分请求Function App遇见 403.72 报错(请求Body>100KB)
在调用Azure Function的HTTP Trigger时,发送POST请求偶尔出现403错误,且响应为空、Header信息少。经排查发现,当请求Body大于100KB时会触发403.72错误,原因是启用了“Client Certificate mode”为“Optional Interactive User”。解决方法是将该模式设置为“Ignore”。由于TLS重新协商机制限制,大请求体无法正常处理,导致此问题。
251 1
|
Java Windows
【Azure Function】部署Java Function失败:报错deploy [ERROR] Status code 401和警告 'China North 3' may not be a valid region
1:deploy [ERROR] Status code 401, (empty body). 2: China North 3 may not be a valid region,please refer to https://aka.ms/maven_function_configuration#supported-regions for values. 3:  <azure.functions.maven.plugin.version>1.36.0</azure.functions.maven.plugin.version>
326 11
|
Linux Python
【Azure Function】Python Function部署到Azure后报错No module named '_cffi_backend'
ERROR: Error: No module named '_cffi_backend', Cannot find module. Please check the requirements.txt file for the missing module.
366 2
|
11月前
|
人工智能 Python
083_类_对象_成员方法_method_函数_function_isinstance
本内容主要讲解Python中的数据类型与面向对象基础。回顾了变量类型(如字符串`str`和整型`int`)及其相互转换,探讨了加法在不同类型中的表现。通过超市商品分类比喻,引出“类型”概念,并深入解析类(class)与对象(object)的关系,例如具体橘子是橘子类的实例。还介绍了`isinstance`函数判断类型、`type`与`help`探索类型属性,以及`str`和`int`的不同方法。最终总结类是抽象类型,对象是其实例,不同类型的对象有独特运算和方法,为后续学习埋下伏笔。
221 7
083_类_对象_成员方法_method_函数_function_isinstance
|
11月前
|
Python
[oeasy]python086方法_method_函数_function_区别
本文详细解析了Python中方法(method)与函数(function)的区别。通过回顾列表操作如`append`,以及随机模块的使用,介绍了方法作为类的成员需要通过实例调用的特点。对比内建函数如`print`和`input`,它们无需对象即可直接调用。总结指出方法需基于对象调用且包含`self`参数,而函数独立存在无需`self`。最后提供了学习资源链接,方便进一步探索。
290 17
|
11月前
|
人工智能 Python
[oeasy]python083_类_对象_成员方法_method_函数_function_isinstance
本文介绍了Python中类、对象、成员方法及函数的概念。通过超市商品分类的例子,形象地解释了“类型”的概念,如整型(int)和字符串(str)是两种不同的数据类型。整型对象支持数字求和,字符串对象支持拼接。使用`isinstance`函数可以判断对象是否属于特定类型,例如判断变量是否为整型。此外,还探讨了面向对象编程(OOP)与面向过程编程的区别,并简要介绍了`type`和`help`函数的用法。最后总结指出,不同类型的对象有不同的运算和方法,如字符串有`find`和`index`方法,而整型没有。更多内容可参考文末提供的蓝桥、GitHub和Gitee链接。
278 11
|
JavaScript
箭头函数与普通函数(function)的区别
箭头函数是ES6引入的新特性,与传统函数相比,它有更简洁的语法,且没有自己的this、arguments、super或new.target绑定,而是继承自外层作用域。箭头函数不适用于构造函数,不能使用new关键字调用。

热门文章

最新文章