您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
[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 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 `/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]#
删除stdio.in.h文件中_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");行
[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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。