<?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>224600</bug_id>
          
          <creation_ts>2021-04-15 05:27:10 -0700</creation_ts>
          <short_desc>Avoid following warning: ld: warning: linking with (...) but not using any symbols from it</short_desc>
          <delta_ts>2021-04-22 05:28:13 -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>Tools / Tests</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1750574</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-04-15 05:27:10 -0700</bug_when>
    <thetext>ld: warning: linking with (/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio) but not using any symbols from it
ld: warning: linking with (/System/Library/PrivateFrameworks/URLFormatting.framework/Versions/A/URLFormatting) but not using any symbols from it
ld: warning: linking with (/usr/lib/libAccessibility.dylib) but not using any symbols from it

Maybe it would be good to avoid the warnings such as above? Would it be possible?

The excessive and constant warnings seem to cause problem where warnings are ignored by humans, hiding real bugs.

If I understand correctly, they come from the fact that we use &quot;softlinking&quot;, e.g. define all the symbols as weak manually, but still link to the library in a normal way?

Is there a reason for this, as opposed to fully linking weakly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1750799</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-04-15 15:28:45 -0700</bug_when>
    <thetext>Which project is producing these warnings?

&gt; If I understand correctly, they come from the fact that we use &quot;softlinking&quot;

I don&apos;t see any soft linked symbols for CoreAudio in Sources/, so this is likely something else. Unless it&apos;s a 3rd party project that does it in a different way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751678</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-04-18 22:59:17 -0700</bug_when>
    <thetext>These are WebCore, I believe with iosmac build.
However, 
The variation of these are output during normal JSC, WebCore, WebKit normal macOS builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1753119</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-22 05:28:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/77014346&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>