Strange problem with posix timers

kaladen kaladen at cox.net
Tue Feb 22 05:47:40 PST 2005


lanas wrote:
> Hi all,
> 
>   I get the following rather strange error when compiling glibc (LFS
> 5.1.1) in Chap 05.  I've triple-checked the compile instructions and
> verified if the environment (i.e. bashrc and .bash_profile of user) was
> properly loaded.  So far, I have squarely no clue about what is the
> problem exactly.  Here goes (lines may be wrapped by e-mail editor) :
> 
> ../sysdeps/unix/clock_nanosleep.c:59: undefined reference to
> `__libc_missing_posix_timers'
> 
> /usr/src/glibc-build/rt/librt_pic.a(clock_nanosleep.os)(.text+0x16d):..
> /sysdeps/unix/clock_nanosleep.c:73:  undefined reference to
> `__libc_missing_posix_timers'
> 
> collect2: ld returned 1 exit status
> make[2]: *** [/usr/src/glibc-build/rt/librt.so] Error 1
> make[2]: Leaving directory `/usr/src/glibc-2.3.3-lfs-5.1/rt'
> make[1]: *** [rt/others] Error 2
> make[1]: Leaving directory `/usr/src/glibc-2.3.3-lfs-5.1'
> make: *** [all] Error 2
> 
> Why would the posix timers be undefined ?  Aren"t they installed along
> with glibc itself ?
> 
> Any hint would be greatly appreciated.
> 
> Al

Usually when I have problems with undefined references it is a header 
problem.  Double check to make sure your linux-libc-headers and 
linux-headers installations went correctly and your glibc configure has 
the path to the header files.



More information about the lfs-support mailing list