<?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>51981</bug_id>
          
          <creation_ts>2011-01-05 21:54:42 -0800</creation_ts>
          <short_desc>[Qt] [Symbian] Fix building NPAPI support</short_desc>
          <delta_ts>2011-01-17 00:28:43 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Gombos">laszlo.gombos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>andersca</cc>
    
    <cc>brettw</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>fishd</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>330026</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2011-01-05 21:54:42 -0800</bug_when>
    <thetext>The build failure reported is the following:

 compile    : WebKit2\Shared\Plugins\Netscape\NetscapePluginModule.cpp

   &quot;Y:/epoc32/include/mw/QtCore/qsize.h&quot;, line 88: Error:  #338: more than one instance of overloaded function &quot;operator*&quot; has &quot;C&quot; linkage
         friend inline const QSize operator*(qreal, const QSize &amp;);
                                   ^
   &quot;Y:/epoc32/include/mw/QtCore/qsize.h&quot;, line 95: Error:  #800: this declaration may not have extern &quot;C&quot; linkage
     Q_DECLARE_TYPEINFO(QSize, Q_MOVABLE_TYPE);
     ^

It seems that the &quot;C&quot; linkage declaration is not used consistently and the following section of the npapi.h is included both with and without the &quot;C&quot; linkage declaration (depending the ordering of the include files).

#if defined(XP_SYMBIAN)
#include &lt;QEvent&gt;
#include &lt;QRegion&gt;
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330032</commentid>
    <comment_count>1</comment_count>
      <attachid>78096</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2011-01-05 22:11:52 -0800</bug_when>
    <thetext>Created attachment 78096
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331902</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-01-10 13:39:11 -0800</bug_when>
    <thetext>I&apos;m trying to think who knows npapi.h these days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335177</commentid>
    <comment_count>3</comment_count>
      <attachid>78096</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2011-01-17 00:07:40 -0800</bug_when>
    <thetext>Comment on attachment 78096
proposed patch

I think this change is correct. A header file should not rely on extern &quot;C&quot; being set but declare it itself. Plus npapi.h already has the extern &quot;C&quot; declarations a bit further down the file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335186</commentid>
    <comment_count>4</comment_count>
      <attachid>78096</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-01-17 00:28:36 -0800</bug_when>
    <thetext>Comment on attachment 78096
proposed patch

Clearing flags on attachment: 78096

Committed r75925: &lt;http://trac.webkit.org/changeset/75925&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335188</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-01-17 00:28:43 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78096</attachid>
            <date>2011-01-05 22:11:52 -0800</date>
            <delta_ts>2011-01-17 00:28:36 -0800</delta_ts>
            <desc>proposed patch</desc>
            <filename>51981.patch</filename>
            <type>text/plain</type>
            <size>1189</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA3NTEzNykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTcgQEAKKzIwMTEtMDEtMDUgIExhc3psbyBHb21ib3MgIDxsYXN6bG8uMS5nb21i
b3NAbm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIFtRdF0gW1N5bWJpYW5dIEZpeCBidWlsZGluZyBOUEFQSSBzdXBwb3J0CisgICAgICAg
IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD01MTk4MQorCisgICAgICAg
IE1ha2Ugc3VyZSB0aGF0IG5wYXBpLmggaXMgYWx3YXlzIGluY2x1ZGVkIG91dHNpZGUgb2YgdGhl
IGV4dGVybiAiQyIKKyAgICAgICAgbGlua2FnZSBkZWNsYXJhdGlvbiBibG9jay4KKworICAgICAg
ICBObyBuZXcgdGVzdHMgYXMgdGhlcmUgaXMgbm8gbmV3IGZ1bmN0aW9uYWxpdHkuCisKKyAgICAg
ICAgKiBicmlkZ2UvbnBydW50aW1lLmg6CisKIDIwMTEtMDEtMDUgIFNpbW9uIEZyYXNlciAgPHNp
bW9uLmZyYXNlckBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgQXJpeWEgSGlkYXlh
dC4KSW5kZXg6IFdlYkNvcmUvYnJpZGdlL25wcnVudGltZS5oCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNv
cmUvYnJpZGdlL25wcnVudGltZS5oCShyZXZpc2lvbiA3NTEyMikKKysrIFdlYkNvcmUvYnJpZGdl
L25wcnVudGltZS5oCSh3b3JraW5nIGNvcHkpCkBAIC0zMywxMiArMzMsMTIgQEAKICNpZm5kZWYg
X05QX1JVTlRJTUVfSF8KICNkZWZpbmUgX05QX1JVTlRJTUVfSF8KIAorI2luY2x1ZGUgIm5wYXBp
LmgiCisKICNpZmRlZiBfX2NwbHVzcGx1cwogZXh0ZXJuICJDIiB7CiAjZW5kaWYKIAotI2luY2x1
ZGUgIm5wYXBpLmgiCi0KIC8qCiAgICAgVGhpcyBBUEkgaXMgdXNlZCB0byBmYWNpbGl0YXRlIGJp
bmRpbmcgY29kZSB3cml0dGVuIGluIEMgdG8gc2NyaXB0CiAgICAgb2JqZWN0cy4gIFRoZSBBUEkg
aW4gdGhpcyBoZWFkZXIgZG9lcyBub3QgYXNzdW1lIHRoZSBwcmVzZW5jZSBvZiBhCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>