On Mon, Sep 27, 2010 at 11:14:59PM +0200, Michael Büsch wrote:
> > ../lib/libclicktool_build.a(glue.bo): In function `click_random_srandom()':
> > glue.cc:(.text+0xa40): undefined reference to `clock_gettime'
> > 
> > Any idea about where the problem could be?
> 
> uclibc does not support the clock_xxx functions. The kernel implements
> them, however.

That is strange, BIRD also uses clock_gettime() and can be compiled with
uclibc (for OpenWRT) without problems. Perhaps there is just a problem
in linker options, you need to add -lrt (at least on glibc) to link with
a library containing clock_gettime().

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: [email protected])
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

Attachment: signature.asc
Description: Digital signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to