<?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>113587</bug_id>
          
          <creation_ts>2013-03-29 09:23:27 -0700</creation_ts>
          <short_desc>[EFL] build fails because of libsoup deprecated declarations</short_desc>
          <delta_ts>2015-05-19 21:50:38 -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>WebKit EFL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>145154</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Ed Bartosh">bartosh</reporter>
          <assigned_to name="Ed Bartosh">bartosh</assigned_to>
          <cc>danw</cc>
    
    <cc>kalyan.kondapally</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>ryuan.choi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>866201</commentid>
    <comment_count>0</comment_count>
    <who name="Ed Bartosh">bartosh</who>
    <bug_when>2013-03-29 09:23:27 -0700</bug_when>
    <thetext>Here is the build failure:

/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp: In function `void WebCore::ensureSessionIsInitialized(SoupSession*)&apos;:
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:292:44: error: `GType soup_requester_get_type()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:52) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:292:44: error: `GType soup_requester_get_type()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:52) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:293:36: error: `SoupRequester* soup_requester_new()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:56) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:293:55: error: `SoupRequester* soup_requester_new()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:56) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp: In function `bool WebCore::createSoupRequestAndMessageForHandle(WebCore::ResourceHandle*, const WebCore::ResourceRequest&amp;, bool)&apos;:
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:989:32: error: `GType soup_requester_get_type()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:52) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:989:32: error: `GType soup_requester_get_type()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:52) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:989:32: error: `GType soup_requester_get_type()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:52) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:989:32: error: `GType soup_requester_get_type()&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:52) [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:997:34: error: `SoupRequest* soup_requester_request_uri(SoupRequester*, SoupURI*, GError**)&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:66): Use &apos;soup_session_request_uri&apos; instead [-Werror=deprecated-declarations]
/home/ed/git/wk/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:997:102: error: `SoupRequest* soup_requester_request_uri(SoupRequester*, SoupURI*, GError**)&apos; is deprecated (declared at /usr/local/include/libsoup-2.4/libsoup/soup-requester.h:66): Use &apos;soup_session_request_uri&apos; instead [-Werror=deprecated-declarations]
cc1plus: all warnings being treated as errors
make[2]: *** [Source/WebCore/CMakeFiles/webcore_efl.dir/platform/network/soup/ResourceHandleSoup.cpp.o] Error 1
make[1]: *** [Source/WebCore/CMakeFiles/webcore_efl.dir/all] Error 2
make: *** [all] Error 2

I&apos;ll try to fix it as it stops my current work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>866438</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">bartosh</who>
    <bug_when>2013-03-29 15:39:09 -0700</bug_when>
    <thetext>It turned out that I used libsoup from master. It will hit us in future, but not now. Resolved/invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>867882</commentid>
    <comment_count>2</comment_count>
    <who name="Dan Winship">danw</who>
    <bug_when>2013-04-02 08:46:02 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; It will hit us in future, but not now. Resolved/invalid.

This can be fixed now to make it compile happily with both old and new libsoups though; just add an appropriate SOUP_VERSION_MIN_REQUIRED to the CPPFLAGS to tell it what the oldest version of libsoup you want to be able to compile against is, and that will tweak things so that only functions that were deprecated as of that release get the __deprecated__ attribute.

Eg, if you currently depend on libsoup &gt;= 2.38, you&apos;d add

  -DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_2_38</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096164</commentid>
    <comment_count>3</comment_count>
    <who name="Ryuan Choi">ryuan.choi</who>
    <bug_when>2015-05-19 21:50:38 -0700</bug_when>
    <thetext>I didn&apos;t realize this, but it was fixed at Bug 145154

*** This bug has been marked as a duplicate of bug 145154 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>