WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
317590
[CMake] Build Fix Undefined symbol bssl::CloseFD when linking WebCore
https://bugs.webkit.org/show_bug.cgi?id=317590
Summary
[CMake] Build Fix Undefined symbol bssl::CloseFD when linking WebCore
Brandon
Reported
2026-06-22 09:48:24 PDT
315200@main
added third_party/boringssl/src/tool/internal.h to the libwebrtc prefix header as part of an auto-generated list of headers used by >= 15 files. That header belongs to the BoringSSL command-line tool, not the library: it declares ScopedFD, whose inline reset() calls bssl::CloseFD(), which is only defined in tool/fd.cc -- a file never compiled into libwebrtc. Pulling it into the PCH caused ScopedFD::reset() to be emitted as a weak symbol referencing the missing CloseFD, producing an undefined-symbol error when linking WebCore. No library source actually includes tool/internal.h or uses ScopedFD, so remove it from the prefix header.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-06-22 09:48:31 PDT
<
rdar://problem/180310399
>
EWS
Comment 2
2026-06-22 10:45:18 PDT
Committed
315608@main
(5bccdc64b07a): <
https://commits.webkit.org/315608@main
> Reviewed commits have been landed. Closing PR #67604 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug