{"id":2792,"date":"2015-10-30T04:44:51","date_gmt":"2015-10-30T04:44:51","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2792"},"modified":"2015-10-30T04:44:51","modified_gmt":"2015-10-30T04:44:51","slug":"nagios","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/10\/30\/nagios\/","title":{"rendered":"Nagios"},"content":{"rendered":"<p>Nagois error on CentOS 7<br \/>\nmake stage&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n.\/stdio.h:456:1: error: \u2018gets\u2019 undeclared here (not in a function)\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nEdit the studio.h file, and replace:\n#undef gets\n_GL_WARN_ON_USE (gets, &quot;gets is a security hole - use fgets instead&quot;);\nwith\n#if defined gets\n#undef gets\n_GL_WARN_ON_USE (gets, &quot;gets is a security hole - use fgets instead&quot;);\n#endif\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nagois error on CentOS 7 make stage&#8230; .\/stdio.h:456:1: error: \u2018gets\u2019 undeclared here (not in a function) Edit the studio.h file, and replace: #undef gets _GL_WARN_ON_USE (gets, &quot;gets is a security hole &#8211; use fgets instead&quot;); with #if defined gets #undef gets _GL_WARN_ON_USE (gets, &quot;gets is a security hole &#8211; use fgets instead&quot;); #endif<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-2792","post","type-post","status-publish","format-standard","hentry","category-centos-7"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2792"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2792\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}