[Xapian-discuss] Static Library Problem

Colin Bell colinabell at gmail.com
Mon Apr 14 18:07:12 BST 2008


Thanks again Charlie

Yes, a zlib issue indeed. This was on Linux and now that compiles too.  
Only Windows to go...

On 14 Apr 2008, at 17:49, Charlie Hull wrote:

> 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
>
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss




More information about the Xapian-discuss mailing list