[libvoikko] Problem building libvoikko with hfst support on the Mac

Sjur Moshagen sjurnm at mac.com
Fri Sep 2 14:43:21 EEST 2011


Hello,

I'm trying to build the latest svn of libvoikko using the latest svn of hfst. I have installed hfst in $HOME, and configured libvoikko as follows:


HFST_CFLAGS="-I$HOME/include" HFST_LIBS="-L$HOME/lib" CFLAGS="-I/Users/sjur/voikko/inst/include -L/Users/sjur/voikko/inst/lib" ./configure --enable-static --disable-shared --disable-dependency-tracking --prefix=/Users/sjur/voikko/inst --enable-hfst=$HOME



That got me through the configuration without hiccups. But when make-ing, I pretty soon get to a point where symbols are not found:



/bin/sh ../../libtool --tag=CXX   --mode=link g++  -D_THREAD_SAFE  -DHAVE_PTHREAD  -g -O2 -fvisibility=hidden -Wall -Werror -pedantic   -o voikkospell voikkospell-voikkospell.o ../libvoikko.la   
libtool: link: g++ -D_THREAD_SAFE -DHAVE_PTHREAD -g -O2 -fvisibility=hidden -Wall -Werror -pedantic -o voikkospell voikkospell-voikkospell.o -Wl,-bind_at_load  ../.libs/libvoikko.a
Undefined symbols:
  "libvoikko::morphology::HfstAnalyzer::HfstAnalyzer(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      libvoikko::morphology::AnalyzerFactory::getAnalyzer(libvoikko::setup::Dictionary const&)in libvoikko.a(AnalyzerFactory.o)
  "libvoikko::spellchecker::HfstSpeller::HfstSpeller(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      libvoikko::spellchecker::SpellerFactory::getSpeller(libvoikko::voikko_options_t*, libvoikko::setup::Dictionary const&)in libvoikko.a(SpellerFactory.o)
  "libvoikko::hyphenator::HfstHyphenator::HfstHyphenator(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      libvoikko::hyphenator::HyphenatorFactory::getHyphenator(libvoikko::voikko_options_t const*, libvoikko::setup::Dictionary const&)in libvoikko.a(HyphenatorFactory.o)
  "libvoikko::spellchecker::suggestion::HfstSuggestion::HfstSuggestion(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      libvoikko::spellchecker::suggestion::SuggestionGeneratorFactory::getSuggestionGenerator(libvoikko::voikko_options_t*, libvoikko::spellchecker::suggestion::SuggestionType)in libvoikko.a(SuggestionGeneratorFactory.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [voikkospell] Error 1



Do any of you have an idea what to do to resolve this? I tried installing hfst in the default location, but that didn't help a bit.

Regards,
Sjur




More information about the Libvoikko mailing list