[Nagiosplug-help] Trouble building plugins on debian

Jason Rosenberg jbrosenberg at gmail.com
Sun Apr 23 17:42:07 CEST 2006


Hello, I am having trouble building the plugin distribution, on debian linux...
I am trying to build nagios-plugins-1.4.3

I'm using the debian sarge distribution.....

The error occurs for some reason when trying to link in the ssl library...
OpenSSL is installed....and the library archive appears in the correct
location, etc....

Here's the error:

gcc -Wall -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o 
-L/downloads/nagios/nagios-plugins-1.4.3/plugins ../lib/libnagiosplug.a
../lib/libcoreutils.a -lnsl -lresolv -lssl -lcrypto -Wl,--rpath
-Wl,/usr/local/ssl/lib
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status


Here's the contents of my /usr/local/ssl/lib:

ls -l /usr/local/ssl/lib
total 1908
-rw-r--r--  1 root root 1675726 Oct 13  2005 libcrypto.a
-rw-r--r--  1 root root  259620 Oct 13  2005 libssl.a
drwxr-xr-x  2 root root    4096 Oct 13  2005 pkgconfig


I thought maybe it was looking for a shared .so library, but can't seem
to find where to get one of those (I did find one in /usr/lib, but that
didn't seem to work)....

I finally commented out the --rpath part, so that it succeeded linking the
static .a library.....But then it got a bunch of other compile errors, looking
for SSL_CTX_* type symbols....

I think something's just wrong here....before I go too much further, has anyone
had any luck with this on debian sarge distro?

Jason





More information about the Help mailing list