[xymon] Can not compile 4.2.3 on CentOS 5.2

Xymon User in Richmond hobbit at epperson.homelinux.net
Tue Dec 21 17:44:46 CET 2010


Usually in the top-level Makefile.  I can't verify it for this particular
situation, but trying it can't hurt.  Nor do I understand why gcc has to
be told to search the rt library in some situations, but not in
essentially similar ones.

On Tue, December 21, 2010 09:34, Josh Luthman wrote:
> Where would I put this?
> On Dec 21, 2010 8:22 AM, "Xymon User in Richmond" <
> hobbit at epperson.homelinux.net> wrote:
>> Usually clock_gettime undefined refs are solved by LDADD=-lrt.
>>
>> On Tue, December 21, 2010 02:51, Ryan Novosielski wrote:
>>> I just Google'd for this question this very afternoon. There is one
>>> environment variable you need to set prior to compiling (LIBDEF=-lrt
>>> maybe? Close, if not exact). See what you find.
>>>
>>> -- Sent from my Palm Pre On Dec 20, 2010 21:40, Josh Luthman
>>> <josh at imaginenetworksllc.com <lt%3Bjosh at imaginenetworksllc.com>>
> wrote:
>>>
>>> I can compile 4.2.2 just fine. 4.2.3 gives me this:
>>>
>>>
>>>
>>> # make
>>>
>>> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
>>>
>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include
>>>
>>> -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DLINUX" RPATHOPT="-Wl,--rpath="
>>>
>>> PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS=""
>>>
>>> LIBRTDEF="" BBTOPDIR="/home/shire" BBLOGDIR="" BBHOSTNAME=""
>>>
>>> BBHOSTIP="192.168.21.188" BBHOSTOS="" LOCALCLIENT="no" make -C lib
>>>
>>> client
>>>
>>> make[1]: Entering directory `/home/shire/xymon-4.2.3/lib'
>>>
>>> make[1]: Nothing to be done for `client'.
>>>
>>> make[1]: Leaving directory `/home/shire/xymon-4.2.3/lib'
>>>
>>> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
>>>
>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include
>>>
>>> -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="-Wl,--rpath=" SSLFLAGS=""
>>>
>>> SSLINCDIR="" SSLLIBS="" NETLIBS="" LIBRTDEF=""
>>>
>>> BBHOME="/home/shire/client" make -C common client
>>>
>>> make[1]: Entering directory `/home/shire/xymon-4.2.3/common'
>>>
>>> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
>>>
>>> -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I/home/shire/xymon-4.2.3/include
>>>
>>> -DCLIENTONLY=1 -o ../client/bb bb.o ../lib/hobbitclient.a
>>>
>>> ../lib/hobbitclient.a(timefunc-client.o): In function `getntimer':
>>>
>>> /home/shire/xymon-4.2.3/lib/timefunc.c:67: undefined reference to
>>>
>>> `clock_gettime'
>>>
>>> ../lib/hobbitclient.a(timefunc-client.o): In function `gettimer':
>>>
>>> /home/shire/xymon-4.2.3/lib/timefunc.c:55: undefined reference to
>>>
>>> `clock_gettime'
>>>
>>> collect2: ld returned 1 exit status
>>>
>>> make[1]: *** [../client/bb] Error 1
>>>
>>> make[1]: Leaving directory `/home/shire/xymon-4.2.3/common'
>>>
>>> make: *** [common-client] Error 2
>>>
>>>
>>>
>>> Not sure what else I can offer to help, but if you need anything let me
>>> know.
>>>
>>>
>>>
>>> Josh Luthman
>>>
>>> Office: 937-552-2340
>>>
>>> Direct: 937-552-2343
>>>
>>> 1100 Wayne St
>>>
>>> Suite 1337
>>>
>>> Troy, OH 45373
>>>
>>>
>>>
>>> To unsubscribe from the xymon list, send an e-mail to
>>>
>>> xymon-unsubscribe at xymon.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> To unsubscribe from the xymon list, send an e-mail to
>> xymon-unsubscribe at xymon.com
>>
>>
>





More information about the Xymon mailing list