<?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>114435</bug_id>
          
          <creation_ts>2013-04-11 05:23:56 -0700</creation_ts>
          <short_desc>[Qt][Mac] Linking fails with Qt 5.1</short_desc>
          <delta_ts>2013-09-16 12:14:00 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Andras Becsi">abecsi</reporter>
          <assigned_to name="Andras Becsi">abecsi</assigned_to>
          <cc>allan.jensen</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>hausmann</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>873762</commentid>
    <comment_count>0</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 05:23:56 -0700</bug_when>
    <thetext>[Qt][Mac] Linking fails with Qt 5.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873766</commentid>
    <comment_count>1</comment_count>
      <attachid>197578</attachid>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 05:24:58 -0700</bug_when>
    <thetext>Created attachment 197578
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873772</commentid>
    <comment_count>2</comment_count>
      <attachid>197578</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2013-04-11 06:02:07 -0700</bug_when>
    <thetext>Comment on attachment 197578
Patch

r=me but I&apos;d prefer if the QMAKE_LFLAGS/CXXFLAGS setting could be replaced with CONFIG -= c++11 if it works. (mkspecs/features/c++11.prf adds those in the first place, and that should be processed after this .pri file)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873774</commentid>
    <comment_count>3</comment_count>
      <attachid>197578</attachid>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2013-04-11 06:07:15 -0700</bug_when>
    <thetext>Comment on attachment 197578
Patch

I agree with Simon, try CONFIG -= c++11 first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873782</commentid>
    <comment_count>4</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 06:32:33 -0700</bug_when>
    <thetext>Using CONFIG -= c++11 does not fix the issue for me. The build still fails because the linking command line still includes -stdlib=libc++.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873786</commentid>
    <comment_count>5</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 06:46:10 -0700</bug_when>
    <thetext>In ANGLE.pri CONFIG does not even contain c++11 yet, and because QT_CONFIG does it is still added to CONFIG in mkspecs/features/qt_common.prf, which apparently happens after processing this pri file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873787</commentid>
    <comment_count>6</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2013-04-11 06:48:31 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; In ANGLE.pri CONFIG does not even contain c++11 yet, and because QT_CONFIG does it is still added to CONFIG in mkspecs/features/qt_common.prf, which apparently happens after processing this pri file.

Not sure why c++11 is handled that way, but QT_CONFIG -= c++11 should work around it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873796</commentid>
    <comment_count>7</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 07:05:29 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; In ANGLE.pri CONFIG does not even contain c++11 yet, and because QT_CONFIG does it is still added to CONFIG in mkspecs/features/qt_common.prf, which apparently happens after processing this pri file.
&gt; 
&gt; Not sure why c++11 is handled that way, but QT_CONFIG -= c++11 should work around it.

Ok, I though changing QT_CONFIG would not be an option.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873797</commentid>
    <comment_count>8</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2013-04-11 07:06:31 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; In ANGLE.pri CONFIG does not even contain c++11 yet, and because QT_CONFIG does it is still added to CONFIG in mkspecs/features/qt_common.prf, which apparently happens after processing this pri file.
&gt; &gt; 
&gt; &gt; Not sure why c++11 is handled that way, but QT_CONFIG -= c++11 should work around it.
&gt; 
&gt; Ok, I though changing QT_CONFIG would not be an option.

It&apos;s a bit hackish, but less so than changing the QMAKE_LFLAGS_CXX11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873801</commentid>
    <comment_count>9</comment_count>
      <attachid>197586</attachid>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 07:24:49 -0700</bug_when>
    <thetext>Created attachment 197586
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873826</commentid>
    <comment_count>10</comment_count>
      <attachid>197586</attachid>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 08:08:28 -0700</bug_when>
    <thetext>Comment on attachment 197586
Patch

Clearing flags on attachment: 197586

Committed r148204: &lt;http://trac.webkit.org/changeset/148204&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873827</commentid>
    <comment_count>11</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-04-11 08:08:33 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929772</commentid>
    <comment_count>12</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-09-16 09:49:34 -0700</bug_when>
    <thetext>How is this supposed to work. If you build ANGLE with libstdc++ includes, the symbols are just going to be missing in the final binary. 

This is the result of merging this now:
http://testresults.qt-project.org/ci/QtWebKit_dev_Integration/build_00098/macx-clang_developer-build_OSX_10.8/log.txt.gz

ANGLE referencing libstdc++ specific stuff, which is never linked in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929850</commentid>
    <comment_count>13</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2013-09-16 12:02:43 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; How is this supposed to work. If you build ANGLE with libstdc++ includes, the symbols are just going to be missing in the final binary. 
&gt; 
&gt; This is the result of merging this now:
&gt; http://testresults.qt-project.org/ci/QtWebKit_dev_Integration/build_00098/macx-clang_developer-build_OSX_10.8/log.txt.gz
&gt; 
&gt; ANGLE referencing libstdc++ specific stuff, which is never linked in.

