<?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>232931</bug_id>
          
          <creation_ts>2021-11-10 01:43:16 -0800</creation_ts>
          <short_desc>[GLib] Developer build with release logs disabled fails</short_desc>
          <delta_ts>2021-11-12 07:45:21 -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>Platform</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Philippe Normand">pnormand</assigned_to>
          <cc>aperez</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jer.noble</cc>
    
    <cc>philipj</cc>
    
    <cc>sergio</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1813511</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-11-10 01:43:16 -0800</bug_when>
    <thetext>In Internals.cpp we require convertEnumerationToString(PlatformMediaSession::RemoteControlCommandType) but that is guarded by an ifdef in PlatformMediaSession.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813512</commentid>
    <comment_count>1</comment_count>
      <attachid>443785</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-11-10 01:45:12 -0800</bug_when>
    <thetext>Created attachment 443785
[fast-cq] Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813997</commentid>
    <comment_count>2</comment_count>
      <attachid>443785</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-11-11 05:53:27 -0800</bug_when>
    <thetext>Comment on attachment 443785
[fast-cq] Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=443785&amp;action=review

&gt; Source/WebCore/ChangeLog:9
&gt; +        functions, required by Internals.

This looks adjacent to the issue from bug #226088 — I didn&apos;t get to the
bottom of it, but there we run in a multiple definition issue due to the
same method (exactly the same!) being generated from a WebIDL file. Why is
this not a problem here? Is something latent here being hidden as well by
unified builds, I wonder?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814003</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-11-11 06:30:19 -0800</bug_when>
    <thetext>I don&apos;t think it&apos;s related with unified builds, if you open PlatformMediaSession.h you&apos;ll see, not guarded by ifdef:

WEBCORE_EXPORT String convertEnumerationToString(PlatformMediaSession::RemoteControlCommandType);

But in the cpp unit it is currently guarded by an ifdef, hence the link error happening when MEDIA_SESSION is enabled, but release logs are disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814423</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-11-12 07:10:45 -0800</bug_when>
    <thetext>(In reply to Philippe Normand from comment #3)
&gt; I don&apos;t think it&apos;s related with unified builds, if you open
&gt; PlatformMediaSession.h you&apos;ll see, not guarded by ifdef:
&gt; 
&gt; WEBCORE_EXPORT String
&gt; convertEnumerationToString(PlatformMediaSession::RemoteControlCommandType);
&gt; 
&gt; But in the cpp unit it is currently guarded by an ifdef, hence the link
&gt; error happening when MEDIA_SESSION is enabled, but release logs are disabled.

It&apos;s only related in that I am trying to solve another bug that happens to
result in multiple definitions of this symbol when unified builds are
disabled because my test builds I typically do with logging enabled so
the function was being compiled in my case, too — but that&apos;s all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814428</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-11-12 07:44:37 -0800</bug_when>
    <thetext>Committed r285718 (244177@main): &lt;https://commits.webkit.org/244177@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 443785.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814429</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-12 07:45:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/85343300&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>443785</attachid>
            <date>2021-11-10 01:45:12 -0800</date>
            <delta_ts>2021-11-12 07:44:38 -0800</delta_ts>
            <desc>[fast-cq] Patch</desc>
            <filename>bug-232931-20211110014511.patch</filename>
            <type>text/plain</type>
            <size>1766</size>
            <attacher name="Philippe Normand">pnormand</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjg1NTY4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMTgxOWE1YmUyYzRiODkw
ODc4ODE3MzVhZmU5ODEwMTg0MTJhNTRmMC4uOWQ1MjhhYWNhZWYyNGRhMGE4NWUyZGRkMDY1MWIw
OThjZTIzYTIxNiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDIxLTExLTEwICBQaGls
aXBwZ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