[LyX/master] Cmake build: Remove unneeded hunspell path from configure test
Scott Kostyshak
skostysh at lyx.org
Wed Dec 4 17:22:09 UTC 2019
On Thu, Nov 28, 2019 at 02:17:35PM +0100, Kornel Benko wrote:
> commit 9de4b9ab34e07d50a85c555f2bdfa91713812f4b
> Author: Kornel Benko <kornel at lyx.org>
> Date: Thu Nov 28 14:31:26 2019 +0100
>
> Cmake build: Remove unneeded hunspell path from configure test
>
> Spotted by Patrick (pdvisschere at edpnet.be)
> ---
> development/cmake/ConfigureChecks.cmake | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/development/cmake/ConfigureChecks.cmake b/development/cmake/ConfigureChecks.cmake
> index 4b12677..f536c80 100644
> --- a/development/cmake/ConfigureChecks.cmake
> +++ b/development/cmake/ConfigureChecks.cmake
> @@ -77,7 +77,7 @@ if(HUNSPELL_FOUND)
> set(HunspellTestFile "${CMAKE_BINARY_DIR}/hunspelltest.cpp")
> file(WRITE "${HunspellTestFile}"
> "
> - #include <hunspell/hunspell.hxx>
> + #include <hunspell.hxx>
>
> int main()
> {
> --
I now get an error when compiling. Here is the first one (the following
errors are attached in case they are also helpful):
[ 77%] Building CXX object src/CMakeFiles/lyx.dir/HunspellChecker.cpp.o
cd /home/scott/lyxbuilds/master/CMakeBuild/src && /usr/bin/c++ -DBOOST_USER_CONFIG="<config.h>" -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/home/scott/lyxbuilds/master/CMakeBuild -I/home/scott/lyxbuilds/master/repo/src -I/usr/include/enchant -I/home/scott/lyxbuilds/master/repo/3rdparty/boost -I/home/scott/lyxbuilds/master/CMakeBuild/src -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -Wall -Wunused-parameter --std=c++14 -fno-strict-aliasing -O0 -g3 -D_DEBUG -Werror -fPIC -std=c++14 -o CMakeFiles/lyx.dir/HunspellChecker.cpp.o -c /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp: In member function ‘virtual lyx::SpellChecker::Result lyx::HunspellChecker::check(const lyx::WordLangTuple&)’:
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:362:43: error: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Werror=deprecated-declarations]
362 | if (h->spell(word_to_check.c_str(), &info))
| ^
In file included from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31:
/usr/include/hunspell/hunspell.hxx:131:20: note: declared here
131 | H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
| ^~~~~
Before this commit, the cmake command output the following:
HAVE_HUNSPELL_CXXABI = TRUE
With this commit, the cmake command outputs the following:
HAVE_HUNSPELL_CXXABI = FALSE
There are no other differences in the output of the cmake command.
Scott
-------------- next part --------------
[ 77%] Building CXX object src/CMakeFiles/lyx.dir/HunspellChecker.cpp.o
cd /home/scott/lyxbuilds/master/CMakeBuild/src && /usr/bin/c++ -DBOOST_USER_CONFIG="<config.h>" -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/home/scott/lyxbuilds/master/CMakeBuild -I/home/scott/lyxbuilds/master/repo/src -I/usr/include/enchant -I/home/scott/lyxbuilds/master/repo/3rdparty/boost -I/home/scott/lyxbuilds/master/CMakeBuild/src -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -Wall -Wunused-parameter --std=c++14 -fno-strict-aliasing -O0 -g3 -D_DEBUG -Werror -fPIC -std=c++14 -o CMakeFiles/lyx.dir/HunspellChecker.cpp.o -c /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp: In member function ‘virtual lyx::SpellChecker::Result lyx::HunspellChecker::check(const lyx::WordLangTuple&)’:
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:362:43: error: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Werror=deprecated-declarations]
362 | if (h->spell(word_to_check.c_str(), &info))
| ^
In file included from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31:
/usr/include/hunspell/hunspell.hxx:131:20: note: declared here
131 | H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
| ^~~~~
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp: In member function ‘virtual void lyx::HunspellChecker::suggest(const lyx::WordLangTuple&, lyx::docstring_list&)’:
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:424:82: error: ‘int Hunspell::suggest(char***, const char*)’ is deprecated [-Werror=deprecated-declarations]
424 | int const suggestion_number = h->suggest(&suggestion_list, word_to_check.c_str());
| ^
In file included from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31:
/usr/include/hunspell/hunspell.hxx:141:20: note: declared here
141 | H_DEPRECATED int suggest(char*** slst, const char* word);
| ^~~~~~~
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:429:50: error: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Werror=deprecated-declarations]
429 | h->free_list(&suggestion_list, suggestion_number);
| ^
In file included from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31:
/usr/include/hunspell/hunspell.hxx:155:21: note: declared here
155 | H_DEPRECATED void free_list(char*** slst, int n);
| ^~~~~~~~~
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp: In member function ‘virtual void lyx::HunspellChecker::stem(const lyx::WordLangTuple&, lyx::docstring_list&)’:
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:449:79: error: ‘int Hunspell::stem(char***, const char*)’ is deprecated [-Werror=deprecated-declarations]
449 | int const suggestion_number = h->stem(&suggestion_list, word_to_check.c_str());
| ^
In file included from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31:
/usr/include/hunspell/hunspell.hxx:168:20: note: declared here
168 | H_DEPRECATED int stem(char*** slst, const char* word);
| ^~~~
/home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:454:50: error: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Werror=deprecated-declarations]
454 | h->free_list(&suggestion_list, suggestion_number);
| ^
In file included from /home/scott/lyxbuilds/master/repo/src/HunspellChecker.cpp:31:
/usr/include/hunspell/hunspell.hxx:155:21: note: declared here
155 | H_DEPRECATED void free_list(char*** slst, int n);
| ^~~~~~~~~
cc1plus: all warnings being treated as errors
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191204/71ef2cf9/attachment.asc>
More information about the lyx-devel
mailing list