[Nagiosplug-help] Problem with nagios plugin installation

Saurabh Pendharker saurabh at adobe.com
Fri May 23 19:22:18 CEST 2008


Hi Thomas,

Thanks for the response. I have tried the snapshot available at the mentioned site but no luck. I am using the command "./configure --with-nagios-user=nagios --with-nagios-group=nagios" and have got the following:

gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o  -L/softwares/nagios/nagios-plugins-trunk-200805211200/plugins -L/usr/local/ssl/lib ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x3e): In function `dlfcn_load':
: undefined reference to `dlopen'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xab): In function `dlfcn_load':
: undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xd4): In function `dlfcn_load':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x14b): In function `dlfcn_unload':
: undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x20b): In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x257): In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x2fb): In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x347): In function `dlfcn_bind_func':
: undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/softwares/nagios/nagios-plugins-trunk-200805211200/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/softwares/nagios/nagios-plugins-trunk-200805211200'
make: *** [all] Error 2



Thanks & Regards,
Saurabh

-----Original Message-----
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
Sent: Friday, May 23, 2008 6:27 AM
To: Saurabh Pendharker
Cc: 'nagiosplug-help at lists.sourceforge.net'
Subject: Re: [Nagiosplug-help] Problem with nagios plugin installation

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/05/08 08:47 PM, Saurabh Pendharker wrote:
> Hello,
>
> I am trying to install nagios-plugins-1.4.11 on Redhat Linux 4 and am
> getting the following error with I run make command.
>
>
> gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o
> -L/softwares/nagios/nagios-plugins-1.4.11/plugins -L/usr/local/ssl/lib
> ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x3e): In function
> `dlfcn_load':
> : undefined reference to `dlopen'

This is already fixed (was done this morning) in the code repository and the next snapshot (nagios-plugins-trunk-20080522* or more recent) will provide the fix.

You can get the snapshots here: http://nagiosplug.sourceforge.net/snapshot/

The upcomming 1.4.12 release will be almost identical to the current snapshots.

Alternatively you can run the configure command as such:

LDFLAGS=-ldl ./configure <your_options_here>

(ps: I believe "LIBS=-ldl ./configure is more correct but I haven't tested, and using LDFLAGS should work)

If you try the snapshots it would be greatly appreciated that you report success or failure.

Thanks.

Thomas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFINhZO6dZ+Kt5BchYRArAeAJ9U/zZaRUrNhkJfCde9QzlM6Jq+pwCgulN6
FZW8tzZ/heCEUSJfpq/vYvY=
=SuKi
-----END PGP SIGNATURE-----




More information about the Help mailing list