[libvoikko] Libreoffice Voikko+HFST standalone extension for Mac issue

Harri Pitkänen hatapitk at iki.fi
Mon Sep 12 19:08:18 EEST 2011

> Linking the file $(LIBVOIKKO_PATH)/lib/libvoikko.a caused a linking error:
> ld: warning: in build/voikko.map, file was built for unsupported file
> format which is not the architecture being linked (i386)

This appears to be just a warning, maybe because LibreOffice is not built
as an universal binary.

> Undefined symbols:
>   "hfst_ol::ZHfstOspeller::read_legacy(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)", referenced
> from:
>       libvoikko::spellchecker::suggestion::HfstSuggestion::HfstSuggestion(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&,
> libvoikko::voikko_options_t*)in libvoikko.a(HfstSuggestion.o)

This is an error and means ZHfstOspeller is not linked into libvoikko.a.
Try rebuilding everything with --disable-shared --enable-static and see if
that helps.


More information about the Libvoikko mailing list