Koum
2005-Dec-22 15:20 UTC
[Xapian-devel] Xapian Binding compile error in Windows XP using CygWin
Hello I'm new with the Xapian and I'm trying to install it in Windows XP SP2. I'm using CygWin (the full version). Have already compiled the xapian-core, using a change found in gmane for the file safewindows.h In cygwin path usr/local/ have the xapian lib etc. For the binding the ./configure command passes ok. when the make starts I get the folowing : .... MANY ERRORS at xapian_wrap.cc ..... ..... /cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bindings/python/modern/xapian_w rap.cc:1661: undefined reference to `_PyInt_AsLong' .libs/xapian_wrap.o: In function `swig_varlink_repr': /cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bindings/python/modern/xapian_w rap.cc:20297: undefined reference to `_PyString_FromString' Info: resolving vtable for Xapian::TradWeightby linking to __imp___ZTVN6Xapian10 TradWeightE (auto-import) Info: resolving vtable for Xapian::BM25Weightby linking to __imp___ZTVN6Xapian10 BM25WeightE (auto-import) collect2: ld returned 1 exit status make[4]: *** [_xapian.la] Error 1 make[4]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin dings/python' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin dings/python' make[2]: *** [all] Error 2 make[2]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin dings/python' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin dings' make: *** [all] Error 2 I tried to make LDFLAGS=-lstdc++ but I get the same errors. Can anybody give me a hint ?
Olly Betts
2005-Dec-22 15:43 UTC
[Xapian-devel] Xapian Binding compile error in Windows XP using CygWin
On Thu, Dec 22, 2005 at 03:20:25PM +0000, Koum wrote:> I'm new with the Xapian and I'm trying to install it in Windows XP SP2. > I'm using CygWin (the full version). > Have already compiled the xapian-core, using a change found in gmane for the > file safewindows.hSo you're using version 0.9.2 I take it?> In cygwin path usr/local/ have the xapian lib etc. > > For the binding the ./configure command passes ok. > when the make starts I get the folowing : > .... > MANY ERRORS at xapian_wrap.cc > ..... > ..... > /cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bindings/python/modern/xapian_w > rap.cc:1661: undefined reference to `_PyInt_AsLong' > .libs/xapian_wrap.o: In function `swig_varlink_repr':Generally it's the *first* errors which are the most interesting. Later ones are often caused by a cascade effect from the compiler failing to recover so are often red herrings. Can you send the full output, or at least the top part? Cheers, Olly