Re: posix timer test program / glibc patch to make glibc posix compliant

From: Tomasz Torcz
Date: Fri Dec 31 2004 - 10:03:42 EST


On Thu, Nov 18, 2004 at 04:26:07PM -0800, Christoph Lameter wrote:
> 2. the source code of the program

How to compile your program? I'm getting linker errors:

zdzichu@mother:/mnt/ram% gcc -lpthread ct.c
/tmp/ccHn66Ii.o(.text+0x19): In function `t_clock_getres':
: undefined reference to `clock_getres'
/tmp/ccHn66Ii.o(.text+0x5c): In function `t_clock_gettime':
: undefined reference to `clock_gettime'
/tmp/ccHn66Ii.o(.text+0x9f): In function `t_clock_settime':
: undefined reference to `clock_settime'
/tmp/ccHn66Ii.o(.text+0xe2): In function `t_clock_getcpuclockid':
: undefined reference to `clock_getcpuclockid'
/tmp/ccHn66Ii.o(.text+0x13b): In function `t_timer_create':
: undefined reference to `timer_create'
/tmp/ccHn66Ii.o(.text+0x17e): In function `t_timer_gettime':
: undefined reference to `timer_gettime'
/tmp/ccHn66Ii.o(.text+0x1c4): In function `t_timer_settime':
: undefined reference to `timer_settime'
/tmp/ccHn66Ii.o(.text+0x20a): In function `t_timer_delete':
: undefined reference to `timer_delete'
/tmp/ccHn66Ii.o(.text+0x247): In function `t_timer_getoverrun':
: undefined reference to `timer_getoverrun'
/tmp/ccHn66Ii.o(.text+0xdb6): In function `clock_scan':
: undefined reference to `clock_gettime'
/tmp/ccHn66Ii.o(.text+0xdd8): In function `clock_scan':
: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
zdzichu@mother:/mnt/ram% fg

(-lpthread is needed to get rid of 'undefined reference to pthread_*'
errors). I have glibc-2.3.3-200410112214.

--
Tomasz Torcz "God, root, what's the difference?"
zdzichu@xxxxxxxxxxxxxxxxx "God is more forgiving."

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/