pcp
[Top] [All Lists]

Re: [pcp] build failure on grundy (ia64 SUSE SLES11 SP1)

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] build failure on grundy (ia64 SUSE SLES11 SP1)
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 1 Sep 2014 02:08:40 -0400 (EDT)
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <540409E1.4080702@xxxxxxxxxxxxxxxx>
References: <540409E1.4080702@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: wa9dojLgxVIUix90LXYpNtkYgI86Ow==
Thread-topic: build failure on grundy (ia64 SUSE SLES11 SP1)

----- Original Message -----
> events.o: In function `sample_fetch_highres_events':
> /home/kenj/src/pcp/pcp-3.9.10/pcp-3.9.10/src/pmdas/sample/src/events.c:310:
> undefined reference to `clock_gettime'
> 
> Looks like we need -lrt for this platform and the sample PMDA.
> 
> If clock_gettime() does not live in a consistent library, e.g. on Ubuntu, the
> man page says ...
> 
>       Link with -lrt (only for glibc versions before 2.17).
> 
> then we'll need the LIB_FOR_RT glue.  I see that is already in configureland,
> so the attached patch seems all that is needed.
> 
> Leaving this one for Nathan to review and commit.

Thanks Ken, looks good - I thought we'd be OK, as lustrecomm PMDA has an open
coded use of clock_gettime - I missed that its linking with -lrt already.  I
guess we should push this (macro-isation) through in that spot too - will do.

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>