building aspell in CVS head

From: Chris Winne (chris@micro-mania.net)
Date: Sat Nov 30 2002 - 16:17:59 EST


Hi all,

When I try to build (on an updated RH7.2, i386) using pspell/aspell
(actually aspell, since I am using the integrated 0.50.3 GNU aspell), I
get the following lines in configure.log (using config.ispell below):

 conftest conftest.cc -lpspell -lpspell -laspell -laspell-common -lltdl >&5

/usr/bin/ld: cannot find -laspell-common
collect2: ld returned 1 exit status
configure:6527: $? = 1
configure: failed program was:
#line 6498 "configure"

As a result, ispell is built in rather than the requested aspell.
However, this is apparently easily fixed by the following change to
configure.

diff -c configure.ispell configure.aspell

*** configure.ispell Sat Nov 30 00:52:10 2002
--- configure.aspell Fri Nov 29 22:45:47 2002
***************
*** 6378,6384 ****
          abi_pspell_libs="-lpspell -lpspell-modules -lltdl"
     else
          abi_pspell_cflags=""
! abi_pspell_libs="-lpspell -laspell -laspell-common -lltdl"
     fi
     if test $abi_spell = pspell; then
          abi_pspell_cflags="-I$abi_pspell_opt/include"
--- 6378,6384 ----
          abi_pspell_libs="-lpspell -lpspell-modules -lltdl"
     else
          abi_pspell_cflags=""
! abi_pspell_libs="-lpspell -laspell -lltdl"
     fi
     if test $abi_spell = pspell; then
             abi_pspell_cflags="-I$abi_pspell_opt/include"
         

If configure -> configure.ispell, I get ispell. If configure ->
configure.aspell, I apparently get a perfectly good AbiWord_d in which
spelling works, I certainly suspect with aspell, since at least the
following is true:

ldd /usr/local/share/AbiSuite-2.0/AbiWord/bin/AbiWord_d |grep spell
        libpspell.so.15 => /usr/local/lib/libpspell.so.15 (0x4038e000)
        libaspell.so.15 => /usr/local/lib/libaspell.so.15 (0x40391000)
               

If this is a bug in the autogen.sh, I would be happy to commit a bug
report, however I am certainly not adequately versed in the intricacies
of the automake system to submit a patch beyond that.

If there really ought to be a -laspell-common separate from -laspell, any
hints to find it will of course be appreciated. It is quite possible
that my "fix" may break down with more use than simply checking the
spelling of hello versus helllo (which is about as far as I have gotten
;-). There is of course a aspell-0.50.3/common which seems to get built
when I install the library but I have not dug into where or how any
further than that.

Hey, keep up the good work and I hope these comments are helpful and not
a distraction.

Chris Winne





This archive was generated by hypermail 2.1.4 : Sat Nov 30 2002 - 16:20:11 EST