WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
185893
Logging macros are sensitive to pal/Logging.h vs Logging.h include order
https://bugs.webkit.org/show_bug.cgi?id=185893
Summary
Logging macros are sensitive to pal/Logging.h vs Logging.h include order
Simon Fraser (smfr)
Reported
2018-05-22 16:43:08 PDT
Add a #include <pal/Logging.h> to a .cpp file can break the build, because subsequent files in the same UnifiedSources*.cpp may use the LOG macro, and pal/Logging.h and Logging.h #define LOG_CHANNEL_PREFIX to different things. I don't think pal/Logging.h should define any log channels, nor define LOG_CHANNEL_PREFIX.
Attachments
Patch
(12.67 KB, patch)
2018-06-04 17:55 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2018-05-22 16:50:42 PDT
Errors look like: Undefined symbols for architecture x86_64: "WebCore::PALLogIndexedDB", referenced from: WebCore::injectIDBKeyIntoScriptValue(JSC::ExecState&, WebCore::IDBKeyData const&, JSC::JSValue, WTF::Variant<WTF::String, WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow, 16ul> > const&) in UnifiedSource170.o "WebCore::PALLogStorageAPI", referenced from: WebCore::canInjectIDBKeyIntoScriptValue(JSC::ExecState&, JSC::JSValue const&, WTF::Variant<WTF::String, WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow, 16ul> > const&) in UnifiedSource170.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Simon Fraser (smfr)
Comment 2
2018-05-22 17:26:44 PDT
I think we can just gut pal/Logging.h
Don Olmstead
Comment 3
2018-05-23 11:27:41 PDT
Might we want to move commonality up to WTF then specialize based on WebCore/PAL etc?
Simon Fraser (smfr)
Comment 4
2018-05-23 11:44:13 PDT
Yes, we should.
Simon Fraser (smfr)
Comment 5
2018-06-04 17:55:51 PDT
Created
attachment 341941
[details]
Patch
WebKit Commit Bot
Comment 6
2018-06-06 11:20:37 PDT
Comment on
attachment 341941
[details]
Patch Clearing flags on attachment: 341941 Committed
r232550
: <
https://trac.webkit.org/changeset/232550
>
WebKit Commit Bot
Comment 7
2018-06-06 11:20:38 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2018-06-06 11:21:24 PDT
<
rdar://problem/40859215
>
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