[Xapian-discuss] Building Xapian/Omega using Cygwin

James Aylett james-xapian at tartarus.org
Wed Aug 10 10:29:02 BST 2005


On Tue, Aug 09, 2005 at 08:32:29PM +0200, Floris Bos wrote:

> slightly off topic:
> I want to use Omega from within PHP (as I told in the other topic I 
> posted). I of course have to install omega for that but do I also have to 
> install Xapian or can I also install Omega by referring to the uninstalled 
> Xapian library I have on my pc somehow? I tried this by referring to the 
> file xapian-config in the directory with the uninstalled library but it 
> didn't work for me.

You must install Xapian before installing Omega. 

> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../common -I../../include
> -I../../include -Wall -W -Wredundant-decls -Wundef -Wpointer-arith
> -Wcast-qual -Wcast-align -Wno-multichar -Wno-long-long
> -fno-gnu-keywords -g -O2 -MT quartz_database.lo -MD -MP -MF
> .deps/quartz_database.Tpo -c quartz_database.cc -DPIC -o
> .libs/quartz_database.o
>
> In file included from quartz_database.cc:52:
> ../../common/safewindows.h:25:3: #error Including safewindows.h, but 
> __WIN32__ not defined!
> quartz_database.cc: In member function `void QuartzDatabase::apply()':
> quartz_database.cc:472: warning: 'old_revision' might be used uninitialized 
> in this function
> quartz_database.cc:473: warning: 'new_revision' might be used uninitialized 
> in this function
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_list.h: In member 
> function `virtual void QuartzWritableDatabase::replace_document(Xapian::docid, 
> const Xapian::Document&)':
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_list.h:435: warning: 
> '__p' might be used uninitialized in this function
> make[3]: *** [quartz_database.lo] Error 1
> make[3]: Leaving directory 
> `/cygdrive/e/website/xapian-core-0.9.2/backends/quartz'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/cygdrive/e/website/xapian-core-0.9.2/backends'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/e/website/xapian-core-0.9.2'
> make: *** [all] Error 2

This is the actual error, so it's the only thing we need to look
at. It looks like the cygwin build system isn't making it clear that
it's building under Windows, or possibly something somewhere is
clearing the __WIN32__ define.

Pretty sure we don't touch it, so it'll be something else. What was
your configure line?

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list