[Xapian-discuss] Error on ./configure process with Xapian-bindings-0.9.6

Olly Betts olly at survex.com
Mon Sep 18 22:46:33 BST 2006

On Mon, Sep 18, 2006 at 01:57:41PM -0700, Sebi wrote:
> I searched for crtdbg.h hader and there is no such file in Mingw. Also
> i did not find a header for __assume which is included in MINGW. Maybe
> __assume is included into crtdbg.h.  What do you know about  this
> header? I search with google but nothing interesting.

Top hit in Google for "crtdbg.h" seems fairly informative:


Sounds like Microsoft specific malloc heap debugging stuff.  Sadly it's
unconditionally included by PHP.

And __assume just seems to be a way to provide hints to the optimiser, so
you should be able to safely add "-D__assume(X)=":


In fact for GCC, "-D__assume(X)=__builtin_expect(!(X),0)" might result
in better code.

I suspect it's going to be a struggle to get from here to working - the
PHP developers seem to have made a lot of compiler-specific assumptions.
And it's possible that even if you did get it to work with mingw, it
just wouldn't work with PHP compiled with the MS compiler.

You can download the MS compiler without paying, so perhaps that's an
easier route.  But beware that the licence had some rather obnoxious
terms when I last looked, so check it carefully before assuming it's OK
to use for whatever you're doing.  There's no price tag, but it's
certainly not Free Software!


More information about the Xapian-discuss mailing list