From owner-freebsd-current@FreeBSD.ORG Sun Jun 17 05:45:08 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FD2F16A46B for ; Sun, 17 Jun 2007 05:45:08 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id E163013C483 for ; Sun, 17 Jun 2007 05:45:07 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.14.1/8.14.1/NETPLEX) with ESMTP id l5H5ivDf025933; Sun, 17 Jun 2007 01:44:57 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Sun, 17 Jun 2007 01:44:58 -0400 (EDT) Date: Sun, 17 Jun 2007 01:44:57 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Steve Kargl In-Reply-To: <20070617013741.GA28285@troutmask.apl.washington.edu> Message-ID: References: <20070616203624.GA37899@crodrigues.org> <20070616205434.GA26966@troutmask.apl.washington.edu> <20070616215506.GA87160@crodrigues.org> <20070617013741.GA28285@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Craig Rodrigues , freebsd-current@freebsd.org, davidxu@freebsd.org Subject: Re: Undefined symbol timer_delete()? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 05:45:08 -0000 On Sat, 16 Jun 2007, Steve Kargl wrote: > On Sat, Jun 16, 2007 at 05:55:06PM -0400, Craig Rodrigues wrote: >> On Sat, Jun 16, 2007 at 01:54:34PM -0700, Steve Kargl wrote: >>> mobile:kargl[205] cc -o z j.c -lrt >>> >>> It appears that the manpage is wrong >>> >>> LIBRARY >>> Standard C Library (libc, -lc) >> >> Thanks, yes the man page is wrong, timer_delete() and friends >> are in librt not in libc. >> >> It looks like similarly the man pages for >> mq_open() and friends are wrong, because mq_* exist in librt, not >> in libc. >> >> Do the aio_* functions in this library augment or replace those >> in libc? >> > > I'm not sure. I know the timer_delete function is defined as > a weak symbol aio, timer, and mq are in librt and you need to link to librt in order to use (successfully) use them. Do not try using and relying on libc for these functions, it will not work. -- DE