温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

编译nagios-plugins报错./stdio.h:456:1:

发布时间:2020-07-13 22:52:57 来源:网络 阅读:933 作者:yyyummy 栏目:移动开发

在AWS的EC2上编译nagios-plugins报错:

./stdio.h:456:1: error: ‘gets’ undeclared here (not in a function) 
make[4]: *** [localcharset.o] Error 1 
make[4]: Leaving directory `/root/nagios-plugins-1.4.16/gl' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/root/nagios-plugins-1.4.16/gl' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/root/nagios-plugins-1.4.16/gl' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/root/nagios-plugins-1.4.16' 

make: *** [all] Error 2

解决办法:

cd /root/nagios-plugins-1.4.16/gl
sed -i -e '/gets is a security/d' ./stdio.in.h


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI