[Xapian-devel] Xapian-omega does not build

Anders Nordby anders at fupp.net
Wed Apr 16 10:11:53 BST 2008


Hi,

I have xapian-core 1.0.5 installed in FreeBSD 7. Trying to build
xapian-omega 1.0.6, I get this error message:

g++ -DHAVE_CONFIG_H -I. -I./common
-DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.conf\"  -Wall -W
-Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align
-Wno-multichar -Wno-long-long -fno-gnu-keywords -Wundef -Wshadow -g -O2
-I/usr/local/include -MT query.o -MD -MP -MF .deps/query.Tpo -c -o
query.o query.cc
query.cc: In function 'std::string eval(const std::string&, const
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&)':
query.cc:1906: error: 'toupper' is not a member of 'Xapian::Unicode'
*** Error code 1

Stop in /root/xapian-omega-1.0.6.
*** Error code 1

Stop in /root/xapian-omega-1.0.6.
*** Error code 1

Stop in /root/xapian-omega-1.0.6.

If I build with gcc 3.4.6 instead of the default 4.2.1 version, I get:

g++34 -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-multichar -Wno-long-long -fno-gnu-keywords -Wundef
-Wshadow -g -O2 -I/usr/local/include -o omindex omindex.o myhtmlparse.o
htmlparse.o getopt.o commonhelp.o utils.o hashterm.o loadfile.o md5.o
md5wrap.o xmlparse.o metaxmlparse.o utf8convert.o sample.o diritor.o
runfilter.o freemem.o msvc_dirent.o  /usr/local/lib/libxapian.so -lz
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/usr/local/lib/libxapian.so: undefined reference to
`__cxa_get_exception_ptr at CXXABI_1.3.1'
/usr/local/lib/libxapian.so: undefined reference to
`std::basic_ostream<char, std::char_traits<char> >&
std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned
long>(unsigned long)@GLIBCXX_3.4.9'
/usr/local/lib/libxapian.so: undefined reference to
`std::basic_ostream<char, std::char_traits<char> >&
std::__ostream_insert<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*,
int)@GLIBCXX_3.4.9'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /root/xapian-omega-1.0.6.
*** Error code 1

Stop in /root/xapian-omega-1.0.6.
*** Error code 1

Stop in /root/xapian-omega-1.0.6.

Any ideas?

Bye,

-- 
Anders.



More information about the Xapian-devel mailing list