app-text/enchant-1.6.0 with hunspell flag fails to build with hunspell-1.4: myspell_checker.cpp: In member function ‘bool MySpellChecker::checkWord(const char*, size_t)’: myspell_checker.cpp:154:12: error: ‘MAXWORDLEN’ was not declared in this scope if (len > MAXWORDLEN || !g_iconv_is_valid(m_translate_in)) ^ myspell_checker.cpp:160:13: error: ‘MAXWORDLEN’ was not declared in this scope char word8[MAXWORDLEN + 1]; ^ myspell_checker.cpp:161:14: error: ‘word8’ was not declared in this scope char *out = word8; ^ myspell_checker.cpp: In member function ‘char** MySpellChecker::suggestWord(const char*, size_t, size_t*)’: myspell_checker.cpp:178:12: error: ‘MAXWORDLEN’ was not declared in this scope if (len > MAXWORDLEN ^ myspell_checker.cpp:186:13: error: ‘MAXWORDLEN’ was not declared in this scope char word8[MAXWORDLEN + 1]; ^ myspell_checker.cpp:187:14: error: ‘word8’ was not declared in this scope char *out = word8; ^ myspell_checker.cpp: In member function ‘bool MySpellChecker::checkWord(const char*, size_t)’: myspell_checker.cpp:173:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[2]: *** [Makefile:552: myspell_checker.lo] Error 1 make[2]: Leaving directory '/tmp/portage/app-text/enchant-1.6.0/work/enchant-1.6.0/src/myspell' make[1]: *** [Makefile:551: all-recursive] Error 1 make[1]: Leaving directory '/tmp/portage/app-text/enchant-1.6.0/work/enchant-1.6.0/src' make: *** [Makefile:491: all-recursive] Error 1 * ERROR: app-text/enchant-1.6.0::soft failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/enchant-1.6.0::soft'`, * the complete build log and the output of `emerge -pqv '=app-text/enchant-1.6.0::soft'`. * The complete build log is located at '/tmp/portage/app-text/enchant-1.6.0/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-text/enchant-1.6.0/temp/environment'. * Working directory: '/tmp/portage/app-text/enchant-1.6.0/work/enchant-1.6.0' * S: '/tmp/portage/app-text/enchant-1.6.0/work/enchant-1.6.0'
*** This bug has been marked as a duplicate of bug 583486 ***
* ERROR: app-text/enchant-1.6.0::soft failed (compile phase) That's because you're using the package from "soft" overlay and not from the official gentoo repository.
Ah - silly me. Thank you! Works like a charm in ::gentoo.