Bug 123601

Summary: [GTK] invalid use of incomplete type 'class WTF::PassOwnPtr<WTF::Vector<unsigned char> >'
Product: WebKit Reporter: Emilio Pozuelo Monfort <pochu27>
Component: WebKitGTKAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, gustavo, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Speculative fix
none
config.log
none
Patch none

Description Emilio Pozuelo Monfort 2013-10-31 17:22:12 PDT
Building webkitgtk 2.3.1 with GCC 4.8 after applying the fix in bug 123502 I get:

../Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.cpp: In member function 'void WebKit::NetscapePluginStream::deliverData(const char*, int)':
../Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:189:58: error: invalid use of incomplete type 'class WTF::PassOwnPtr<WTF::Vector<unsigned char> >'
             m_deliveryData = adoptPtr(new Vector<uint8_t>);
                                                          ^
In file included from ../Source/WebCore/platform/FileSystem.h:34:0,
                 from ./DerivedSources/WebKit2/include/WebCore/FileSystem.h:1,
                 from ../Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.h:31,
                 from ../Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:27:
../Source/WTF/wtf/Forward.h:30:28: error: declaration of 'class WTF::PassOwnPtr<WTF::Vector<unsigned char> >'
 template<typename T> class PassOwnPtr;
                            ^
make[2]: *** [Source/WebKit2/WebProcess/Plugins/Netscape/Programs_WebKitPluginProcess-NetscapePluginStream.o] Error 1
Comment 1 Zan Dobersek 2013-11-01 02:43:47 PDT
Created attachment 215726 [details]
Speculative fix

This patch just includes the PassOwnPtr.h header -- can you try it out and report back if it fixes the problem?

If the problem persists or you don't have the time to test the patch out, please attach the config.log file so someone else can try to replicate the problem and provide further fixes.

Thanks!
Comment 2 Emilio Pozuelo Monfort 2013-11-01 05:01:46 PDT
Created attachment 215730 [details]
config.log
Comment 3 Emilio Pozuelo Monfort 2013-11-01 05:02:57 PDT
(In reply to comment #1)
> Created an attachment (id=215726) [details]
> Speculative fix
> 
> This patch just includes the PassOwnPtr.h header -- can you try it out and report back if it fixes the problem?

Sure, will start a build later today and report back.

> If the problem persists or you don't have the time to test the patch out, please attach the config.log file so someone else can try to replicate the problem and provide further fixes.

Attached just in case. Will do so from the start for future reports.
Comment 4 Emilio Pozuelo Monfort 2013-11-01 18:25:48 PDT
(In reply to comment #3)
> (In reply to comment #1)
> > Created an attachment (id=215726) [details] [details]
> > Speculative fix
> > 
> > This patch just includes the PassOwnPtr.h header -- can you try it out and report back if it fixes the problem?
> 
> Sure, will start a build later today and report back.

The patch worked nicely!
Comment 5 Zan Dobersek 2013-11-02 03:15:27 PDT
Created attachment 215805 [details]
Patch
Comment 6 Zan Dobersek 2013-11-02 07:32:47 PDT
Comment on attachment 215805 [details]
Patch

Clearing flags on attachment: 215805

Committed r158487: <http://trac.webkit.org/changeset/158487>
Comment 7 Zan Dobersek 2013-11-02 07:32:56 PDT
All reviewed patches have been landed.  Closing bug.