[Xapian-discuss] Compiling xapian-bindings-0.9.2 on OpenBSD 3.7

Olly Betts olly at survex.com
Thu Sep 15 15:32:52 BST 2005

On Mon, Sep 12, 2005 at 11:04:57AM -0700, Pat Johnson wrote:
> This works fine:
> ./configure XAPIAN_CONFIG=/usr/local/src/xapian-core-0.9.2/xapian-config
> But when I run make I get the following (some parts removed because
> it's quite a long list of similar errors):

Thanks to Pat allowing me use of his machine, I've tracked down the
problem.  When linking the _xapian.so library, g++ doesn't add a
dependency on libstdc++ and Python is written in C so doesn't link
against libstdc++ itself.

There's an easy workaround though.  Configure xapian-bindings as usual,
but run make like this:

make LDFLAGS=-lstdc++

I suspect the same issue will effect the other bindings, and perhaps
netbsd and freebsd too.

I wonder if we should always set LDFLAGS=-lstdc++ when using GCC - it
should be harmless on platforms (like Linux) where it is added anyway.


More information about the Xapian-discuss mailing list