<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>176877</bug_id>
          
          <creation_ts>2017-09-13 15:19:36 -0700</creation_ts>
          <short_desc>[GTK] Build failure with enchant-2.1.1</short_desc>
          <delta_ts>2017-09-16 08:01:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin K.">krejzi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1348515</commentid>
    <comment_count>0</comment_count>
    <who name="Armin K.">krejzi</who>
    <bug_when>2017-09-13 15:19:36 -0700</bug_when>
    <thetext>Enchant-2.1.1 was recently released and it removed some deprecated APIs which WebKitGtk is still using. Trying to build WebKitGtk-2.18.0 against Enchant-2.1.1 results in following error:

/home/armin/src/pacman/pkgbuild/webkitgtk/src/webkitgtk-2.18.0/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp:132:9: error: use of undeclared identifier &apos;enchant_dict_free_suggestions&apos;
        enchant_dict_free_suggestions(dictionary, suggestions);

Refer to commit [1] for details.

Easy bug fix (taken from [1]):

sed -i &quot;s#enchant_dict_free_suggestions#enchant_dict_free_string_list#g&quot; Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp

[1] https://github.com/AbiWord/enchant/commit/744a1a19c1d0a5c3e1359fa994cf60a4d98ee12e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1348629</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-09-13 20:59:31 -0700</bug_when>
    <thetext>Looks like that API has been around since at least 2005, so it should be no problem to switch.

Really glad that enchant is maintained again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1349669</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-09-16 08:01:57 -0700</bug_when>
    <thetext>Committed r222130: &lt;http://trac.webkit.org/changeset/222130&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>