Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2907 - sylpheed-claws does not compile with pspell
Summary: sylpheed-claws does not compile with pspell
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tod M. Neidt (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-22 04:07 UTC by Keith Edmunds
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Edmunds 2002-05-22 04:07:56 UTC
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 $
Comment 1 scott.claridge 2002-05-22 20:45:09 UTC
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.
Comment 2 Pau Oliva 2002-05-23 13:36:41 UTC
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
Comment 3 Keith Edmunds 2002-05-26 16:50:41 UTC
Thanks, that workaround works well. 
Comment 4 Ryan Shaw 2002-05-28 07:08:26 UTC
are there any plans to add this workaround to the ebuild?
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-20 12:03:15 UTC
I used Azarah's libtool eclass to fix this.  sorry it took so long
Comment 6 Pau Oliva 2002-07-02 21:25:55 UTC
>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?
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-02 21:37:50 UTC
*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)