Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2007 01:44:57 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        Craig Rodrigues <rodrigc@crodrigues.org>, freebsd-current@freebsd.org, davidxu@freebsd.org
Subject:   Re: Undefined symbol timer_delete()?
Message-ID:  <Pine.GSO.4.64.0706170143020.17376@sea.ntplx.net>
In-Reply-To: <20070617013741.GA28285@troutmask.apl.washington.edu>
References:  <20070616203624.GA37899@crodrigues.org> <20070616205434.GA26966@troutmask.apl.washington.edu> <20070616215506.GA87160@crodrigues.org> <20070617013741.GA28285@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0706170143020.17376>