Xymon Mailing List Archive search

Can not compile 4.2.3 on CentOS 5.2

list Ryan Novosielski
Tue, 21 Dec 2010 11:48:45 -0500
Message-Id: <user-a782a6f3ff8b@xymon.invalid>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just set it in the environment of the shell you are using to do the build.

I found the one I was looking for later on: LIBRTDEF=-lrt .

Incidentally, I Google'd it again this morning and found like 30 hits
for CentOS xymon 4.2.3 that were all relevant... just sayin'... ;)

On 12/21/2010 09:34 AM, Josh Luthman wrote:
Where would I put this?

On Dec 21, 2010 8:22 AM, "Xymon User in Richmond"
<user-24d6f8323faa@xymon.invalid <mailto:user-24d6f8323faa@xymon.invalid>>
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
&lt;user-4c45a83f15cb@xymon.invalid
<mailto:user-f34fb3d8bd19@xymon.invalid>&gt; 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: XXX-XXX-XXXX

Direct: XXX-XXX-XXXX

XXXX Wayne St

Suite XXXX

Troy, OH XXXXX


xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>

xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0Q2m0ACgkQmb+gadEcsb63fACg2WUQX2JgSJUdJsVXrdwnUk99
zjsAn3UbvChxQ7y6hE9Q36Q8+Xnj5kgY
=3Ozz
-----END PGP SIGNATURE-----