Undefined symbol timer_delete()?

Daniel Eischen deischen at freebsd.org
Sun Jun 17 05:45:08 UTC 2007

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
>>>      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.


More information about the freebsd-current mailing list