[Xapian-devel] 1.0.14 Core Build Error

James Aylett james-xapian at tartarus.org
Wed Aug 5 12:34:15 BST 2009


On Wed, Aug 05, 2009 at 03:31:42AM +0100, Olly Betts wrote:

> Well, "__base_ctor" is nothing to do with us, so this sounds like a
> toolchain issue.  Google turns up a few hits for "__base_ctor is
> deprecated", but I didn't see anything explaining it.

I can reproduce this error with both XCode 3.1.2 and 3.1.3.

> make CXXFLAGS=-Wno-error api/omquery.lo

This passes fine. No other compilation units have this problem.

> If you can find a fix, I can try to slot it into configure or the
> makefiles.

This is happening (and only happening here) because this version/patch
of gcc emits deprecated constructors as warnings in a different way
from deprecated functions or methods. This is the only deprecated
constructor right now.

Quite why this is suddenly biting (given I was able to build this not
that long ago, and nothing obvious has changed around this code or the
deprecation system) I don't know. Possibly a knock-on effect of more
recent autotools?

To fix this, we could conditionally redefine #define
XAPIAN_DEPRECATED(D) (D) within api/query.h, although that's not very
pleasant. Given it only happens on this platform (that we know of)
I don't feel that a solution involving a different macro for
deprecated constructors is wise.

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-devel mailing list