xymon 4.2.3 client compile error on solaris 10
mv652 at softhome.net
mv652 at softhome.net
Wed Aug 12 16:49:43 CEST 2009
I'm happy to send you over my succesfull compiled client if you'd like.
Had some help from the list to get it working. it's the least I could do to
return the help.
Server details:
$ uname -a
SunOS <hostname> 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V240
Regards,
Mario
Bill Wagner writes:
> By changing the build/Makefile.rules to add thisline:
> LIBRTDEF="-lrt"
> I was able to compile the client. However, it gets a timeout issue as
> seen in the hobbitclient log ...
> 2009-08-10 14:10:15 Whoops ! bb failed to send message - timeout
>
> Does anyone have any ideas how I can get a good client compile - on a
> solaris 10 (sparc) client for xymon-4.2.3
>
> thanks in advance,
> Bill
>
> -------- Original Message --------
> Subject: Re: [hobbit] xymon 4.2.3 client compile error on solaris 10
> From: Bill Wagner <william.wagner at ipacc.com>
> To: hobbit at hswn.dk, hobbit at hswn.dk
> Date: 8/7/2009 5:15 PM
>> This is a sparc server.
>>
>> ----------Original Message----------
>>
>> From: Ralph Mitchell <ralphmitchell at gmail.com>
>> Sent: Fri, August 07, 2009 5:05 PM
>> To: hobbit at hswn.dk
>> 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
>> <ralphmitchell at gmail.com>wrote:
>>
>>
>>> 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
>>>> #
>>>>
>>>>
>>>
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
>>
>>
>>
>>
>>
>
>
More information about the Xymon
mailing list