[hobbit] xymon 4.2.3 client compile error on solaris 10

Ralph Mitchell ralphmitchell at gmail.com
Fri Aug 7 23:42:51 CEST 2009


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 <william.wagner at ipacc.com>wrote:

>  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
> #
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090807/43ebb4e3/attachment.html>


More information about the Xymon mailing list