<?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>103137</bug_id>
          
          <creation_ts>2012-11-23 06:43:35 -0800</creation_ts>
          <short_desc>[Gtk] Tools/TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp fails to link</short_desc>
          <delta_ts>2013-10-09 14:29:22 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          <dependson>102510</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury Semikhatsky">yurys</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>gustavo</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>philn</cc>
    
    <cc>xan.lopez</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>774510</commentid>
    <comment_count>0</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2012-11-23 06:43:35 -0800</bug_when>
    <thetext>Adding Tools/TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp to Tools/TestWebKitAPI/GNUmakefile.am causes linker failure. Although doing the same with e.g. Tools/TestWebKitAPI/Tests/WTF/WTFSring.cpp works just fine.

I originally faced this issue while working on patch for webkit.org/b/102510. Compilation started failing when I moved part of wtf/MemoryInstrumentation.h into wtf/MemoryInstrumentation.cpp (see http://queues.webkit.org/results/14899240):

&quot;ts/WTF/Programs_TestWebKitAPI_TestWTF-MemoryInstrumentationTest.o:MemoryInstrumentationTest.cpp:function typeinfo for (anonymous namespace)::InstrumentationTestImpl: error: undefined reference to &apos;typeinfo for WTF::MemoryInstrumentation&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>774513</commentid>
    <comment_count>1</comment_count>
      <attachid>175798</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2012-11-23 06:46:22 -0800</bug_when>
    <thetext>Created attachment 175798
Failing change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>774547</commentid>
    <comment_count>2</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2012-11-23 07:27:27 -0800</bug_when>
    <thetext>Can someone familiar with Gtk build system help me resolve the issue? Source/WTF/wtf/MemoryInstrumentation.cpp seems to be included in the same places in GNUmakefiles as Source/WTF/wtf/text/WTFString.cpp, still methods from  Source/WTF/wtf/text/WTFString.cpp are accessible from  Tools/TestWebKitAPI/Tests/WTF/WTFSring.cpp while those of Source/WTF/wtf/MemoryInstrumentation.cpp aren&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938074</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-10-09 14:29:22 -0700</bug_when>
    <thetext>Obsolete after bug 114931.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>175798</attachid>
            <date>2012-11-23 06:46:22 -0800</date>
            <delta_ts>2012-11-23 06:46:22 -0800</delta_ts>
            <desc>Failing change</desc>
            <filename>gtk-failure.patch</filename>
            <type>text/plain</type>
            <size>977</size>
            <attacher name="Yury Semikhatsky">yurys</attacher>
            
              <data encoding="base64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