Comment 1 for bug 608027

Revision history for this message
Yasufumi Kinoshita (yasufumi-kinoshita) wrote :

Did you see warning at building?
"export LIBS=-lrt" is needed for linux.

> if (opt_userstat_running) {
>#ifdef HAVE_CLOCK_GETTIME
> /* get start cputime */
> if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
> start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
>#else
>#warning : HAVE_CLOCK_GETTIME is disabled.
>#warning : Most systems require librt library to use the function clock_gettime().
>#warning : Did you set environment when ./configure ? (e.g. "export LIBS=-lrt" for sh)
>#endif