<div dir="ltr">Forgot to include the list.<br><div><div class="gmail_quote"><br><div dir="ltr"><div><div>Of course, refering to my notes, I have hit (and worked around) that issue before.<br>mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig<br></div>And we get further, but not much.<br><span style="font-family:monospace">gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I/var/tmp/xymon-4.3.17/include -I/opt/csw/include -I/opt/csw/include -DRRDTOOL12 -I/opt/csw/include -c -o perfdata.o perfdata.c<br>In file included from perfdata.c:20:<br>/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:26:26: iso/math_iso.h: No such file or directory<br>In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,<br>                 from perfdata.c:20:<br>/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:30:24: sys/ieeefp.h: No such file or directory<br>In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,<br>                 from perfdata.c:20:<br>/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:104: error: field `fpclass' has incomplete type<br>/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:128: error: field `rd' has incomplete type<br>Makefile:130: recipe for target 'perfdata.o' failed<br>gmake[1]: *** [perfdata.o] Error 1<br>gmake[1]: Leaving directory '/var/tmp/xymon-4.3.17/web'<br>build/Makefile.rules:111: recipe for target 'web-build' failed<br>gmake: *** [web-build] Error 2<br></span><br></div><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 28 November 2014 at 10:24, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Roland<br><br></div><div>Thanks for the quick response.<br><br></div>I have built Xymon on Solaris many times too, and agree, it should just work.<br></div>I did find something interesting just a minute ago.<br></div>Looking through the Makefile, to check what it's looking for, and notices something odd about the c-ares definitions. See below.<br></div><div>Notice the CARESLIBS has no directory defined after the -L<br></div><div>I changed that to CARESLIBS = -L/opt/csw/lib -lcares<br></div><div>And we moved on.<br></div><div>Only to hit another one.<br><span style="font-family:monospace">gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I/var/tmp/xymon-4.3.17/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -DRRDTOOL12 -c -o do_rrd.o do_rrd.c<br>gcc  -o xymond_rrd  xymond_rrd.o       xymond_worker.o do_rrd.o client_config.o ../lib/libxymontime.a -lrt ../lib/libxymoncomm.a  -L/usr/sfw/lib -lssl -lcrypto -lresolv -lsocket -lnsl -lrt -L/opt/csw/lib -lrrd  -L/opt/csw/lib -lpcre<span><br>Undefined                       first referenced<br> symbol                             in file<br></span>XRenderCreateLinearGradient         /opt/csw/lib/libcairo.so.2<br>XRenderCreateRadialGradient         /opt/csw/lib/libcairo.so.2<br>XRenderCreateSolidFill              /opt/csw/lib/libcairo.so.2<br>ld: fatal: Symbol referencing errors. No output written to xymond_rrd<span><br>collect2: ld returned 1 exit status<br></span>Makefile:62: recipe for target 'xymond_rrd' failed<br>gmake[1]: *** [xymond_rrd] Error 1<br>gmake[1]: Leaving directory '/var/tmp/xymon-4.3.17/xymond'<br>build/Makefile.rules:108: recipe for target 'xymond-build' failed<br>gmake: *** [xymond-build] Error 2</span><br><br></div>My next Xymon install will be on Linux!<br>No exceptions!<br><br>--- snip ---<br><br><span style="font-family:monospace"># C-ARES settings<br>SYSTEMCARES = yes<br>CARESINCDIR = -I/opt/csw/include<br><span style="color:rgb(255,0,0)"><b>CARESLIBS = -L -lcares</b></span><br>RPATHVAL +=<br><br># PCRE settings<br>PCREINCDIR = -I/opt/csw/include<br>PCRELIBS = -L/opt/csw/lib -lpcre<br>RPATHVAL += /opt/csw/lib<br><br># RRDtool settings<br>RRDDEF = -DRRDTOOL12<br>RRDINCDIR = -I/opt/csw/include<br>RRDLIBS = -L/opt/csw/lib -lrrd<br>RPATHVAL += /opt/csw/lib<br>DORRD = yes<br>#<br># OpenSSL settings<br>SSLFLAGS = -DHAVE_OPENSSL -DHAVE_SSLV2_SUPPORT<br>SSLINCDIR = -I/opt/csw/include<br>SSLLIBS = -L/usr/sfw/lib -lssl -lcrypto<br>RPATHVAL += /usr/sfw/lib<br>DOSSL = yes<br></span><br></div>--- snip ---<br><div><div><br><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 28 November 2014 at 10:07, Roland Soderstrom <span dir="ltr"><<a href="mailto:Rolands@logicaltech.com.au" target="_blank">Rolands@logicaltech.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#7030A0" vlink="#D99694" lang="EN-AU">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">I’ve compiled 4.3.17 on Solaris Sparc and x86 with OpenCSW, so it should work.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">This is roughly what I do.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i coreutils<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i gzip<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i wget<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -a berkeleydb48<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i freetype<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i libart<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i libpng15_15<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -y -i libtool<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -i -y gcc4core gcc4g++ gmake<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -i -y pcre libpcre_dev<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -i -y rrdtool rrdtool_dev<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -i -y openssl libssl_dev<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -i -y openldap_client openldap_dev<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">pkgutil -i -y fping<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">export PATH=/usr/bin:/usr/sbin:/opt/csw/bin:/opt/csw/sbin:/usr/ccs/bin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">Make SURE /usr/local/<something> or /usr/sfw/<something> is not in any path.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">export LD_LIBRARY_PATH=””<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">crle<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">which gmake<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">/opt/csw/bin/gmake<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">which ld<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">/usr/ccs/bin/ld<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">MAKE=gmake ; /configure<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">gmake<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><u></u> <u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><span>-<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa">Roland<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#005daa"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Vernon Everett<br>
<b>Sent:</b> Friday, 28 November 2014 12:18 PM<br>
<b>To:</b> Xymon mailinglist<br>
<b>Subject:</b> [Xymon] Building a new server - part 2<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%">OK, I was correct about the library packages.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%">Once I installed them, it resolved most of my problems, and the configure script completed OK.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%">On to the make. (Or gmake in my case)<br>
And we hit the next hurdle.<br>
<span style="font-family:"Courier New"">gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I/var/tmp/xymon-4.3.17/include -I/opt/csw/include -o xymonnet  xymonnet.o contest.o httptest.o httpresult.o ldaptest.o dns.o
 dns2.o httpcookies.o -L -lcares -L/opt/csw/lib -lldap -llber ../lib/libxymontime.a -lrt ../lib/libxymoncomm.a  -L/usr/sfw/lib -lssl -lcrypto -lresolv -lsocket -lnsl -lrt ../lib/libxymon.a -L/opt/csw/lib -lpcre<br>
Undefined                       first referenced<br>
 symbol                             in file<br>
ares_process                        dns.o<br>
ares_gethostbyname                  dns.o<br>
ares_strerror                       dns.o<br>
ares_init_options                   dns.o<br>
ares_search                         dns.o<br>
ares_fds                            dns.o<br>
ares_destroy                        dns.o<br>
ares_timeout                        dns.o<br>
ares_expand_name                    dns2.o<br>
ld: fatal: Symbol referencing errors. No output written to xymonnet<br>
collect2: ld returned 1 exit status<br>
Makefile:33: recipe for target 'xymonnet' failed<br>
gmake[1]: *** [xymonnet] Error 1<br>
gmake[1]: Leaving directory '/var/tmp/xymon-4.3.17/xymonnet'<br>
build/Makefile.rules:102: recipe for target 'xymonnet-build' failed<br>
gmake: *** [xymonnet-build] Error 2</span><br>
<br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:115%">Any ideas?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:115%">Regards<br>
Vernon<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%">-- <u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%">"Accept the challenges so that you can feel the exhilaration of victory"<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%">- General George Patton<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div>
</div></div></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div></div>