error: Couldn't find clock_gettime
When i install libdrm, i get the following error:
checking for clock_gettime... no
checking for clock_gettime in -lrt... no
configure: error: Couldn't find clock_gettime
It seems that it cannt find clock_gettime function, but i find it as follow:
$ grep clock_gettime /usr/include/time.h
extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
Can anybody help me? Thanks a lot!
'librt.so' is provided by 'glibc-devel'
Please check with : rpm -qa | grep glibc
If no 'glibc-devel' : you will have to install it ..
# yum install glibc-devel
Thanks for your reply! I have already installed glibc-devel.
$ rpm -qa|grep glibc-devel
Did you find a solution ?
No, the glibc-devel is installed in my system, i dont know why it cant find it. Thanks!
I tested libdrm versions 1.0.5, 2.3.1, 2.4.21
on CentOS 4 , before writing post #2.
No errors, any version.
( 2.4.21 requires libpthread-stubs ).
I have have glibc-devel-2.3.4-2.43.
Yours is older, the clock_gettime object may be
slightly different ?
Not easy to upgrade glibc with no Redhat account.
I wouldn't try it. Then rather install a new OS.
( And no guaranty, that libdrm will work at all,
no package libdrm for EL 4 might indicate that.)
Redhat AS 4 is from February 2005.
Thanks, maybe i need install the CentOS!
I realise this is an old thread, but I had the same problem.
I had glibc-devel installed and got the
configure: error: Couldn't find clock_gettime error when trying to compile 32-bit mesa
I am running a 64-bit version of fedora and had the 64-bit glibc-devel installed.
If run 'yum install glibc-devel.i686'
that should get round the clock_gettime error, or at least it did for me.
|All times are GMT -5. The time now is 07:50 PM.|