首页 > 移动平台 > 详细

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

时间:2015-02-06 16:55:10      阅读:401      评论:0      收藏:0      [点我收藏+]

在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


本文出自 “运维工作笔记” 博客,请务必保留此出处http://yyyummy.blog.51cto.com/8842100/1612397

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

原文:http://yyyummy.blog.51cto.com/8842100/1612397

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!