[uClibc]no clock_gettime source in uClibc?

Alicia da Conceicao alicia at engine.ca
Tue Feb 26 21:50:34 UTC 2002


Hi everybody:

I just checked out the latest uClibc from the public CVS, and
everything compiled nicely.  (Thanks for your assistance.)
However, when attempting to use the uClibc "libc.a" to compile
a simple pthread test program, I got the following error shown
below, which indictates that there is no clock_gettime present
in libc.a.

In fact the only reference to clock_gettime in the uClibc source
tree is:

=================================================================
> grep clock_gettime `find /opt/uClibc/src/uClibc -type f`
/opt/uClibc/src/uClibc/include/time.h:extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
=================================================================

Suggestions, comments, anyone?  Thanks in advance.
Alicia.

=================================================================
arm-elf-gcc -o demo demo.o -Wl,-elf2flt -DEMBED -Os -L/opt/uClinux-current/src/libns -elf2flt -Os -lpthread 
-X -o demo -elf2flt /opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/crtbegin.o /opt/uClinux/arm-elf/lib/crt0.o -L/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3 -L/opt/uClinux/arm-elf/lib demo.o -elf2flt -lpthread -lgcc -lc -lgcc /opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/crtend.o
demo.o: In function `task_code':
demo.o(.text+0xe0): undefined reference to `clock_gettime'
demo.o(.text+0x1c0): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
gmake[1]: *** [demo] Error 1
=================================================================




More information about the uClibc mailing list