<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
By changing the build/Makefile.rules to add thisline:<br>
LIBRTDEF="-lrt"<br>
I was able to compile the client.  However, it gets a timeout issue as
seen in the hobbitclient log ...<br>
2009-08-10 14:10:15 Whoops ! bb failed to send message - timeout<br>
<br>
Does anyone have any ideas how I can get a good client compile - on a
solaris 10 (sparc) client for xymon-4.2.3<br>
<br>
thanks in advance,<br>
Bill<br>
<br>
-------- Original Message --------<br>
Subject: Re: [hobbit] xymon 4.2.3 client compile error on solaris 10<br>
From: Bill Wagner <a class="moz-txt-link-rfc2396E" href="mailto:william.wagner@ipacc.com"><william.wagner@ipacc.com></a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a>, <a class="moz-txt-link-abbreviated" href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a><br>
Date: 8/7/2009 5:15 PM<br>
<blockquote cite="mid:0KO100L961TFEW70@fe01.ipacc.com" type="cite">
  <pre wrap="">This is a sparc server.

----------Original Message----------

From: Ralph Mitchell <a class="moz-txt-link-rfc2396E" href="mailto:ralphmitchell@gmail.com"><ralphmitchell@gmail.com></a>
Sent: Fri, August 07, 2009 5:05 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a>
Subject: Re: [hobbit] xymon 4.2.3 client compile error on solaris 10

I meant, Solaris10 on Sparc or x86??  And how old a copy is it??  I've got
an early x86 version running in VMware, and in that system the
clock_gettime() function is in librt.
Ralph Mitchell


On Fri, Aug 7, 2009 at 4:42 PM, Ralph Mitchell <a class="moz-txt-link-rfc2396E" href="mailto:ralphmitchell@gmail.com"><ralphmitchell@gmail.com></a>wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Are you building for Solaris10, or an earlier version??  When you ran
./configure did you see this:

   Checking for clock_gettime() requiring librt ...
   clock_gettime() requires librt

It seems like librt may be missing, because that's where clock_gettime()
is, at least in Solaris10.  I've got librt in both /lib and /usr/lib:

     bash-3.00#  ls /lib/librt* /usr/lib/librt*
     /lib/librt.so             /lib/librtld_db.so.1
 /usr/lib/librtld_db.so
     /lib/librt.so.1           /usr/lib/librt.so
/usr/lib/librtld_db.so.1
     /lib/librtld.so.1         /usr/lib/librt.so.1
     /lib/librtld_db.so        /usr/lib/librtld.so.1


Ralph Mitchell


On Fri, Aug 7, 2009 at 3:01 PM, Bill Wagner <a class="moz-txt-link-rfc2396E" href="mailto:william.wagner@ipacc.com"><william.wagner@ipacc.com></a>wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap=""> Can anyone explain the following client compile error?
thanks,
Bill

 # gmake
MAKE="gmake" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
-DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS=""
`pwd`/build/ge                              nconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
config.h created
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS"
RPATHOPT=""                               PCREINCDIR="" SSLFLAGS=""
SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF=""
BBTOPDIR="/export/home/xymon" BBLOGDIR=""
BBHOSTNAME="" BBHOSTIP="10.90.2.100" BBHOSTOS="" LOCALCLIENT="no" gmake -C
lib client
gmake[1]: Entering directory `/opt/xymon-4.2.3/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include  -o
test-endianness test                              -endianness.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o osdefs.o
osdefs                              .c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
cgiurls.o cgiur                              ls.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include  -DCLIENTONLY -c
-o colo                              r-client.o color.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o digest.o
digest                              .c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
encoding.o enco                              ding.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include
-DBBTOPDIR=\"/export/ho                              me/xymon\"
-DBBLOGDIR=\"\" -DBBHOSTNAME=\"\" -DBBHOSTIP=\"10.90.2.100\" -DBBHOSTOS=\"\"
-DBUILD_HOME=\"/export/home/xymon/client\" -c -o
e                              nviron-client.o environ.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
errormsg.o erro                              rmsg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
ipaccess.o ipac                              cess.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include  -c -o
loadhosts.o loadh                              osts.c
loadhosts.c: In function `bbh_item_id':
loadhosts.c:523: warning: return discards qualifiers from pointer target
type
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o md5.o
md5.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o memory.o
memory                              .c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o misc.o
misc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o rbtr.o
rbtr.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include
`./test-endianness` -c                               -o rmd160c.o rmd160c.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
sendmsg.o sendm                              sg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include
`./test-endianness` -c                               -o sha1.o sha1.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o sig.o
sig.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
stackio.o stack                              io.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o
strfunc.o strfu                              nc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include    -c -o suid.o
suid.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include  -DCLIENTONLY -c
-o time                              func-client.o timefunc.c
ar cr hobbitclient.a osdefs.o cgiurls.o color-client.o digest.o encoding.o
environ-client.o errormsg.o ipaccess.o loadhosts.o md5.o
memory                              .o misc.o rbtr.o rmd160c.o sendmsg.o
sha1.o sig.o stackio.o strfunc.o suid.o timefunc-client.o
ranlib hobbitclient.a || echo ""
gmake[1]: Leaving directory `/opt/xymon-4.2.3/lib'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLFLAGS=""
SSL                              INCDIR="" SSLLIBS="" NETLIBS="-lresolv
-lsocket -lnsl" LIBRTDEF="" BBHOME="/export/home/xymon/client" gmake -C
common client
gmake[1]: Entering directory `/opt/xymon-4.2.3/common'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -c -o bb.o bb.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -o ../client/bb bb.o
../lib/hobbitclient.                              a -lresolv -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
clock_gettime
../lib/hobbitclient.a(timefunc-client.o)
ld: fatal: Symbol referencing errors. No output written to ../client/bb
collect2: ld returned 1 exit status
gmake[1]: *** [../client/bb] Error 1
gmake[1]: Leaving directory `/opt/xymon-4.2.3/common'
gmake: *** [common-client] Error 2
#

      </pre>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>




  </pre>
</blockquote>
<br>
</body>
</html>