ANGLE should not be build with c++11 support, and it wasn&apos;t when this got committed, since then the configuration in Qt might have changed, so this might not have an effect any more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929856</commentid>
    <comment_count>14</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2013-09-16 12:14:00 -0700</bug_when>
    <thetext>(In reply to comment #13)
&gt; (In reply to comment #12)
&gt; &gt; How is this supposed to work. If you build ANGLE with libstdc++ includes, the symbols are just going to be missing in the final binary. 
&gt; &gt; 
&gt; &gt; This is the result of merging this now:
&gt; &gt; http://testresults.qt-project.org/ci/QtWebKit_dev_Integration/build_00098/macx-clang_developer-build_OSX_10.8/log.txt.gz
&gt; &gt; 
&gt; &gt; ANGLE referencing libstdc++ specific stuff, which is never linked in.
&gt; 
&gt; ANGLE should not be build with c++11 support, and it wasn&apos;t when this got committed, since then the configuration in Qt might have changed, so this might not have an effect any more.

It isn&apos;t but that means it will by default be build with libstdc++, where the final QtWebKit module is linked with libc++. This means we end up with the wrong symbols.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>197578</attachid>
            <date>2013-04-11 05:24:58 -0700</date>
            <delta_ts>2013-04-11 07:24:44 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-114435-20130411142441.patch</filename>
            <type>text/plain</type>
            <size>1554</size>
            <attacher name="Andras Becsi">abecsi</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ4MTkwCmRpZmYgLS1naXQgYS9Tb3VyY2UvVGhpcmRQYXJ0
eS9BTkdMRS9DaGFuZ2VMb2cgYi9Tb3VyY2UvVGhpcmRQYXJ0eS9BTkdMRS9DaGFuZ2VMb2cKaW5k
ZXggODEwOGRmZTZmMWVkMjliZmZjMjlmOWZkYjhkYzVjMDMyMjgyNmVhZi4uNDJiMmMzYzZlOWVj
NDY0ZGQyNDFjNGZlYjcxN2QyOTQ0MjIxMTAwYiAxMDA2NDQKLS0tIGEvU291cmNlL1RoaXJkUGFy
dHkvQU5HTEUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9UaGlyZFBhcnR5L0FOR0xFL0NoYW5nZUxv
ZwpAQCAtMSwzICsxLDIwIEBACisyMDEzLTA0LTExICBBbmRyYXMgQmVjc2kgIDxhbmRyYXMuYmVj
c2lAZGlnaWEuY29tPgorCisgICAgICAgIFtRdF1bTWFjXSBMaW5raW5nIGZhaWxzIHdpdGggUXQg
NS4xCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMTQ0
MzUKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBRdCA1
LjEgZW5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
L0FOR0xFLnByaQpAQCAtNyw2ICs3LDExIEBACiAKIFNPVVJDRV9ESVIgPSAkJHtST09UX1dFQktJ
VF9ESVJ9L1NvdXJjZS9UaGlyZFBhcnR5L0FOR0xFCiAKKypjbGFuZyB7CisgICAgUU1BS0VfTEZM
QUdTX0NYWDExID0KKyAgICBRTUFLRV9DWFhGTEFHU19DWFgxMSA9Cit9CisKIElOQ0xVREVQQVRI
ICs9IFwKICAgICAkJFNPVVJDRV9ESVIvaW5jbHVkZS9HTFNMQU5HIFwKICAgICAkJFNPVVJDRV9E
SVIvaW5jbHVkZS9LSFIK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>197586</attachid>
            <date>2013-04-11 07:24:49 -0700</date>
            <delta_ts>2013-04-11 08:08:28 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-114435-20130411162432.patch</filename>
            <type>text/plain</type>
            <size>1467</size>
            <attacher name="Andras Becsi">abecsi</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ4MTkwCmRpZmYgLS1naXQgYS9Tb3VyY2UvVGhpcmRQYXJ0
eS9BTkdMRS9DaGFuZ2VMb2cgYi9Tb3VyY2UvVGhpcmRQYXJ0eS9BTkdMRS9DaGFuZ2VMb2cKaW5k
ZXggODEwOGRmZTZmMWVkMjliZmZjMjlmOWZkYjhkYzVjMDMyMjgyNmVhZi4uNGE2OWUxNTk1YTJj
YTIzMWM0Y2QyY2JmYmQ4MzI2Y2M1NjZkY2RhYiAxMDA2NDQKLS0tIGEvU291cmNlL1RoaXJkUGFy
dHkvQU5HTEUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9UaGlyZFBhcnR5L0FOR0xFL0NoYW5nZUxv
ZwpAQCAtMSwzICsxLDE5IEBACisyMDEzLTA0LTExICBBbmRyYXMgQmVjc2kgIDxhbmRyYXMuYmVj
c2lAZGlnaWEuY29tPgorCisgICAgICAgIFtRdF1bT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