LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-03-2010, 04:54 AM   #1
cnsoft
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Rep: Reputation: 0
error: Couldn't find clock_gettime


Hi there,

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!
 
Old 07-03-2010, 06:23 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511
Quote:
checking for clock_gettime in -lrt... no
" lrt " means 'librt.so'

'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
.....
 
Old 07-03-2010, 07:41 AM   #3
cnsoft
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi knudfl,

Thanks for your reply! I have already installed glibc-devel.

$ rpm -qa|grep glibc-devel
glibc-devel-2.3.4-2.39
 
Old 07-03-2010, 08:50 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511
Did you find a solution ?


..
 
Old 07-03-2010, 11:18 AM   #5
cnsoft
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
No, the glibc-devel is installed in my system, i dont know why it cant find it. Thanks!
 
Old 07-03-2010, 11:50 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511Reputation: 2511
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.
..

Last edited by knudfl; 07-03-2010 at 11:54 AM.
 
Old 07-03-2010, 01:06 PM   #7
cnsoft
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi knudfl,

Thanks, maybe i need install the CentOS!
 
Old 03-05-2013, 05:55 AM   #8
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ion SlackBuild fails with undefined reference to `clock_gettime'" xflow7 Slackware 1 08-09-2009 07:52 AM
clock_gettime(CLOCK_MONOTONIC,..) fails nathan2225 Programming 7 07-21-2006 09:35 AM
clock_gettime() issue AndreiCiprian Programming 0 03-28-2006 06:04 PM
POSIX.4 clock_gettime function collinss Programming 2 09-13-2005 06:55 AM
POSIX.4 clock_gettime function collinss Linux - General 1 11-24-2003 12:12 PM


All times are GMT -5. The time now is 04:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration