Closed
Bug 400382
Opened 18 years ago
Closed 17 years ago
make webdav code link with xpcom_glue instead of xpcom directly, convert to frozen linkage
Categories
(Core Graveyard :: WebDAV, defect)
Core Graveyard
WebDAV
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dbo, Assigned: dbo)
References
Details
Attachments
(3 files)
10.00 KB,
patch
|
dmosedale
:
review+
|
Details | Diff | Splinter Review |
1.51 KB,
patch
|
dmosedale
:
review+
|
Details | Diff | Splinter Review |
706 bytes,
patch
|
Details | Diff | Splinter Review |
Follow-up bug from bug 324440 comment #31.
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #285465 -
Flags: review?(shaver)
Updated•18 years ago
|
Assignee: shaver → daniel.boelzle
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 2•18 years ago
|
||
Shaver's unlikely to be responsive for a while (have you seen his latest blog post? :), maybe there's someone else you could ask for review?
Assignee | ||
Comment 3•18 years ago
|
||
Yes, I know; he's off at least until end of october. I think we could wait some time with this one (because calendar still releases from branch), but if e.g. dmose wants to jump in, it would of course be great. :)
Assignee | ||
Updated•17 years ago
|
Attachment #285465 -
Flags: review?(shaver) → review?(dmose)
Comment 4•17 years ago
|
||
Comment on attachment 285465 [details] [diff] [review]
change to frozen linkage on trunk
Looks good; r=dmose. I don't think we ever had an explicit policy about whether sr is required in the WebDAV code, so I'll assert that it's not.
Attachment #285465 -
Flags: review?(dmose) → review+
Assignee | ||
Comment 5•17 years ago
|
||
Checked in on trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 6•17 years ago
|
||
This caused sunbird-trunk build to go red.
../../../staticlib/components/libwebdav.a(nsWebDAVService.o): In function `nsWebDAVService::PropfindInternal(nsIWebDAVResource*, unsigned int, char const**, int, nsIWebDAVOperationListener*, nsIInterfaceRequestor*, nsISupports*, int)':
/builds/tinderbox/Sunbird-Trunk/Linux_2.6.18-8.el5_Depend/mozilla/extensions/webdav/src/nsWebDAVService.cpp:420: undefined reference to `nsACString::RFindChar(char) const'
and a whole bunch of those errors.
http://tinderbox.mozilla.org/showlog.cgi?log=Sunbird/1196708040.1196711853.23287.gz
apparently, this mixes internal and external linkage.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7•17 years ago
|
||
This patch makes sunbird-static work on mac. But I couldn't test thunderbird+lightning yet.
Attachment #291275 -
Flags: review?(daniel.boelzle)
Comment 8•17 years ago
|
||
An alternative would be some ifdef magic to set MOZILLA_INTERNAL_API when doing a static build. That would need to be combined with #include "nsStringGlue.h" instead of "nsStringApi.h"
Comment 9•17 years ago
|
||
r=dmose to check in to fix build bustage. I think it's worth investigating to understand better what the right fix really is, however. mvl's proposal in comment 8 seems like a good option.
Updated•17 years ago
|
Attachment #291275 -
Flags: review?(daniel.boelzle) → review+
Comment 10•17 years ago
|
||
not sure if this is a clean fix but it seems to work somehow...
Comment 11•17 years ago
|
||
Comment on attachment 291275 [details] [diff] [review]
patch for bustage [checked in]
I checked in this patch. Trees are getting green.
I even think that this might be the right fix. It treats webdav as an extension, for all builds. I think that's what we want.
Attachment #291275 -
Attachment description: patch for bustage → patch for bustage [checked in]
Assignee | ||
Comment 12•17 years ago
|
||
Comment on attachment 291275 [details] [diff] [review]
patch for bustage [checked in]
mvl, it's not clear to me why your patch fixes trunk static builds. Could you please elaborate why it does?
>-#include "nsStringAPI.h"
>+#include "nsStringGlue.h"
Especially this confuses me since we don't want the non-frozen API to be included, so why not straight away include nsStringAPI.h?
Comment 13•17 years ago
|
||
Sorry, I forget to mention that I didn't check in that part of the patch, since it indeed does not fix anything. (it was part of my other attempt of fixing this)
The patch fixes the builds because it makes webdav always shared. It can't be linked in static, because it uses the external string api, while sunbird itself uses the internal. Trying to make webdav link staticly would mix the two api's.
Assignee | ||
Comment 14•17 years ago
|
||
(In reply to comment #13)
> The patch fixes the builds because it makes webdav always shared. It can't be
> linked in static, because it uses the external string api, while sunbird itself
> uses the internal. Trying to make webdav link staticly would mix the two api's.
Yes makes sense. Yesterday ause and I were wondering about why we shouldn't take webdav dynamically, too.
But w.r.t. bug 324440, is it feasible at all to link a static (frozen only) sunbird?
Assignee | ||
Comment 15•17 years ago
|
||
Static sunbird builds again => FIXED.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•