[Webkit-unassigned] [Bug 271962] New: Linker error when logging ViewportConfiguration to TextStream in Release configuration

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 1 05:46:28 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=271962

            Bug ID: 271962
           Summary: Linker error when logging ViewportConfiguration to
                    TextStream in Release configuration
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: a_protyasha at apple.com
                CC: a_protyasha at apple.com,
                    webkit-bug-importer at group.apple.com

When building in Release configuration, I get a linker error if I try to invoke WebCore::operator<<(WTF::TextStream&, WebCore::ViewConfiguration const&). The linker error reads:

```
Undefined symbols for architecture arm64e:
  "WebCore::operator<<(WTF::TextStream&, WebCore::ViewportConfiguration const&)", referenced from:
      WebCore::ViewportConfiguration::setContentsSize(WebCore::IntSize const&) in ViewportConfiguration.o
ld: symbol(s) not found for architecture arm64e
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```

... which is a consequence of placing the relevant operator<< overload definitions behind `!LOG_DISABLED`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240401/addc1020/attachment.htm>


More information about the webkit-unassigned mailing list