<div dir="ltr">Check out this old post.  <a href="http://lists.xymon.com/archive/2007-June/013621.html">http://lists.xymon.com/archive/2007-June/013621.html</a> ... <div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">It seems that your openssl libraries do not automatically pull in the
libdl library when you link with it.

As a workaround, you can change build/Makefile.test-ssl: The "test-link"
command reads
   @$(CC) $(CFLAGS) $(OSSLLIB) -o test-ssl test-ssl.o -lssl -lcrypto $(NETLIBS)
Add a "-ldl" after the "$(NETLIBS)".

That should allow the configure script to complete. After that, you must
change the top-level Makefile: It has a line with
   SSLLIBS = -L/usr/lib -lssl -lcrypto
Change that to
   SSLLIBS = -L/usr/lib -lssl -lcrypto -ldl


Regards,
Henrik</pre><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 12:10 PM, Robles, Chris <span dir="ltr"><<a href="mailto:CROBLE@milwaukee.gov" target="_blank">CROBLE@milwaukee.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">New installation of Xymon 4.3.21 on OpenSUSE 13.2.  Xymon won’t compile with SSL support even though I have OpenSSL and libopenssl-devel installed.  When I run “openssl version” it says OpenSSL 1.0.1k-fips.<u></u><u></u></p>
<p class="MsoNormal">Here is what I see when I run ./configure:  (note: I also tried running configure.server with –sslinclude and –ssllib).   When I run “openssl verions –a” I don’t see gcc listed under compiler.  I see “-I. –I.. –I../incluse –fPIC” etc. 
 I may have installed gcc after openssl, but gcc is installed.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Checking for OpenSSL ...<u></u><u></u></p>
<p class="MsoNormal">Compiling with SSL library works OK<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x11): undefined reference to `dlopen'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x24): undefined reference to `dlsym'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x2f): undefined reference to `dlclose'<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x344): undefined reference to `dlsym'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x3eb): undefined reference to `dlerror'<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x464): undefined reference to `dlsym'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x50b): undefined reference to `dlerror'<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x579): undefined reference to `dlopen'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x5db): undefined reference to `dlclose'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x613): undefined reference to `dlerror'<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x69f): undefined reference to `dladdr'<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x701): undefined reference to `dlerror'<u></u><u></u></p>
<p class="MsoNormal">/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':<u></u><u></u></p>
<p class="MsoNormal">dso_dlfcn.c:(.text+0x752): undefined reference to `dlclose'<u></u><u></u></p>
<p class="MsoNormal">collect2: error: ld returned 1 exit status<u></u><u></u></p>
<p class="MsoNormal">Makefile.test-ssl:7: recipe for target 'test-link' failed<u></u><u></u></p>
<p class="MsoNormal">make: *** [test-link] Error 1<u></u><u></u></p>
<p class="MsoNormal">Warning: Cannot link with SSL library<u></u><u></u></p>
<p class="MsoNormal">OpenSSL include- or library-files not found.<u></u><u></u></p>
<p class="MsoNormal">Although you can use Xymon without OpenSSL, you will not<u></u><u></u></p>
<p class="MsoNormal">be able to run network tests of SSL-enabled services, e.g. https.<u></u><u></u></p>
<p class="MsoNormal">So installing OpenSSL is recommended.<u></u><u></u></p>
<p class="MsoNormal">OpenSSL can be found at <a href="http://www.openssl.org/" target="_blank">http://www.openssl.org/</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If you have OpenSSL installed, use the "--sslinclude DIR" and "--ssllib DIR"<u></u><u></u></p>
<p class="MsoNormal">options to configure to specify where they are.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Chris Robles   <span style="color:#4f81bd">
|</span>   <b>City of Milwaukee</b>   <span style="color:#4f81bd">|</span>  Information Technology & Management Division 
<span style="color:#4f81bd">|</span> Ph: <a href="tel:414.286.8096" value="+14142868096" target="_blank">414.286.8096</a>  <span style="color:#4f81bd">
|</span>   <a href="mailto:Chris.Robles@milwaukee.gov" target="_blank">Chris.Robles@milwaukee.gov</a>    <u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
The City of Milwaukee is subject to Wisconsin Statutes related to public records. Unless otherwise exempted from the public records law, senders and receivers of City of Milwaukee e-mail should presume that e-mail is subject to release upon request, and is
 subject to state records retention requirements. See City of Milwaukee full e-mail disclaimer at <a href="http://www.milwaukee.gov/email_disclaimer" target="_blank">www.milwaukee.gov/email_disclaimer</a>
</div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>