From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 01:16:05 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 14CB116A469; Mon, 18 Jun 2007 01:16:05 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0421813C448; Mon, 18 Jun 2007 01:16:05 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5I1Fwda067647; Mon, 18 Jun 2007 01:16:01 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4675DCF2.7050006@freebsd.org> Date: Mon, 18 Jun 2007 09:16:34 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Kargl References: <20070616203624.GA37899@crodrigues.org> <20070616205434.GA26966@troutmask.apl.washington.edu> In-Reply-To: <20070616205434.GA26966@troutmask.apl.washington.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: deischen@freebsd.org, Craig Rodrigues , freebsd-current@freebsd.org Subject: Re: Undefined symbol timer_delete()? 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: Mon, 18 Jun 2007 01:16:05 -0000 Steve Kargl wrote: > [snip] > You failed to include the actual command you used to compile > your program. So, I'm guessing pilot error. > > mobile:kargl[203] cat > j.c > #include > int main(void) { > timer_t timerid; > timer_delete(timerid); > return 0; > } > mobile:kargl[204] cc -o z j.c > /tmp/ccisiugw.o(.text+0x18): In function `main': > : undefined reference to `timer_delete' > mobile:kargl[205] cc -o z j.c -lrt > > It appears that the manpage is wrong > > LIBRARY > Standard C Library (libc, -lc) > > Hint: > (cd /usr/src/lib ; find . -name \*.map | xargs grep timer) > I will fix the manpages, thanks. David Xu