[libvoikko] libvoikko not compiling on MacOS X - r3430

Sjur Moshagen sjurnm at mac.com
Thu Jul 1 10:29:58 EEST 2010


Hello,

When trying to build the (almost) latest source on MacOS X (10.6.3), the build stops after a while with the following error:

/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2 -fvisibility=hidden -Wall -Werror -pedantic -no-undefined -version-info 12:0:11    -o libvoikko.la -rpath /usr/local/lib spellchecker/spell.lo spellchecker/suggestions.lo spellchecker/Speller.lo spellchecker/SpellWithPriority.lo spellchecker/SpellUtils.lo spellchecker/AnalyzerToSpellerAdapter.lo spellchecker/FixedResultSpeller.lo spellchecker/SpellerFactory.lo spellchecker/SpellerCache.lo spellchecker/suggestion/Suggestion.lo spellchecker/suggestion/SuggestionStatus.lo spellchecker/suggestion/SuggestionGeneratorFactory.lo spellchecker/suggestion/SuggestionGeneratorCaseChange.lo spellchecker/suggestion/SuggestionGeneratorDeletion.lo spellchecker/suggestion/SuggestionGeneratorInsertion.lo spellchecker/suggestion/SuggestionGeneratorInsertSpecial.lo spellchecker/suggestion/SuggestionGeneratorNull.lo spellchecker/suggestion/SuggestionGeneratorReplacement.lo spellchecker/suggestion/SuggestionGeneratorReplaceTwo.lo spellchecker/suggestion/SuggestionGeneratorSplitWord.lo spellchecker/suggestion/SuggestionGeneratorSwap.lo spellchecker/suggestion/SuggestionGeneratorVowelChange.lo spellchecker/suggestion/SuggestionStrategy.lo spellchecker/suggestion/SuggestionStrategyOcr.lo spellchecker/suggestion/SuggestionStrategyTyping.lo utils/utils.lo utils/StringUtils.lo morphology/interface.lo morphology/Analysis.lo morphology/Analyzer.lo morphology/AnalyzerFactory.lo morphology/NullAnalyzer.lo morphology/MalagaAnalyzer.lo morphology/malaga/analysis.lo morphology/malaga/files.lo morphology/malaga/lexicon.lo morphology/malaga/malaga_files.lo morphology/malaga/patterns.lo morphology/malaga/rules.lo morphology/malaga/symbols.lo morphology/malaga/basic.lo morphology/malaga/libmalaga.lo morphology/malaga/malaga_lib.lo morphology/malaga/pools.lo morphology/malaga/tries.lo morphology/malaga/values.lo morphology/malaga/MalagaState.lo setup/setup.lo setup/Dictionary.lo setup/DictionaryLoader.lo setup/DictionaryException.lo setup/interface.lo hyphenator/interface.lo hyphenator/AnalyzerToFinnishHyphenatorAdapter.lo hyphenator/Hyphenator.lo hyphenator/HyphenatorFactory.lo character/charset.lo character/SimpleChar.lo tokenizer/interface.lo tokenizer/Tokenizer.lo sentence/interface.lo sentence/Sentence.lo grammar/interface.lo grammar/cache.lo grammar/checks.lo grammar/cachesetup.lo grammar/error.lo grammar/analysis.lo grammar/Sentence.lo grammar/Paragraph.lo grammar/CacheEntry.lo grammar/GcCache.lo grammar/check/CapitalizationCheck.lo grammar/check/ParagraphCheck.lo grammar/check/SentenceCheck.lo compatibility/interface.lo autocorrect/AutoCorrect.lo    
libtool: link: rm -fr  .libs/libvoikko.a .libs/libvoikko.la .libs/libvoikko.lai
libtool: link: g++ -dynamiclib  -o .libs/libvoikko.1.dylib  setup/.libs/Dictionary.o setup/.libs/DictionaryLoader.o setup/.libs/interface.o      -install_name  /usr/local/lib/libvoikko.1.dylib -compatibility_version 13 -current_version 13.0 -Wl,-single_module
Undefined symbols:
  "typeinfo for libvoikko::setup::DictionaryException", referenced from:
      libvoikko::setup::DictionaryLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in DictionaryLoader.o
      libvoikko::setup::DictionaryLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in DictionaryLoader.o
      libvoikko::setup::DictionaryLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in DictionaryLoader.o
      __ZN9libvoikko5setup16DictionaryLoader4loadERKSsS3_.lsda in DictionaryLoader.o
      __ZN9libvoikko5setup16DictionaryLoader4loadERKSs.lsda in DictionaryLoader.o
  "vtable for libvoikko::setup::DictionaryException", referenced from:
      libvoikko::setup::DictionaryException::~DictionaryException()in DictionaryLoader.o
  "libvoikko::setup::DictionaryException::DictionaryException(char const*)", referenced from:
      libvoikko::setup::DictionaryLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in DictionaryLoader.o
      libvoikko::setup::DictionaryLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in DictionaryLoader.o
      libvoikko::setup::DictionaryLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in DictionaryLoader.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libvoikko.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

With the very latest source in trunk (r3431) there is even more error messages, but I though it would be simpler to start with this one.

I think the error has been introduced earlier - it is a while since I tried to build libvoikko, but IIRC it failed the last time I tried as well.

Best regards,
Sjur




More information about the Libvoikko mailing list