Bug 431981

Summary: spell check - enchant does not load due to undefined symbol from hunspell
Product: [Fedora] Fedora Reporter: ritz <rkhadgar>
Component: enchantAssignee: Marc Maurer <uwog>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1:1.3.0-4.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-11 12:46:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
remove the internal hunspell files none

Description ritz 2008-02-08 08:26:08 UTC
Description of problem:
$ gedit 

** (gedit:7927): WARNING **: Error loading plugin:
/usr/lib/enchant/libenchant_myspell.so: undefined symbol: _ZN8Hunspell5spellEPKc


Version-Release number of selected component (if applicable):
hunspell-1.2.1-4.fc9.i386
enchant-1.3.0-3.fc9.i386

How reproducible:
always

Steps to Reproduce:
1. enable spell check in gedit
  
Actual results:
as mentioned above

Expected results:
spell check should work

Additional info:

Comment 1 ritz 2008-02-08 08:36:15 UTC
temporary workaround - to use enchant-aspell backend.
rebuilding enchant on my system with against aboe mentioned hunspell package
does not help :(

Comment 2 ritz 2008-02-08 09:14:11 UTC
odd.

$ objdump -T  /usr/lib/libhunspell.so.1|grep -i _ZN8Hunspell5spellEPKc
0001e7d0 g    DF .text	00000f43  Base        _ZN8Hunspell5spellEPKcPiPPc

$ ldd /usr/lib/enchant/libenchant_myspell.so|grep hun
	libhunspell.so.1 => /usr/lib/libhunspell.so.1 (0x001f9000)

it seems enchant is still using the internal copy of hunspell build. The symbol
spell has changed between the two releases of hunspell.

from 
  int spell(const char *);
to
  int spell(const char * word, int * info = NULL, char ** root = NULL);

Comment 3 ritz 2008-02-08 09:31:57 UTC
Created attachment 294328 [details]
remove the internal hunspell files

remove the below listed file for good

affentry.cxx	
affentry.hxx	
affixmgr.cxx	
affixmgr.hxx	
atypes.hxx	
baseaffix.hxx	
csutil.cxx	
csutil.hxx	
dictmgr.cxx	
dictmgr.hxx	
hashmgr.cxx	
hashmgr.hxx	
htypes.hxx	
hunspell.cxx	
hunspell.dsp	
hunspell.hxx	
langnum.hxx	
license.hunspell	
license.myspell 
license.readme	
suggestmgr.cxx	
suggestmgr.hxx	
utf_info.cxx

Comment 4 ritz 2008-02-08 09:35:45 UTC
Comment on attachment 294328 [details]
remove the internal hunspell files

patch file