[Xapian-discuss] "Undefined Reference to" errors

Kwok-yau Kwong kwokyaukwong at gmail.com
Thu Aug 30 11:57:22 BST 2007


Thanks for the help earlier however it would seem that yet more of your
expertise would be desired.

I am currently now trying to compile a indexer with regards to Xapian,
however when I attempt to it springs up with these errors:

kwok at kwok-desktop:~/Desktop/Xapian-Index$ make -f Makefile all
g++ -c -O3 -g -Wno-deprecated -I/usr/local/include/xapian/
-I/usr/local/include/ trec_index.cc -o trec_index.o
g++ -O3 -g -Wno-deprecated config_file.o htmlparse.o stopword.o gunzipper.o
split.o timer.o trec_index.o /usr/local/lib/libxapian.a -o trec_index
/usr/local/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':
/home/kwok/Desktop/xapian- core-1.0.2/backends/flint/flint_table.cc:1282:
undefined reference to `inflateInit2_'
/home/kwok/Desktop/xapian-core-1.0.2/backends/flint/flint_table.cc:1334:
undefined reference to `inflateEnd'
/usr/local/lib/libxapian.a(flint_table.o): In function
`FlintTable::add(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, bool)':
/home/kwok/Desktop/xapian-core-1.0.2/backends/flint/flint_table.cc:1054:
undefined reference to `deflateInit2_'
/home/kwok/Desktop/xapian-core-1.0.2/backends/flint/flint_table.cc:1076:
undefined reference to `deflate'
/home/kwok/Desktop/xapian-core-1.0.2/backends/flint/flint_table.cc:1094:
undefined reference to `deflateEnd'
/home/kwok/Desktop/xapian-core-1.0.2/backends/flint/flint_table.cc:1082:
undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make: *** [trec_index] Error 1
kwok at kwok-desktop:~/Desktop/Xapian-Index$

All errors seem to be related to "inflate" or "deflate". Am i missing
something?
All help is much appreciated.

Many Thanks
Kwok


More information about the Xapian-discuss mailing list