Bug 224600 - Avoid following warning: ld: warning: linking with (...) but not using any symbols from it
Summary: Avoid following warning: ld: warning: linking with (...) but not using any sy...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-15 05:27 PDT by Kimmo Kinnunen
Modified: 2021-04-22 05:28 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2021-04-15 05:27:10 PDT
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 "softlinking", 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?
Comment 1 Alexey Proskuryakov 2021-04-15 15:28:45 PDT
Which project is producing these warnings?

> If I understand correctly, they come from the fact that we use "softlinking"

I don't see any soft linked symbols for CoreAudio in Sources/, so this is likely something else. Unless it's a 3rd party project that does it in a different way.
Comment 2 Kimmo Kinnunen 2021-04-18 22:59:17 PDT
These are WebCore, I believe with iosmac build.
However, 
The variation of these are output during normal JSC, WebCore, WebKit normal macOS builds.
Comment 3 Radar WebKit Bug Importer 2021-04-22 05:28:13 PDT
<rdar://problem/77014346>