Strange problem with posix timers
kaladen at cox.net
Tue Feb 22 05:47:40 PST 2005
> 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
> /sysdeps/unix/clock_nanosleep.c:73: undefined reference to
> collect2: ld returned 1 exit status
> make: *** [/usr/src/glibc-build/rt/librt.so] Error 1
> make: Leaving directory `/usr/src/glibc-2.3.3-lfs-5.1/rt'
> make: *** [rt/others] Error 2
> make: 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.
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