Closed
Bug 726354
Opened 13 years ago
Closed 12 years ago
Can't build mozilla-central with Parental Controls disabled
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: RyanVM, Assigned: Yoric)
References
Details
Attachments
(1 file, 2 obsolete files)
|
817 bytes,
patch
|
Details | Diff | Splinter Review |
When building with Parental Controls disabled (--disable-parental-controls), the build fails due to the errors shown below:
nsToolkitCompsModule.cpp
d:\sdks\v7.0\include\msoav.h(18) : error C2146: syntax error : missing ';' before identifier 'lpstg'
d:\sdks\v7.0\include\msoav.h(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\sdks\v7.0\include\msoav.h(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\sdks\v7.0\include\msoav.h(36) : error C2065: 'IOfficeAntiVirus' : undeclared identifier
d:\sdks\v7.0\include\msoav.h(36) : error C2065: 'IUnknown' : undeclared identifier
d:\sdks\v7.0\include\msoav.h(37) : error C2448: 'DECLARE_INTERFACE_' : function-style initializer appears to be a function definition
Full log:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ryanvm@gmail.com-a7a538c80fbb/try-win32/try-win32-build1998.txt.gz
Bisecting in hg, the regressing patch was the second one to land from bug 696033 - "Add xperf probes (sample startup probes)".
http://hg.mozilla.org/mozilla-central/rev/0eebc33d8593
I've also confirmed it via local backout.
This can be tested on Try by adding |ac_add_options --disable-parental-controls| to browser/config/mozconfigs/win32/nightly
| Assignee | ||
Comment 1•13 years ago
|
||
I will investigate this asap.
Can anybody tell me what |--disable-parental-controls| does in terms of compilation?
| Reporter | ||
Comment 2•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → dteller
Comment 3•13 years ago
|
||
Yoric: do you really need windows.h in prefprobe.h? Is perfprobe.h meant to be included in various places? (i.e. each file that needs to use the probes)
Usually including windows headers (specially windows.h) in big existing files causes various #define clash problems.. I hit some similar problems in the past while working on the profiler, see here: http://mxr.mozilla.org/mozilla-central/source/tools/profiler/thread_helper.h#42
and here: http://mxr.mozilla.org/mozilla-central/source/tools/profiler/sps_sampler.h#105
I suspect this problem is similar
| Assignee | ||
Comment 4•13 years ago
|
||
I need windows.h to define a number of types, including TRACEHANDLE. I might be able to get around this by pretending it is a |void*|, of course, but I do not really like that solution.
Now, I have a fix for Ryan's particular issue, but for some reason, it does not pass linking. I suspect this is not my fault, but I am not sure.
| Assignee | ||
Comment 5•13 years ago
|
||
Ryan, does this solve your issue?
Attachment #596634 -
Flags: feedback?(ryanvm)
| Reporter | ||
Comment 6•13 years ago
|
||
I'll try it out on my local builds tonight. Otherwise, you can test it on Try as noted in comment 0 if you want an answer sooner than that.
| Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Ryan VanderMeulen from comment #6)
> I'll try it out on my local builds tonight. Otherwise, you can test it on
> Try as noted in comment 0 if you want an answer sooner than that.
I will do that, thanks.
Comment 8•13 years ago
|
||
Try run for 7edd7bb478b5 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=7edd7bb478b5
Results (out of 1 total builds):
success: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ryanvm@gmail.com-7edd7bb478b5
| Reporter | ||
Comment 9•13 years ago
|
||
(In reply to Mozilla RelEng Bot from comment #8)
> Try run for 7edd7bb478b5 is complete.
> Detailed breakdown of the results available here:
> https://tbpl.mozilla.org/?tree=Try&rev=7edd7bb478b5
> Results (out of 1 total builds):
> success: 1
> Builds (or logs if builds failed) available at:
> http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ryanvm@gmail.com-
> 7edd7bb478b5
Works locally as well. Thanks for the patch!
| Assignee | ||
Comment 10•13 years ago
|
||
Attachment #597377 -
Flags: review?(mh+mozilla)
| Assignee | ||
Updated•13 years ago
|
Attachment #596634 -
Attachment is obsolete: true
Attachment #596634 -
Flags: feedback?(ryanvm)
| Assignee | ||
Comment 11•13 years ago
|
||
The final fix will probably be a small refactoring of perfprobe.{h, cpp}, that will let us avoid using <windows.h>.
Updated•13 years ago
|
Attachment #597377 -
Flags: review?(mh+mozilla)
| Reporter | ||
Comment 12•13 years ago
|
||
(In reply to David Rajchenbach Teller [:Yoric] from comment #11)
> The final fix will probably be a small refactoring of perfprobe.{h, cpp},
> that will let us avoid using <windows.h>.
Was that work planned for this bug or a new one?
| Assignee | ||
Comment 13•13 years ago
|
||
(In reply to Ryan VanderMeulen from comment #12)
> (In reply to David Rajchenbach Teller [:Yoric] from comment #11)
> > The final fix will probably be a small refactoring of perfprobe.{h, cpp},
> > that will let us avoid using <windows.h>.
>
> Was that work planned for this bug or a new one?
This bug demonstrated that I should not have used <windows.h> in a public header, as it contains a number of highly contagious macros.
| Reporter | ||
Comment 14•13 years ago
|
||
Mainly, I'm wondering if this patch is good enough for review and checkin with further work in a follow-up bug or if the "right" fix is desired for here.
| Assignee | ||
Comment 15•13 years ago
|
||
Comment on attachment 597377 [details] [diff] [review]
Fix
Mike, could you possibly review this patch? I intend to work on a more comprehensive fix later, but I do not like the prospect of breaking compilation for some people while I am working on other urgent stuff.
Attachment #597377 -
Flags: review?(mh+mozilla)
Comment 16•13 years ago
|
||
Comment on attachment 597377 [details] [diff] [review]
Fix
rubberstamp
Attachment #597377 -
Flags: review?(mh+mozilla) → review+
Comment 18•13 years ago
|
||
> +#include <ObjIdl.h>
Please use the lower-cased filename. Otherwise it will break MinGW builds.
| Assignee | ||
Comment 19•13 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #18)
> > +#include <ObjIdl.h>
> Please use the lower-cased filename. Otherwise it will break MinGW builds.
ok
Keywords: checkin-needed
| Assignee | ||
Comment 20•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #597377 -
Attachment is obsolete: true
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
| Reporter | ||
Comment 21•13 years ago
|
||
Flags: in-testsuite-
Keywords: checkin-needed
Whiteboard: [don't close when landing on m-c]
Target Milestone: --- → mozilla14
Comment 22•13 years ago
|
||
Pushed https://hg.mozilla.org/integration/mozilla-inbound/rev/211031b47396 as a followup - my feeling is, and 20 burning Windows builds seem to agree, "Idl".toLowerCase() != "dir" ;)
Comment 23•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d96ebdd268b2
https://hg.mozilla.org/mozilla-central/rev/211031b47396
Whiteboard: [don't close when landing on m-c]
| Assignee | ||
Comment 24•12 years ago
|
||
Does anybody remember why we had [don't close when landing on m-c]?
Otherwise, I believe that this bug can be closed.
| Reporter | ||
Comment 25•12 years ago
|
||
Presumably for the follow-up work discussed above. No idea how relevant any of that conversation is anymore, though.
| Assignee | ||
Comment 26•12 years ago
|
||
Let's close this bug, then.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•