On Mon, Dec 05, 2005 at 06:51:07PM +0000, Francis Irving
wrote:> I'm installing Search-Xapian-0.9.2.2 (from
> http://search.cpan.org/~kilinrax/Search-Xapian-0.9.2.2/Xapian.pm)
> on top of xapian-core-0.9.2
>
> I get the following errors:
>
> g++ -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.9.2.1\"
-DXS_VERSION=\"0.9.2.1\" -fPIC "-I/usr/lib/perl/5.8/CORE"
Xapian.c
This seems to think it's 0.9.2.1 not 0.9.2.2 (could be Alex failed to
update the version, or it could be you aren't using the version you
think you are).
> XS/WritableDatabase.xs: In function ???void
XS_Search__Xapian__WritableDatabase_new3(PerlInterpreter*, CV*)???:
> XS/WritableDatabase.xs:32: error: ???InMemory??? has not been declared
> /usr/include/fcntl.h:76: error: too few arguments to function ???int
open(const char*, int, ...)???
> XS/WritableDatabase.xs:32: error: at this point in file
> XS/WritableDatabase.xs:32: error: no match for ???operator=??? in ???*
RETVAL = open(<expression error>)???
> /usr/local/include/xapian/database.h:261: note: candidates are: void
Xapian::WritableDatabase::operator=(const Xapian::WritableDatabase&)
> make: *** [Xapian.o] Error 1
Well, my guess from the information here would be it's GCC 4.0.1 being
fussier about C++ syntax.
What does "g++ -v" report?
Cheers,
Olly