From owner-freebsd-current@FreeBSD.ORG Tue Sep 11 09:55:43 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B122E106564A; Tue, 11 Sep 2012 09:55:43 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9478FC0A; Tue, 11 Sep 2012 09:55:42 +0000 (UTC) Received: by vbmv11 with SMTP id v11so469630vbm.13 for ; Tue, 11 Sep 2012 02:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1qEALlZVA04Axw+6dFDPGSOOIqhXXs/vFGo64sB8hWM=; b=iZqb/mxT9RbUpWV9GP1KHpSdasCik/RpvH8t3wZxh4jSdsazrSyE4baSmyW5H4Y1G/ gY2rAAQRSu/X+DAciU9J9+FhUyzQUnI2VVhMpphv+Ue1TsTfXMz/C5u+vEO28Ep+GUhA 7AAt/LcwS669ct2RIoDXZUqSNIThMCoaOI+GJQOG2hN0w5+imeo0Pt7bf/akLajQpKDG iE1zwNTBEUs4xGHXOK4wZCFS7crsREAN/VJdMPmZNT9LliUR+hTrIs6taA81fMnRMIrz 7dLVWuOjhxUSc/zaCsi2BUG/JipNtG46IZdWjDEGFkWXEKpJm/zDvysT31n6R0TH6Mx/ bz9g== MIME-Version: 1.0 Received: by 10.220.153.200 with SMTP id l8mr24641075vcw.40.1347357342084; Tue, 11 Sep 2012 02:55:42 -0700 (PDT) Received: by 10.58.26.129 with HTTP; Tue, 11 Sep 2012 02:55:41 -0700 (PDT) In-Reply-To: <504D787A.30304@freebsd.org> References: <504D787A.30304@freebsd.org> Date: Tue, 11 Sep 2012 05:55:41 -0400 Message-ID: From: Kim Culhan To: David Xu Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: 10-CURRENT clock_getcpuclockid() usage X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2012 09:55:43 -0000 On Mon, Sep 10, 2012 at 1:19 AM, David Xu wrote: > On 2012/09/08 23:31, Kim Culhan wrote: >> >> clock_getcpuclockid() was added a few weeks ago according to the man page >> and >> I'm seeing this error while building the port net/freeswith-core-devel. >> >> The function is used in the Sofia-sip stack, courtesy Nokia Research >> Center, >> incorporated into FreeSWITCH. >> >> The build system tests for the presence of clock_getcpuclockid() and finds >> it >> but in the error messages 'clock_getcpuclockid2' is mentioned. >> >> Any thoughts on the clock_getcpuclockid() usage would be very greatly >> appreciated. >> >> LTCOMPILE su_time.lo >> su_time.c:410:14: error: implicit declaration of function >> 'clock_getcpuclockid' is invalid in C99 >> [-Werror,-Wimplicit-function-declaration] >> else if (clock_getcpuclockid(0, &cpu) != -1 && >> ^ >> su_time.c:410:14: note: did you mean 'clock_getcpuclockid2'? >> else if (clock_getcpuclockid(0, &cpu) != -1 && >> ^~~~~~~~~~~~~~~~~~~ >> clock_getcpuclockid2 >> /usr/include/sys/time.h:352:5: note: 'clock_getcpuclockid2' declared here >> int clock_getcpuclockid2(id_t, int, clockid_t *); >> ^ >> 1 error generated. >> gmake[9]: *** [su_time.lo] Error 1 >> >> >> thanks >> -kim > > > I have committed a patch, please try it. > > http://svnweb.freebsd.org/base/head/include/time.h?r1=233600&r2=240295 Looks good, thanks. -kim