From owner-freebsd-current@FreeBSD.ORG Sat Sep 8 15:31:22 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 A7E00106566C for ; Sat, 8 Sep 2012 15:31:22 +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 61AF38FC18 for ; Sat, 8 Sep 2012 15:31:22 +0000 (UTC) Received: by vbmv11 with SMTP id v11so1103969vbm.13 for ; Sat, 08 Sep 2012 08:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=b6JUoahKvcVEynxRnieHZb2k8z05k5j6EjUKUB72BZo=; b=lyQwXSsx72WCxhiz8wlv4eQwBCZVEt7uZ/TnhlEFScdagkY42MgBxKP+dHK7go8V59 BWYY2BfkvzdGf4U1y6QQ/pyYmx48HxybTYy3kMxpXR0fU8jt24xHNylDwVEhTRjWHq+Q Pe6npwpn1K/rsmowYyoen0ShiPQ9Lt3aAWkcngty05CVdxbr03JK4doaQoD0/u24+MFo PYgKDsud4hz9MBDvoLTgwPrYoGR8Jg8D2poa3Nuz6szZGZy2WyIJ0NZYTcMsc2AsUVC5 GNabmRtd4faaV4LXu1LDqkMF/leXJRJ+ol8LBiJid3cRC7s7R+izKiGe9M1gmBqEDGSL ATCA== MIME-Version: 1.0 Received: by 10.52.28.113 with SMTP id a17mr9340476vdh.47.1347118281786; Sat, 08 Sep 2012 08:31:21 -0700 (PDT) Received: by 10.58.26.129 with HTTP; Sat, 8 Sep 2012 08:31:21 -0700 (PDT) Date: Sat, 8 Sep 2012 11:31:21 -0400 Message-ID: From: Kim Culhan To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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: Sat, 08 Sep 2012 15:31:22 -0000 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