[Xapian-discuss] Static Library Problem
Charlie Hull
charlie at juggler.net
Mon Apr 14 17:49:22 BST 2008
Olly Betts wrote:
> 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
I think this is due to a missing Zlib library. I'm not sure what
platform you were using in this case, Colin, but I've seen similar
things while attempting to reproduce your other problems.
Cheers
Charlie
More information about the Xapian-discuss
mailing list