[[email protected] nagios-plugins-1.4.16]# ./configure[[email protected] Nagios-plugins-1.4.16]# make mv -f .deps/full-write. Tpo .deps/full-write. Pogcc -dhave_config_h -i. -i. -i. /intl -g -o2 -mt localcharset.o -md -mp -mf .deps/ Localcharset. tpo -c -o localcharset.o localcharset.cin 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 1make[4]: Leaving directory '/USR/LOCAL/MONITOR/NAGIOS-PLUGINS-1.4.16/GL ' make[3]: *** [ all-recursive] error 1make[3]: leaving directory '/usr/local/monitor/nagios-PLUGINS-1.4.16/GL ' make[2]: *** [all] error 2make[2]: leaving directory '/ USR/LOCAL/MONITOR/NAGIOS-PLUGINS-1.4.16/GL ' make[1]: *** [all-recursive] error 1make[1]: Leaving directory '/usr/local/monitor/nagios-plugins-1.4.16 ' make: *** [all] error 2[[email protected] nagios-plugins-1.4.16]#
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8C/F9/wKioL1iAd4KyZ0GcAABiyShpOc0229.png "title=" Qq20170119161724.png "alt=" Wkiol1iad4kyz0gcaabiyshpoc0229.png "/>
Delete stdio.in.h file in _gl_warn_on_use (gets, "gets is a security hole-use fgets instead");
[Email protected] nagios-plugins-1.4.16]# Find/-iname stdio.in.h/usr/local/monitor/nagios-plugins-1.4.16/gl/ Stdio.in.h[[email protected] nagios-plugins-1.4.16]# sed-i '/gets is a security/d ' gl/stdio.in.h
This article is from "I am not a rookie" blog, please be sure to keep this source http://pvbutler.blog.51cto.com/7662323/1893212
Nagios error:./stdio.h:456:1: Error: ' gets ' undeclared here (not in a function)