----- 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
|