[Nagiosplug-help] Compile issue

Subhendu Ghosh sghosh at sghosh.org
Sat Mar 17 04:15:52 CET 2007


On Fri, 16 Mar 2007, Marc Belanger wrote:

> Greetings all,
>
> Brand new Solaris 10 with nagios 2.7. I'm trying to ./confgure | make the
> plugins. I 'm seeing errors on a few of the check_commands. Notably
> check_http, and check_procs -- which is of course the 2 I need the most.
> I've googled around, edited config.h for procs and tried --withour-openssl
> for http tried to manually make them in the plugin directory after a
> succesfull ./configure.
>
> First some system info:
> root @ paranoid: /usr/local/nagios/bin/nagios -v
>
> Nagios 2.7
> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
> Last Modified: 01-19-2007
>
> root @ paranoid: uname -a
> SunOS paranoid 5.10 Generic_118822-25 sun4v sparc SUNW,Sun-Fire-T200
>
> root @ paranoid: gcc --version
> gcc (GCC) 3.4.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> root @ paranoid: ssh -V
> Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
>
> root @ paranoid: openssl version
> OpenSSL 0.9.7d 17 Mar 2004
>
> root @ paranoid: pwd
> /tmp/nagios-plugins-1.4.6
>
> =========================================
>
> And here are the errors
> root @ paranoid: make check_http
> /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2   -L. -o check_http
> check_http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a
> ../gl/libgnu.a  -lnsl -lsocket -lresolv  -lnsl -lsocket
> gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o
> -L/tmp/nagios-plugins-1.4.6/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
> -lresolv -lnsl -lsocket
> Undefined                       first referenced
> symbol                             in file
> SSL_load_error_strings              sslutils.o
> SSL_write                           sslutils.o
> OpenSSL_add_all_algorithms          sslutils.o
> SSL_set_fd                          sslutils.o
> SSL_free                            sslutils.o
> SSL_read                            sslutils.o
> SSLv23_client_method                sslutils.o
> SSL_new                             sslutils.o
> SSL_CTX_new                         sslutils.o
> SSL_connect                         sslutils.o
> SSL_shutdown                        sslutils.o
> SSL_CTX_free                        sslutils.o
> SSL_library_init                    sslutils.o
> ld: fatal: Symbol referencing errors. No output written to check_http
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `check_http'
>
> root @ paranoid: ./check_procs -w 10 -c 20 --metric=CPU
> CRITICAL - Plugin timed out after 10 seconds
>
> =========================================
>
> After the make fails, I can go into plugins/  and make the other
> check_commands; example:
> root @ paranoid: ./check_users
> ./check_users: not found
> root @ paranoid: make check_users
> if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I.
> -I. -I.. -I.. -I../lib -I../gl -I../intl   -D_REENTRANT  -g -O2 -MT
> check_users.o -MD -MP -MF ".deps/check_users.Tpo" -c -o check_users.o
> check_users.c; \
> then mv -f ".deps/check_users.Tpo" ".deps/check_users.Po"; else rm -f
> ".deps/check_users.Tpo"; exit 1; fi
> In file included from check_users.c:42:
> common.h:179: warning: static declaration of 'floorf' follows non-static
> declaration
> /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2   -L. -o check_users
> check_users.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o -lnsl
> -lsocket
> gcc -g -O2 -o check_users check_users.o utils.o popen.o  -L/tmp/nagios-
> plugins-1.4.6/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket
> root @ paranoid: ./check_users
>
>
> Usage:check_users -w <users> -c <users>
> root @ paranoid: ./check_users -w 3 -c 5
> USERS WARNING - 3 users currently logged in |users=3;3;5;0
>
>
> Sorry for the long email, I wanted to provide enough to hopefully have
> someone call me an idiot for forgetting something dumb, or at least get an
> answer.
>
> Thanks in advance all,
>
> -Marc
>

Where is openssl installed? Are the SSL libs in LD_LIBRARY...


-- 
-sg




More information about the Help mailing list