Hmm, Xapian should build fine with a reasonably recent clang (older clang versions lacked good C++ support).

We have a buildbot builder for clang on Linux which is green:

http://buildbot.xapian.org/builders/stable%20tar%20clang%20linux%20amd64

What fails if you build with clang?