aspell
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.
Compilation (V0.60.6.1)
Needs perl
, C++.
AIX
I found this package to be seriously broken.
To configure/compile properly:
-
gen/static_filters.src.cpp
is built with empty static arrays.
To avoid this,
in modules/filter/nroff-filter.info
and modules/filter/url-filter.info
add a dummy entry
OPTION ignore
TYPE list
DESCRIPTION dummy
DEFAULT dummy
ENDOPTION
Feel free to insert something more useful.
- Some definitions in
interfaces/cc/aspell.h
don't play well with those in common/errors.hpp
. As a workaround
disable them for C++ compilation:
#ifndef __cplusplus
extern const struct AspellErrorInfo * const aerror_other;
...
extern const struct AspellErrorInfo * const aerror_invalid_expression;
#endif
- More grief is caused by the
ncurses
library
used for the full screen mode, including UTF-8 support.
It doesn't seem properly accounted for in the build procedure,
which causes compilation of prog/check_funs.cpp
to fail.
Thus in Makefile.in
add the path to the ncurses
include files:
AM_CPPFLAGS = -I${srcdir}/gen -I${srcdir}/common \
-I${srcdir}/interfaces/cc/ \
-I${srcdir}/modules/speller/default/ $(CURSES_INCLUDE) $(CURSES_INCLUDE)/ncursesw \
Moreover, the configure/build procedure assumes a header file
curses.h
, which might "attract" an inappropriate version,
for example /usr/include/curses.h
.
As a workaround I took the freedom to modify the ncurses
installation:
cd /bio/local/ncurses-5.9/include/ncursesw
ln -s ncurses.h curses.h
-
Omit
-D_LARGE_FILES
because it can't cope with it.
With these modifications the build should proceed like this:
make distclean
# AIX 5.2/5.3/6.1/7.1, C 6/12.0/12.0/12.0
./configure --prefix=/tmp/aspell-0.60.6.1
CC=cc CPPFLAGS="-D_THREAD_SAFE" CFLAGS="-O2"
CXX=xlC CXXFLAGS="-D_THREAD_SAFE" CXXFLAGS="-O2"
--enable-static --disable-shared --disable-rpath
--enable-compile-in-filters
--with-libintl-prefix=/bio/local/gettext-0.17
--enable-curses-include=/bio/local/ncurses-5.9/include
--enable-curses="-L/bio/local/ncurses-5.9/lib -lncursesw"
make
make install
Last updated: Thu Apr 10 20:07:25 CED 2014
, M.Kraemer
Impressum Data privacy protection