<?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>47427</bug_id>
          
          <creation_ts>2010-10-08 11:52:31 -0700</creation_ts>
          <short_desc>[Qt] build error in WebKit/qt/Api/qwebpage.cpp in Qt 4.7.0</short_desc>
          <delta_ts>2010-11-08 18:16:01 -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>New Bugs</component>
          <version>528+ (Nightly build)</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>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pierre Rossi">pierre.rossi</reporter>
          <assigned_to name="Benjamin Poulain">benjamin</assigned_to>
          <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>forummails</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>291789</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-10-08 11:52:31 -0700</bug_when>
    <thetext>This bug report is copied from http://bugreports.qt.nokia.com/browse/QTWEBKIT-281.

---Original report---

I&apos;m trying to compile Qt 4.7.0 and its failing on this:

../WebKit/qt/Api/qwebpage.cpp: In member function &apos;void QWebPagePrivate::touchEvent(QTouchEvent*)&apos;:
../WebKit/qt/Api/qwebpage.cpp:1571: error: &apos;class WebCore::EventHandler&apos; has no member named &apos;handleTouchEvent&apos;
../WebKit/qt/Api/qwebpage.cpp:1571: error: invalid use of undefined type &apos;struct WebCore::PlatformTouchEvent&apos;
page/EventHandler.h:62: error: forward declaration of &apos;struct WebCore::PlatformTouchEvent&apos;

Can you tell me what I can do to get around it? I was searching out on the web and see that there has been some changes to qwebpage.cpp today. So maybe there is already a patch for this?

Thanks!

---Comment---

I&apos;m also getting a compile error for webkit/JavaScriptCore/interpreter/Interpreter.cpp:

interpreter/Interpreter.cpp(2992): error: in &quot;goto *expr&quot;, expr must have type &quot;void *&quot;
NEXT_INSTRUCTION();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291790</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-10-08 11:54:38 -0700</bug_when>
    <thetext>Looks like a bug in your compiler. I have no problem building 4.7.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>305360</commentid>
    <comment_count>2</comment_count>
    <who name="Bastian">forummails</who>
    <bug_when>2010-11-05 10:42:19 -0700</bug_when>
    <thetext>When compiling qt 4.7.0 webkit has not been build. I ran into the same issue, when starting make in src/3rdparty/webkit.

Compiler used: 

$ g++ --version
g++ (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



What compilers are recommended for building the qt webkit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>305800</commentid>
    <comment_count>3</comment_count>
    <who name="Bastian">forummails</who>
    <bug_when>2010-11-06 11:39:42 -0700</bug_when>
    <thetext>WebKit/qt/Api/qwebpage.ccp 1571:
bool accepted = frame-&gt;eventHandler()-&gt;handleTouchEvent(PlatformTouchEvent(event));

                         ^^^ Method is only available, if marco TOUCH_EVENTS is available, see WebCore/page/EventHandler.h 209:
#if ENABLE(TOUCH_EVENTS)
    bool handleTouchEvent(const PlatformTouchEvent&amp;);
#endif


For my understanding, my compiler is correctly complaining, when TOUCH_EVENTS is not set:
../WebKit/qt/Api/qwebpage.cpp:1571: error: &apos;class WebCore::EventHandler&apos; has no member named &apos;handleTouchEvent&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306051</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-11-08 01:05:47 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; What compilers are recommended for building the qt webkit?

GCC &gt;= 4.2 should do fine.

(In reply to comment #3)
&gt; For my understanding, my compiler is correctly complaining, when TOUCH_EVENTS is not set:
&gt; ../WebKit/qt/Api/qwebpage.cpp:1571: error: &apos;class WebCore::EventHandler&apos; has no member named &apos;handleTouchEvent&apos;

I will testthe missing guards for touch events. However, with Qt, TOUCH_EVENTS should always be defined (we don&apos;t support versions prior to 4.6). Have you disabled TOUCH_EVENTS manually?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306057</commentid>
    <comment_count>5</comment_count>
      <attachid>73226</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-11-08 01:36:23 -0800</bug_when>
    <thetext>Created attachment 73226
Patch

Add the missing guard to the Qt port.

In the patch:
+#else
+    event-&gt;ignore();

The call to ignore() is mandatory because touch event are accepted by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306066</commentid>
    <comment_count>6</comment_count>
      <attachid>73226</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-11-08 03:12:31 -0800</bug_when>
    <thetext>Comment on attachment 73226
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306109</commentid>
    <comment_count>7</comment_count>
    <who name="Bastian">forummails</who>
    <bug_when>2010-11-08 07:26:14 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; However, with Qt, TOUCH_EVENTS should always be defined (we don&apos;t support versions prior to 4.6). Have you disabled TOUCH_EVENTS manually?

Not intentionally. I only did:
.../qt-everywhere-opensource-src-4.7.0 $ ./configure -plugin-sql-mysql -release -prefix /opt/qt47/ -nomake tools -nomake examples -nomake demos -nomake docs -nomake translations -make libs -webkit

This did not enable TOUCH_EVENTS for me (missing lib?). Too bad, I can&apos;t find logs from configure run.


Thanks for the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306537</commentid>
    <comment_count>8</comment_count>
      <attachid>73226</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-08 18:15:56 -0800</bug_when>
    <thetext>Comment on attachment 73226
Patch

Clearing flags on attachment: 73226

Committed r71593: &lt;http://trac.webkit.org/changeset/71593&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306538</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-08 18:16:01 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>73226</attachid>
            <date>2010-11-08 01:36:23 -0800</date>
            <delta_ts>2010-11-08 18:15:56 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>47427.diff</filename>
            <type>text/plain</type>
            <size>1408</size>
            <attacher name="Benjamin Poulain">benjamin</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9xdC9BcGkvcXdlYnBhZ2UuY3BwIGIvV2ViS2l0L3F0L0FwaS9x
d2VicGFnZS5jcHAKaW5kZXggYTZjYTY1YS4uYTcxNmI1NSAxMDA2NDQKLS0tIGEvV2ViS2l0L3F0
L0FwaS9xd2VicGFnZS5jcHAKKysrIGIvV2ViS2l0L3F0L0FwaS9xd2VicGFnZS5jcHAKQEAgLTEz
MTEsNiArMTMxMSw3IEBAIHZvaWQgUVdlYlBhZ2VQcml2YXRlOjphZGp1c3RQb2ludEZvckNsaWNr
aW5nKFFHcmFwaGljc1NjZW5lTW91c2VFdmVudCogZXYpCiAKIGJvb2wg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