coreutils/date.c with FEATURE_DATE_NANO=y broken?
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Wed Jun 16 22:41:53 UTC 2010
On Wed, 16 Jun 2010, Douglas Mencken wrote:
> Please post the stuff we exchanged above: some header from your lib,
> some preprocessed source, some config.
Alright. I can locate clock_gettime in the preprocessed date.i:
,----
| # 328 "/usr/include/time.h" 3 4
| extern int nanosleep (const struct timespec *__requested_time,
| struct timespec *__remaining);
|
| extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
|
| extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
`----
and the man page on my box mentions:
,----
| Link with -lrt.
`----
and linking with librt works:
... -Wl,--start-group -lcrypt -lm -lrt -Wl,--end-group
vs. makefiles generated:
... -Wl,--start-group -lcrypt -lm -Wl,--end-group
Cheers,
--
Cristian
More information about the busybox
mailing list