.obj/latexeditor.o: In function `LatexEditor::LatexEditor(QWidget*, QFont&, QList<QColor>, QList<QColor>, bool, QString, Hunspell*, bool, int, QKeySequence, QString, QStringList)': latexeditor.cpp:(.text+0x6167): undefined reference to `Hunspell::get_dic_encoding()' .obj/latexeditor.o: In function `LatexEditor::setSpellChecker(Hunspell*)': latexeditor.cpp:(.text+0x14087): undefined reference to `Hunspell::get_dic_encoding()' .obj/latexhighlighter.o: In function `LatexHighlighter::LatexHighlighter(QTextDocument*, bool, QString, Hunspell*)': latexhighlighter.cpp:(.text+0x844): undefined reference to `Hunspell::get_dic_encoding()' .obj/latexhighlighter.o: In function `LatexHighlighter::setSpellChecker(Hunspell*)': latexhighlighter.cpp:(.text+0xb73a): undefined reference to `Hunspell::get_dic_encoding()' .obj/spellerdialog.o: In function `SpellerDialog::SpellerDialog(QWidget*, LatexEditor*, QString)': spellerdialog.cpp:(.text+0xdc): undefined reference to `Hunspell::get_dic_encoding()' c++: error: linker command failed with exit code 1 (use -v to see invocation) full build log: http://sprunge.us/VHPV culprit: https://github.com/hunspell/hunspell/commit/971f8a9cf52e
I think the problem's actually a mismatch between that, us trying to get hunspell from ports but the code still using the bundled, old hunspell at least for headers.
A commit references this bug: Author: jbeich Date: Mon Nov 28 09:16:11 UTC 2016 New revision: 427290 URL: https://svnweb.freebsd.org/changeset/ports/427290 Log: editors/texmaker: fix Hunspell ABI mismatch The port passes -I. -I/usr/local/include/hunspell ... -I/usr/local/include but then proceeds to #include "hunspell/hunspell.hxx" which ends up picking bundled version. #include "hunspell.hxx" would be more correct but would require adjusting texmaker.pro to add -I./hunspell for OS X. PR: 214848 Submitted by: rakuco MFH: 2016Q4 Changes: head/editors/texmaker/Makefile
> #include "hunspell.hxx" would be more correct but would require adjusting texmaker.pro to add -I./hunspell for OS X. Do we care about OS X? I was going to commit a patch changing the includes to <hunspell.hxx>, and I still think it's a valid addition to your commit.
> changing the includes to <hunspell.hxx> Why add to the maintenance when there's no maintainer? Maybe send a patch upstream to rip out bundled Hunspell completely. However, I'm a bit puzzled about build glue for Windows that appears to be missing.
A commit references this bug: Author: jbeich Date: Tue Nov 29 00:50:33 UTC 2016 New revision: 427352 URL: https://svnweb.freebsd.org/changeset/ports/427352 Log: MFH: r427290 editors/texmaker: fix Hunspell ABI mismatch The port passes -I. -I/usr/local/include/hunspell ... -I/usr/local/include but then proceeds to #include "hunspell/hunspell.hxx" which ends up picking bundled version. #include "hunspell.hxx" would be more correct but would require adjusting texmaker.pro to add -I./hunspell for OS X. PR: 214848 Submitted by: rakuco Approved by: ports-secteam (junovitch) Changes: _U branches/2016Q4/ branches/2016Q4/editors/texmaker/Makefile