pcp
[Top] [All Lists]

build failure on grundy (ia64 SUSE SLES11 SP1)

To: PCP <pcp@xxxxxxxxxxx>
Subject: build failure on grundy (ia64 SUSE SLES11 SP1)
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon, 01 Sep 2014 15:53:37 +1000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
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.

Attachment: high-res.patch
Description: Text Data

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