Hi,
This problem seems to only exist with xapian-omega 1.0.6, if used with
xapian-core 1.0.5. If I use xapian-omega 1.0.5 I can compile with no
problems. I take it this means the version numbers of xapian-core and
xapian-omega must match?
On Wed, Apr 16, 2008 at 11:11:53AM +0200, Anders Nordby
wrote:> 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.
>
> _______________________________________________
> Xapian-devel mailing list
> Xapian-devel at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-devel
--
Anders.