Closed
Bug 925705
Opened 12 years ago
Closed 12 years ago
Network cache fails to compile with logging disabled
Categories
(Core :: Networking: Cache, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: gcp, Assigned: gcp)
References
Details
Attachments
(1 file)
|
1.72 KB,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
14:50.44 /home/morbo/hg/mozilla-central/netwerk/cache2/CacheEntry.cpp: In member function ‘void mozilla::net::CacheEntry::AsyncOpen(nsICacheEntryOpenCallback*, uint32_t)’:
14:50.44 /home/morbo/hg/mozilla-central/netwerk/cache2/CacheEntry.cpp:163:164: error: ‘StateString’ was not declared in this scope
The problem is that CacheEntry::StateString is defined inside MOZ_LOGGING, but used all over the file without the protection of the same define. Instead, the LOG macro used is checking for PR_LOGGING.
This would probably work correctly, if CacheLog.h wouldn't contain a FORCE_PR_LOGGING which (I think) desyncs PR_LOGGING from MOZ_LOGGING.
| Assignee | ||
Comment 1•12 years ago
|
||
An alternative fix would probably be to remove the FORCE_PR_LOGGING, but I'm going to assume it was put there for a reason.
Attachment #815810 -
Flags: review?(honzab.moz)
Comment 2•12 years ago
|
||
Comment on attachment 815810 [details] [diff] [review]
Patch 1. Fix mismatched logging checks
Review of attachment 815810 [details] [diff] [review]:
-----------------------------------------------------------------
r=honzab but change the macro to PR_LOG please. That is the proper one!
Thanks for the fix!
Attachment #815810 -
Flags: review?(honzab.moz) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
>but change the macro to PR_LOG please. That is the proper one!
I can't make sense of what you say here. CacheLog.h seems to exist for no other reason than to define a LOG macro that wraps PR_LOG.
Comment 4•12 years ago
|
||
(In reply to Gian-Carlo Pascutto (:gcp) from comment #3)
> >but change the macro to PR_LOG please. That is the proper one!
>
> I can't make sense of what you say here. CacheLog.h seems to exist for no
> other reason than to define a LOG macro that wraps PR_LOG.
#ifdef PR_LOG
is the what you want... Get inspired by http://hg.mozilla.org/mozilla-central/annotate/211337f7fb83/netwerk/cache2/CacheStorageService.cpp#l649
| Assignee | ||
Comment 5•12 years ago
|
||
Assignee: nobody → gpascutto
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Still fails under PGO build under MSVC 2012 on windows x86_x64 with unresolved external symbol resulting in LNK2001 Only with logging disabled
| Assignee | ||
Comment 8•12 years ago
|
||
You probably want to file a new, follow-up bug for that issue with more details.
You need to log in
before you can comment on or make changes to this bug.
Description
•