nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a functi
[root@localhostnagios-plugins-1.4.16]#./configure[root@localhostnagios-plugins-1.4.16]#makemv-f.deps/full-write.Tpo.deps/full-write.Pogcc-DHAVE_CONFIG_H-I.-I..-I../intl-g-O2-MTlocalcharset.o-MD-MP-MF.deps/localcharset.Tpo-c-olocalcharset.olocalcharset.cInfileincludedfromlocalcharset.c:26:0:./stdio.h:456:1:error:‘gets’undeclaredhere(notinafunction)_GL_WARN_ON_USE(gets,"getsisasecurityhole-usefgetsinstead");^make[4]:***[localcharset.o]Error1make[4]:Leavingdirectory`/usr/local/monitor/nagios-plugins-1.4.16/gl'make[3]:***[all-recursive]Error1make[3]:Leavingdirectory`/usr/local/monitor/nagios-plugins-1.4.16/gl'make[2]:***[all]Error2make[2]:Leavingdirectory`/usr/local/monitor/nagios-plugins-1.4.16/gl'make[1]:***[all-recursive]Error1make[1]:Leavingdirectory`/usr/local/monitor/nagios-plugins-1.4.16'make:***[all]Error2[root@localhostnagios-plugins-1.4.16]#
删除stdio.in.h文件中_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");行
[root@localhostnagios-plugins-1.4.16]#find/-inamestdio.in.h/usr/local/monitor/nagios-plugins-1.4.16/gl/stdio.in.h[root@localhostnagios-plugins-1.4.16]#sed-i'/getsisasecurity/d'gl/stdio.in.h
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。