[Xapian-discuss] xapian with MinGW

Olly Betts olly at survex.com
Wed Jan 9 14:19:57 GMT 2008


On Wed, Jan 09, 2008 at 09:34:08AM +0200, Adi Oanca wrote:
> On Jan 9, 2008 12:53 AM, Olly Betts <olly at survex.com> wrote:
> > How are you running simpleindex?
> 
> 2 ways:
> 1. from Msys, from the BUILD/examples dir I am running the script
> "./simpleindex"

This should be OK.

> 2. from Windows cmd.exe with a modified path to point to .a's and
> xapian's .dll, from a given dir where I have "simpleindex.exe" taken
> from BUILD/examples/.libs.

It would be better to run "make install" and run the install copy.

> > What does the "garbage" backtrace look like?
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x7106505a in strsep () from D:\mingw\msys\bin\msys-1.0.dll
> (gdb) bt
> #0  0x7106505a in strsep () from D:\mingw\msys\bin\msys-1.0.dll
> #1  0x710315c5 in msys-1!calloc () from D:\mingw\msys\bin\msys-1.0.dll
> #2  0x71098644 in msys-1!_ctype_ () from D:\mingw\msys\bin\msys-1.0.dll
> #3  0x710a574c in msys-1!__ctype_ptr () from D:\mingw\msys\bin\msys-1.0.dll
> #4  0x7c926ac8 in ntdll!iswdigit () from C:\WINXP\system32\ntdll.dll
> #5  0xffffffff in ?? ()

Hmm, I wonder if we've called a method on a NULL object pointer here...

> > And does "make check" in the built xapian-core source tree pass?
> 
>    Nope. It gets stuck here:
> 
> [...]
> ../../tests/harness/backendmanager_remotetcp.cc:209: error: attributes
> are not allowed on a function-definition

Can you apply this patch and try again:

http://svn.xapian.org/trunk/xapian-core/tests/harness/backendmanager_remotetcp.cc?r1=9966&r2=9967&view=patch

Cheers,
    Olly



More information about the Xapian-discuss mailing list