On Mon, 2010-09-27 at 15:16 +0200, Roberto Riggio wrote: > when compiling a package for openwrt i get the following error: > > ../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. You might want to use a wrapper in your application. Take a look at this: http://bu3sch.de/gitweb?p=pwrtray.git;a=blob;f=backend/timer.c;hb=HEAD#l30 (see the #defines and the syscall() stubs below) -- Greetings Michael. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel