[Xapian-discuss] Build errors in xapian 0.8.4

Arjen van der Meijden arjen at glas.its.tudelft.nl
Thu Dec 9 10:33:43 GMT 2004


When trying to build xapian 0.8.4, I saw this build error.
Appareantly btree.cc depended on xapian.h to include iostream?

This is with the zlib-patch applied

btree.cc: In member function `bool Btree::add(const std::string&,
    std::basic_string<char, std::char_traits<char>, std::allocator<char> 
 >)':
btree.cc:1143: error: `cout' undeclared (first use this function)
btree.cc:1143: error: (Each undeclared identifier is reported only once for
    each function it appears in.)
btree.cc:1143: error: `endl' undeclared (first use this function)

After sticking a #include <iostream> it went well untill this:

g++ -Wall -W -Wno-long-long -fno-gnu-keywords -pipe -march=pentium4 -O3 
-mmmx -msse2 -mfpmath=sse,387 -o .libs/quartzcheck 
quartzcheck-quartzcheck.o  ../testsuite/.libs/libbtreecheck.a 
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so 
-L/usr/i486-slackware-linux/bin -L/usr/i486-slackware-linux/lib 
-L/usr/lib/gcc-lib/i486-slackware-linux/../../../i486-slackware-linux/lib 
-L/usr/lib/gcc-lib/i486-slackware-linux/../.. -lm -lc -lgcc_s 
../.libs/libxapian.so /usr/lib/./libstdc++.so -Wl,--rpath -Wl,/usr/lib/.
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `deflate'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `inflate'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `deflateSetDictionary'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `inflateInit_'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `adler32'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `deflateInit2_'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `inflateSetDictionary'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `inflateEnd'
/home/acm/source/xapian-core-0.8.4/.libs/libxapian.so: undefined 
reference to `deflateEnd'


afaik there should be a -lzlib or -lz orso in the g++ command?
The machine does run zlib 1.1.4, but that's not the problem here I suppose?

Best regards,

Arjen van der Meijden



More information about the Xapian-discuss mailing list