[Xapian-discuss] Static Library Problem

Olly Betts
Thu, 10 Apr 2008 22:13:41 -0000

On Thu, Apr 10, 2008 at 04:21:19PM +0100, Colin Bell
wrote:
> I've just changed over to the static library for Xapian 1.0.6 and get
> this compile error from one of my files - the others all compile fine.

In general, static linking is a bad idea.  Why do you want to?

> /lib/libxapian.a(flint_table.o): In function
> `FlintTable::read_tag(Cursor_*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >*, bool)
const':
> backends/flint/flint_table.cc:1287: undefined reference to
> `inflateInit2_'
> backends/flint/flint_table.cc:1305: undefined reference to `inflate'
> backends/flint/flint_table.cc:1312: undefined reference to `inflate'
> backends/flint/flint_table.cc:1339: undefined reference to `inflateEnd'

Odd, this was supposed to be fixed in 1.0.3.  What does this report:

xapian-config --libs

(Assuming you're not linking using libtool, since this should just work
then...)

Cheers,
    Olly