Hi! I've encountered some problems building the code. So I stuck for a while. Here is what I have:========================================================================In file included from backends/dbcheck.cc:30:In file included from backends/glass/glass_database.h:31:In file included from backends/glass/glass_docdata.h:26:In file included from backends/glass/glass_lazytable.h:24:In file included from backends/glass/glass_table.h:34:./common/io_utils.h:40:12: error: use of undeclared identifier 'fdatasync'? ? return fdatasync(fd) == 0;? ? ? ? ? ?^1 error generated.make[3]: *** [backends/dbcheck.lo] Error 1make[2]: *** [all-recursive] Error 1make[1]: *** [all] Error 2make: *** [all] Error 2 ========================================================================I'm running Mac OS X 10.10.1 (14B25).Waiting for your reply.?? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20150125/78d35f23/attachment.html>
On Sun, Jan 25, 2015 at 10:16:14PM +0000, Vlad Shablinsky wrote:>./common/io_utils.h:40:12: error: use of undeclared identifier 'fdatasync'[...]> I'm running Mac OS X 10.10.1 (14B25).Waiting for your reply.??I recently fixed the configure test for fdatasync() which was previously always failing to detect its presence. OS X doesn't provide fdatasync(), and it's not declared in the headers, but there's a dummy implementation in the library which configure finds, so my change broke the build on OS X. I've just added a check for a declaration of fdatasync() to configure. Can you retry with the latest trunk (make sure you have commit d6c72a2)? Cheers, Olly