Closed
Bug 489882
Opened 15 years ago
Closed 15 years ago
Building with "NECKO_DISK_CACHE=" fails with unresolved external symbol: "nsDiskCache::Hash(char const *,unsigned int)" referenced in function "DCacheHash(char const *)" (nsDiskCacheDeviceSQL)
Categories
(Calendar :: Build Config, defect)
Calendar
Build Config
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b1
People
(Reporter: mpk, Assigned: Fallen)
References
Details
Attachments
(3 files, 2 obsolete files)
7.75 KB,
text/plain
|
Details | |
689 bytes,
patch
|
Details | Diff | Splinter Review | |
1.43 KB,
patch
|
mschroeder
:
review+
|
Details | Diff | Splinter Review |
Since March 27 building Sunbird on FreeBSD fails near the end of the build. This bug seems to have been introduced with the changeset 999999125311 (see bug 290032, attachment 368619 [details] [diff] [review]).
Reporter | ||
Updated•15 years ago
|
Blocks: CcMcBuildIssues
No longer depends on: CcMcBuildIssues
Reporter | ||
Comment 1•15 years ago
|
||
It looks like MOZ_STORAGE has gotten dependant upon NECKO_DISK_CACHE. I'm unsure whether this patch may serve as a real solution or if it's merely a workaround.
Comment 2•15 years ago
|
||
Isn't this a storage issue, not a disk cache one?
Comment 3•15 years ago
|
||
Uh, storage should not be dependent on the disk cache AFAIK.
Comment 4•15 years ago
|
||
nsDiskCacheDeviceSQL includes nsDiskCache.h, and has since its initial landing. It used to not use this for anything, as far as I can tell; the patch in bug 290032 just added a use of nsDiskCache::Hash. The implementation of this function is in netwerk/cache/src/nsDiskCacheDevice.cpp, so if that doesn't get built you get the link error in this bug. The NECKO_DISK_CACHE define affects whether that C++ file is built, but NOT whether nsDiskCacheDeviceSQL.cpp is built. So... should nsDiskCacheDeviceSQL not be built ifndef NECKO_DISK_CACHE? Or should the Hash() impl move to a different file (one always built)? Or something else?
Assignee | ||
Comment 5•15 years ago
|
||
Are we still having these Problems in some form? The Sunbird builds are green.
Reporter | ||
Comment 6•15 years ago
|
||
(In reply to comment #5) > Are we still having these Problems in some form? The Sunbird builds are green. The problems seem to persist. I still get the same errors as (see the first attachment) when building Sunbird from current trunk (using mozilla-central) on FreeBSD-Stable. Are you referring to the tinderbox builds? Aren't these builds based on mozilla-1.9.1 instead of mozilla-central? They shouldn't be affected at all I think (but I could be mistaken).
Assignee | ||
Comment 7•15 years ago
|
||
Oh, now I understand, sorry. Yes, I meant the tinderbox builds, but this issue is obviously with mozilla-central.
Comment 8•15 years ago
|
||
Some days ago the comm-central branch switched back to using mozilla-central.
I now see a similar linker error trying to build on Windows 7:
> Creating library sunbird.lib and object sunbird.exp
>
> necko.lib(nsDiskCacheDeviceSQL.obj) : error LNK2019: unresolved
> external symbol "public: static unsigned int __cdecl
> nsDiskCache::Hash(char const *,unsigned int)"
> (?Hash@nsDiskCache@@SAIPBDI@Z) referenced in function "unsigned
> __int64 __cdecl DCacheHash(char const *)"
> (?DCacheHash@@YA_KPBD@Z)
>
> sunbird.exe : fatal error LNK1120: 1 unresolved externals
Reporter | ||
Comment 9•15 years ago
|
||
The original band-aid patch hasn't been working for some time now. This one applies cleanly to the current trunk.
Attachment #377940 -
Attachment is obsolete: true
Reporter | ||
Comment 10•15 years ago
|
||
Stefan's comment seems to indicate that this bug may affect all platforms. Setting to All since we don't seem to have any Sunbird tinderboxen compiling from the trunk proving otherwise.
OS: FreeBSD → All
Updated•15 years ago
|
Summary: Sunbird build bustage (with mozilla-central) → Building with "NECKO_DISK_CACHE=" fails with unresolved external symbol: "nsDiskCache::Hash(char const *,unsigned int)" referenced in function "DCacheHash(char const *)" (nsDiskCacheDeviceSQL)
Comment 11•15 years ago
|
||
Comment on attachment 409583 [details] [diff] [review] v2 (since the first one broke due to bit-rot) Enabling disk cache for Sunbird is only a workaround and I don't know what that means for Sunbird. Mozilla toolkit offers an option to turn off disk cache. Either this option should be fixed to work correctly or it should be removed.
Comment 12•15 years ago
|
||
It's definitely not a supported option... it existed for very small device embedders, IIRC, but nobody has volunteered to maintain that configuration. This is either WONTFIX or you ask the necko maintainer if it's ok to remove the option entirely.
Comment 13•15 years ago
|
||
I ran into the same problem and got sunbird built with editing Makefile.in as attached on a Linux machine (Momonga Linux 6) with make -f client.mk. .mozconfig is: ac_add_options --enable-application=calendar mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ mk_add_options MOZ_MAKE_FLAGS="-j4" mk_add_options MOZ_CO_PROJECT=calendar status of my working copy is: $ cd mozilla $ LANG=C hg parents changeset: 34849:63bd5af8386b tag: tip user: Mark Finkle <mfinkle at mozilla.com> date: Fri Nov 13 23:23:00 2009 -0500 summary: Bug 507817: BorderImage should not call ExtractCurrentFrame each time it draws [r=dbaron r=joedrew] $ LANG=C hg status M netwerk/cache/src/Makefile.in
Assignee | ||
Comment 14•15 years ago
|
||
As far as I can tell, the disk cache enables network documents to be cached locally. The default settings are to enable the disk cache with 50mb. If Sunbird decides to enable this, we should be careful. We probably don't want calendar data to be cached via the necko disk cache, so we should make sure that calendar data requests are always made bypassing the cache, or we should disable the disk cache via pref. On the other hand, Thunderbird is built with the disk cache enabled, and it seems this hasn't bothered Lightning, so it might be fine to just enable the disk cache for Sunbird. Since we don't offer prefs for the disk cache, we should nevertheless disable it in Sunbird though. Stefan, do you agree?
Assignee: nobody → philipp
Attachment #409583 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #416275 -
Flags: review?(ssitter)
Comment 15•15 years ago
|
||
Comment on attachment 416275 [details] [diff] [review] Fix - v3 r=mschroeder
Attachment #416275 -
Flags: review?(ssitter) → review+
Assignee | ||
Comment 16•15 years ago
|
||
Moving to calendar again since the issue was fixed there.
Component: Networking: Cache → Internal Components
Product: Core → Calendar
QA Contact: networking.cache → base
Assignee | ||
Updated•15 years ago
|
Component: Internal Components → Build Config
QA Contact: base → build
Assignee | ||
Comment 17•15 years ago
|
||
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/45c6417d7688> and comm-191 default <http://hg.mozilla.org/releases/comm-1.9.1/rev/e62c7d571be0> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0
Assignee | ||
Comment 18•13 years ago
|
||
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
Target Milestone: 1.0 → 1.0b1
You need to log in
before you can comment on or make changes to this bug.
Description
•