高手进来看看。
--with-apt-get-command: /usr/bin/apt-get
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ipv6: yes
--with-mysql: no
--with-openssl: no
--with-gnutls: no
--enable-extra-opts: no
--with-perl: /usr/bin/perl
--enable-perl-modules: no
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
--enable-libtap: no
root@CENTOSFTP:~/nagios-plugins-1.4.16# make
make all-recursive
make[1]: Entering directory `/root/nagios-plugins-1.4.16'
Making all in gl
make[2]: Entering directory `/root/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#define PREFIX "/root/nagios-plugins"'; \
echo '#define EXEC_PREFIX "/root/nagios-plugins"'; \
echo '#define BINDIR "/root/nagios-plugins/bin"'; \
echo '#define SBINDIR "/root/nagios-plugins/sbin"'; \
echo '#define LIBEXECDIR "/root/nagios-plugins/libexec"'; \
echo '#define DATAROOTDIR "/root/nagios-plugins/share"'; \
echo '#define DATADIR "/root/nagios-plugins/share"'; \
echo '#define SYSCONFDIR "/root/nagios-plugins/etc"'; \
echo '#define SHAREDSTATEDIR "/root/nagios-plugins/com"'; \
echo '#define LOCALSTATEDIR "/root/nagios-plugins/var"'; \
echo '#define INCLUDEDIR "/root/nagios-plugins/include"'; \
echo '#define OLDINCLUDEDIR "/usr/include"'; \
echo '#define DOCDIR "/root/nagios-plugins/share/doc/nagios-plugins"'; \
echo '#define INFODIR "/root/nagios-plugins/share/info"'; \
echo '#define HTMLDIR "/root/nagios-plugins/share/doc/nagios-plugins"'; \
echo '#define DVIDIR "/root/nagios-plugins/share/doc/nagios-plugins"'; \
echo '#define PDFDIR "/root/nagios-plugins/share/doc/nagios-plugins"'; \
echo '#define PSDIR "/root/nagios-plugins/share/doc/nagios-plugins"'; \
echo '#define LIBDIR "/root/nagios-plugins/lib"'; \
echo '#define LISPDIR ""'; \
echo '#define LOCALEDIR "/root/nagios-plugins/share/locale"'; \
echo '#define MANDIR "/root/nagios-plugins/share/man"'; \
echo '#define MANEXT ""'; \
echo '#define PKGDATADIR "/root/nagios-plugins/share/nagios-plugins"'; \
echo '#define PKGINCLUDEDIR "/root/nagios-plugins/include/nagios-plugins"'; \
echo '#define PKGLIBDIR "/root/nagios-plugins/lib/nagios-plugins"'; \
echo '#define PKGLIBEXECDIR "/root/nagios-plugins/libexec/nagios-plugins"'; \
} | sed '/""/d' > configmake.h-t && \
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
rm -f configmake.h-t; \
else \
rm -f configmake.h; mv configmake.h-t configmake.h; \
fi
make all-recursive
make[3]: Entering directory `/root/nagios-plugins-1.4.16/gl'
make[4]: Entering directory `/root/nagios-plugins-1.4.16/gl'
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
mv -f .deps/localcharset.Tpo .deps/localcharset.Po
rm -f libgnu.a
ar cru libgnu.a base64.o close-hook.o exitfail.o full-read.o full-write.o localcharset.o malloca.o sockets.o xalloc-die.o xstrndup.o asnprintf.o basename.o basename-lgpl.o c-strtod.o cloexec.o creat-safer.o dirname.o dirname-lgpl.o dup-safer.o fcntl.o fd-safer.o fsusage.o mountlist.o open-safer.o pipe-safer.o printf-args.o printf-parse.o regex.o safe-read.o safe-write.o sha1.o stripslash.o vasnprintf.o xmalloc.o
ranlib libgnu.a
make[4]: Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[3]: Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[2]: Leaving directory `/root/nagios-plugins-1.4.16/gl'
Making all in tap
make[2]: Entering directory `/root/nagios-plugins-1.4.16/tap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/nagios-plugins-1.4.16/tap'
Making all in lib
make[2]: Entering directory `/root/nagios-plugins-1.4.16/lib'
Making all in .
make[3]: Entering directory `/root/nagios-plugins-1.4.16/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.16/lib'
Making all in tests
make[3]: Entering directory `/root/nagios-plugins-1.4.16/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.16/lib/tests'
make[2]: Leaving directory `/root/nagios-plugins-1.4.16/lib'
Making all in plugins
make[2]: Entering directory `/root/nagios-plugins-1.4.16/plugins'
/bin/bash ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_apt check_apt.o utils.o runcmd.o -L/root/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
/bin/bash ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_cluster check_cluster.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_cluster check_cluster.o utils.o -L/root/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
/bin/bash ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_disk check_disk.o utils.o popen.o -L/root/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/root/nagios-plugins/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c: In function ‘process_arguments’:
check_http.c:312: error: ‘ssl_version’ undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.16'
make: *** [all] Error 2
于 2013-06-18 17:52:25发表:
真的感谢!重新./configure再make make install 就好了!
于 2013-02-26 21:42:55发表:
我试过了!~安装了openssl openssl-devel 重新configure 可以make过去了
于 2013-01-21 11:17:12发表:
安装 openssl* 后, 重新 ./configure ,然后就可以 make
于 2012-11-29 17:21:56发表:
可以的 你要重新configure以后再install
于 2012-11-08 14:34:14发表:
赞同一楼的回复,按照二楼的回答,并不能解决问题。
于 2012-08-20 17:08:11发表:
yum install openssl* 就可以搞定了
argus110 于 2012-08-15 16:45:11发表:
楼主,我也是装这插件,搞了一个下午,终于找到问题了。。。是1.4.16版自身的安装文件问题,你下载1.4.15版本的就可以用了。。。补充说明:实在太坑爹了,具体错误实在plugins文件夹下面check_http.c文件中的第312行,那个ssl_version没有定义而引起这个错误。我研究了一下,但还是不懂怎么修改。。