kartik0000 / c-obix-tools

Automatically exported from code.google.com/p/c-obix-tools
0 stars 0 forks source link

Build fails on Mac OS #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run ./configure.ac

What is the expected output? What do you see instead?
Expected: Makefiles are created successfully. 
Observed: 

checking for CURL... yes
checking for LIBXML... yes
checking for library containing clock_gettime... no
configure: error: Unable to find library with clock_gettime definition    
(normally it is rt). Sorry but the project will not compile.

Original issue reported on code.google.com by Litvinov...@gmail.com on 31 May 2011 at 2:13

GoogleCodeExporter commented 8 years ago
Mac OS doesn't have POSIX realtime extension implemented. So, there is no 
clock_gettime() function. The workaround is to use gettimeofday() function 
instead. However, it is more convenient to keep clock_gettime() function as it 
returns time in nanoseconds format, which is used by other POSIX API calls. 

TODO: add a separate file (e.g. clock_gettime.c) which implements 
clock_gettime() function on top of gettimeofday(). Update makefiles to include 
this source file in case, when there is no librt. 

Original comment by Litvinov...@gmail.com on 31 May 2011 at 2:19

GoogleCodeExporter commented 8 years ago
Also, take a look at these links:
http://lists.apple.com/archives/Darwin-dev/2008/Jan/msg00073.html
http://lists.apple.com/archives/unix-porting/2008/Oct/msg00001.html

Original comment by Litvinov...@gmail.com on 31 May 2011 at 2:43