xapian core missing link to math on MSYS2

Olly Betts olly at survex.com
Wed Mar 15 23:47:43 GMT 2017

On Wed, Mar 15, 2017 at 10:05:31AM +0100, Mario Emmenlauer wrote:
> I've tried to build xapian-core 1.4.3 on MSYS2. It fails with attached
> error (undefined reference to `exp10').

The issue is that exp10() isn't a standard function.  This is fixed in
git already, so should work with the next release:


There's only one use of exp10() currently, so the simplest workaround is
probably to patch api/omenquire.cc to use __builtin_exp10(x) or pow(10.0, x)
instead of exp10(x) (the former requires GCC).


More information about the Xapian-devel mailing list