[Xapian-devel] Xapian core build failure under gcc 2.95
Olly Betts
olly at survex.com
Thu Jan 15 11:39:43 GMT 2009
On Thu, Jan 15, 2009 at 04:53:52PM +1300, David Sainty wrote:
> David Sainty wrote:
> >Under gcc 2.95 Xapian fails to build like so:
>
> I can confirm that the attached patch fixes the build under gcc 2.95
> (after an automake).
Thanks for the patch.
But it seems there's something odd going on, as other subdirectories
also include headers from the same directory without an explicit -I.
The files here are generated, but that shouldn't make a difference as
they are shipped in the tarball and it appears you're building from the
1.0.10 source tarball.
Perhaps the issue is the "#line" directives with full paths in
queryparser_internal.cc - if GCC 2.95 resolves header includes relative
to the filename given by "#line" then that would cause this problem.
Could you try:
perl -pi -e 's/^#line.*//' queryparser/queryparser_internal.cc
And then building without your patch.
(Unfortunately I no longer have access to GCC 2.95 to test this myself).
Another question - what's the reason for using GCC 2.95?
We came quite closing to dropping support for GCC < 3 a while back (but
instead we ended up requiring 2.95.3 which added <sstream>). But I'd
assumed that 2.95 was probably no longer used by now, and there are a
few minor issues we currently work around to keep support for it, so if
there are still people using it I'm interested as to why.
Cheers,
Olly
More information about the Xapian-devel
mailing list