Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591448 - app-text/enchant-1.6.0 fail to build with hunspell-1.4: ‘MAXWORDLEN’ was not declared in this scope
Summary: app-text/enchant-1.6.0 fail to build with hunspell-1.4: ‘MAXWORDLEN’ was not ...
Status: RESOLVED DUPLICATE of bug 583486
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: hunspell-1.4
  Show dependency tree
 
Reported: 2016-08-17 11:12 UTC by Jakub Caban
Modified: 2016-08-17 11:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Caban 2016-08-17 11:12:32 UTC
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'
Comment 1 Coacher 2016-08-17 11:17:44 UTC

*** This bug has been marked as a duplicate of bug 583486 ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-08-17 11:43:54 UTC
 * 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.
Comment 3 Jakub Caban 2016-08-17 11:51:55 UTC
Ah - silly me. Thank you! Works like a charm in ::gentoo.