dirkvdb / lastfmlib

Automatically exported from code.google.com/p/lastfmlib
GNU General Public License v2.0
1 stars 2 forks source link

'CLOCK_REALTIME' was not declared #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get an error when trying to compile lastfmlib under Tiger running on a 
MacBook. 

utils/condition.cpp: In member function 'bool utils::Condition::wait
(utils::Mutex&, int)': 
utils/condition.cpp:35: error: 'CLOCK_REALTIME' was not declared in this 
scope 
utils/condition.cpp:35: error: 'clock_gettime' was not declared in this 
scope 
make[2]: *** [liblastfm_la-condition.lo] Error 1 
make[1]: *** [all-recursive] Error 1 
make: *** [all-recursive] Error 1 

I've uploaded my config output and make output, incase that helps. 

http://www.divshare.com/download/5324219-872 

http://www.divshare.com/download/5324220-5c2 

Original issue reported on code.google.com by Sp1der...@gmail.com on 7 Sep 2008 at 2:16

GoogleCodeExporter commented 9 years ago
I found a similar issue report: http://bugs.mysql.com/bug.php?id=34095

Seems like clock_gettime is not supported on all platforms. I'll try using a 
clock
function that is supported on all platforms.

Original comment by dirk.vdb on 7 Sep 2008 at 2:22

GoogleCodeExporter commented 9 years ago
I found this on google.

http://64.233.183.104/search?q=cache:fhTP8jD8JGoJ:varnish.projects.linpro.no/
ticket/49+CLOCK_REALTIME+OS+x&hl=en&ct=clnk&cd=6&gl=uk

use gettimeofday() instead of clock_gettime() when the latter is not available

Not sure if its any help to you.

Original comment by Sp1der...@gmail.com on 7 Sep 2008 at 2:37

GoogleCodeExporter commented 9 years ago
Can you try the version in subversion, it uses gettimeofday in stead of 
clock_gettime()

Original comment by dirk.vdb on 7 Sep 2008 at 4:51

GoogleCodeExporter commented 9 years ago
That seems to have compiled, now to compile MediaTomb and test.

Cheers.

Original comment by Sp1der...@gmail.com on 7 Sep 2008 at 5:01

GoogleCodeExporter commented 9 years ago
ok, good to hear.

Original comment by dirk.vdb on 7 Sep 2008 at 5:34