emerge sylpheed-claws gives the following error during compilation. The upshot of this is that spell checking is not availalbe in sylpheed-claws: checking for pspell-config... /usr/bin/pspell-config checking for pspell - version >= .12.2... no *** Could not run pspell test program, checking why... *** The test program failed to compile or link. See the file config.log *** for the exact error that occured. This usually means pspell was *** incorrectly installed or that you have moved pspell since it was *** installed. In the latter case, you may want to edit the *** pspell-config script: /usr/bin/pspell-config pspell is installed, and is the correct version: kae@taplock kae $ epm -qa|grep pspell pspell-0.12.2-r2 pspell-ispell-0.12-r1 kae@taplock kae $
I'm getting the same thing. Its not so much a ebuild problem - if you've set up pspell then configure does it's thing and tries to build against pspell. Its that the link of the test program against the libpspell fails. From what I've read (albeit mostly about similar problems in debian distro's) it appears it my be a libtool/linking problem - gcc (at that point) doesn't know that libpspell is a c++ app and thus needs to link versus libstdc++. If you link the test program with a -lstdc++ it works fine... Just my 2cents worth.
As a temporal workaround, put this before the configure line in sylpheed-claws ebuild and then emerge it again. for j in ac/pspell.m4 aclocal.m4 configure ; do cp $j ${j}.orig sed "s/-lpspell/-lpspell -lstdc++/" < ${j}.orig > ${j} done
Thanks, that workaround works well.
are there any plans to add this workaround to the ebuild?
I used Azarah's libtool eclass to fix this. sorry it took so long
>I used Azarah's libtool eclass to fix this. sorry it took so long I don't see the change in the ebuild nor the ChangeLog. Did you put it in the portage cvs?
*pspell-0.12.2-r3 (19 Jun 2002) 19 Jun 2002; Seemant Kulleen <seemant@gentoo.org> pspell-0.12.2-r3.ebuild files/digest-pspell-0.12.2-r3 : elibtoolized -- now it works again when sylpheed-claws needs it. Fixes bug #3810 by mtzanidakis@freemail.gr (Manolis Tzanidakis)