<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear Roland,<br>
    thank you very much for your help, following your instruction I
    successfully compiled the client. Finally I could start enjoying on
    creating my monitor scripts.<br>
    <br>
    Kind regards,<br>
     Daniele Barreca<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 22/01/13 22:08, Roland Soderstrom
      wrote:<br>
    </div>
    <blockquote
cite="mid:C29623A056498F4ABC13EAFFC5112D5D27C48C18@CSS0031.logicaltech.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This
            is my rude procedure for compiling on Solaris.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
            compiled several versions on Solaris, there is a few trick
            that you need to know.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">For
            the server compilation you need a bunch of SUN freeware
            packages, I just use the same host for a client package,
            probably less deps for client only.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">On
            the client itself you need some of these installed as well.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Same
            procedure for x86.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If
            you use blastwave packages it is a bit different….<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a class="moz-txt-link-abbreviated" href="http://www.sunfreeware.com">www.sunfreeware.com</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">binutils
            (SMCbinut)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            db (SMCdb47)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            freetype (SMCftype)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            gcc (SMCgcc)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            libart_lgpl (SMClibart)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            libpng (SMClibpng)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            libtool (SMClibt)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            libiconv (SMCliconv)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            libintl (SMClintl)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            make (SMCmake)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            openldap (SMColdap)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            openssl (SMCossl)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            pcre (SMCpcre)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            rrdtool (SMCrrdt)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            sasl (SMCsasl)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   
            zlib (SMCzlib)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">setup
            compiling env.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">groupadd
            -g 1001 xymon<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">useradd
            -u 62001 -g 1001 -d /usr/local/xymon -m -s /usr/bin/bash -c
            "Xymon Owner" xymon<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This
            is for rrdtool, some strange dep, maybe not necessary for
            client as it doesn’t need rrdtool. ( this will force use of
            gnu ld)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">mv
            /usr/ccs/bin/ld /usr/ccs/bin/ld.orig<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">export
            PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">crle
            -u -l /usr/local/lib<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">crle
            -u -l /usr/local/rrdtool-1.2.19/lib<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">umask
            022<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cd
            /var/tmp<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cp
            <xymon source from somewhere> /var/tmp<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">gunzip
            xymon-4.3.10.tar.gz<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">tar
            xf xymon-4.3.10.tar<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cd
            xymon-4.3.10<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">which
            make<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/usr/local/bin/make<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">which
            ld<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/usr/local/bin/ld<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">./configure<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">make<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">make
            install         (this step as root)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-             
            Roland<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"
                lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>
                [<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>]
                <b>On Behalf Of </b>Barreca Daniele<br>
                <b>Sent:</b> Tuesday, 22 January 2013 10:02 PM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
                <b>Subject:</b> [Xymon] xymon client make error solaris
                10: No rule to make target `../lib/xymonclient.a',
                needed by `../client/xymond_client'<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Hi everyone,<br>
          I am trying to compile xymon 4.3.10 on a Solaris 10 SPARC
          64bit server.<br>
          When i run make, after a while the compilation stops with the
          following error:<o:p></o:p></p>
        <p class="MsoNormal"><tt><span style="font-size:10.0pt">...</span></tt><span
            style="font-size:10.0pt;font-family:"Courier New""><br>
            <tt>xymond_client.c: In function `nextsection':</tt><br>
            <tt>xymond_client.c:216: warning: dereferencing type-punned
              pointer will break strict-aliasing rules</tt><br>
            <tt>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT
              -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS
              -I/export/home/xymon/xymon-4.3.10/include -DCLIENTONLY=1
              -DLOCALCLIENT=1 -I/usr/local/include -c -o xymond_worker.o
              xymond_worker.c</tt><br>
            <tt>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT
              -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS
              -I/export/home/xymon/xymon-4.3.10/include -DCLIENTONLY=1
              -DLOCALCLIENT=1 -I/usr/local/include -c -o xymond_buffer.o
              xymond_buffer.c</tt><br>
            <tt>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT
              -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS
              -I/export/home/xymon/xymon-4.3.10/include -DCLIENTONLY=1
              -DLOCALCLIENT=1 -I/usr/local/include -c -o client_config.o
              client_config.c</tt><br>
            <tt>make[1]: *** No rule to make target
              `../lib/xymonclient.a', needed by
              `../client/xymond_client'.  Stop.</tt><br>
            <tt>make[1]: Leaving directory
              `/export/home/xymon/xymon-4.3.10/xymond'</tt><br>
            <tt>make: *** [xymond-client] Error 2</tt></span><o:p></o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">The
          ./configure.client report a<br>
          <tt><span style="font-size:10.0pt">    Checking for
              clock_gettime() requiring librt ...</span></tt><span
            style="font-size:10.0pt;font-family:"Courier New""><br>
            <tt>    clock_gettime() requires librt</tt><br>
          </span>I checked for librt libraries in /lib, they are there
          and in /usr/lib also, my LD_LIBRARY_PATH is correctly set (at
          least, I think so) and libpcre is installed.<br>
          Then, googleing I found a suggestion about adding<br>
              <tt><span style="font-size:10.0pt"> LIBRTDEF="-lrt" in
              build/Makefile.rules </span>
          </tt><br>
          I did it, but nothing changed.<br>
          <br>
          Can anyone help me investigating the error.<br>
          <br>
          Kind regards,<br>
           Daniele Barreca<o:p></o:p></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>