Nagios error:./stdio.h:456:1: Error: ' gets ' undeclared here (not in a function)

Source: Internet
Author: User

[[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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.