[Problem Compiling Plugins] check_disk plugin error compiling, notfinding -lssl -lcrypto

InnovationsTech, Matthew Thomas MThomas at InnovationsTech.com
Sat Apr 1 03:10:41 CEST 2006


Do you have openssl installed?

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marcel Mitsuto Fucatu Sugano
Sent: Friday, March 31, 2006 19:10
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] [Problem Compiling Plugins] check_disk plugin error compiling, notfinding -lssl -lcrypto

Hello, 

I am having problems building the plugins 1.4.2, with gcc3.4.2,
make3.80, on Solaris8:

bash-2.05# uname -sr
SunOS 5.8
bash-2.05# 

Here's the make snip where trouble occurs:
----snip----
gcc -Wall -g -O2 -o check_disk check_disk.o utils.o popen.o
-L/home/msugano/src/nagios-plugins-HEAD-200603221252/plu
gins ../lib/libnagiosplug.a ../lib/libcoreutils.a ../intl/libintl.a /usr/local/lib/libiconv.so -lgen -lsocket -lssl -
lcrypto -R/usr/local/lib -R/usr/local/lib -R/usr/local/ssl/lib
ld: fatal: library -lssl: not found
ld: fatal: library -lcrypto: not found
ld: fatal: File processing errors. No output written to check_disk
collect2: ld returned 1 exit status
make[3]: *** [check_disk] Error 1
----pins----

And even setting up LD_LIBRARY_PATH by fingers, and issuing the line
before the error above:

bash-2.05# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib
bash-2.05# gcc -Wall -g -O2 -o check_disk check_disk.o utils.o popen.o
-L/home/msugano/src/nagios-plugins-HEAD-200603221252/plugins ../lib/libnagiosplug.a ../lib/libcoreutils.a ../intl/libintl.a /usr/local/lib/libiconv.so -lgen -lsocket -lssl -lcrypto -R/usr/local/lib -R/usr/local/lib -R/usr/local/ssl/lib
ld: fatal: library -lssl: not found
ld: fatal: library -lcrypto: not found
ld: fatal: File processing errors. No output written to check_disk
collect2: ld returned 1 exit status
bash-2.05# ls /usr/local/ssl/lib/
engines             libcrypto.so        libcrypto.so.0.9.8  libssl.so
libssl.so.0.9.8
libcrypto.a         libcrypto.so.0.9.7  libssl.a
libssl.so.0.9.7     pkgconfig
bash-2.05# 

As you can see, the libraries are there.

Anyone get into problems compiling the plugins on SunOS 5.8 ??? 

Is there any kind of recommended flags for compiling on Solaris?

Thanks in advance.

Marcel Mitsuto.


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://sobre.uol.com.br/.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list