Closed Bug 945587 Opened 11 years ago Closed 11 years ago

nsXULTemplateResultStorage.cpp:12:22: error: redefinition of 'kRDFServiceCID' when building with 12 unified sources instead of 16

Categories

(Core :: XUL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: glandium, Assigned: ehsan.akhgari)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Open python/mozbuild/mozbuild/backend/recursivemake.py, search for files_per_unification, replace its value (16) with 12.

This is the (one of the multiple) error(s) you can get then:

content/xul/templates/src/nsXULTemplateResultStorage.cpp:12:22: error: redefinition of 'kRDFServiceCID'
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
                     ^
../../../../dist/include/nsID.h:86:15: note: expanded from macro 'NS_DEFINE_CID'
  const nsCID _name = _cidspec
              ^
content/xul/templates/src/nsXULContentUtils.cpp:64:22: note: previous definition is here
static NS_DEFINE_CID(kRDFServiceCID,        NS_RDFSERVICE_CID);
Blocks: unified
This should probably be made about all the possible similar cases in the tree, that are just future bugs in hiding.

The pattern being static NS_DEFINE_CID at global scope for the same symbol, in the same directory.
Assignee: nobody → ehsan
Attachment #8341677 - Flags: review?(bzbarsky)
Comment on attachment 8341677 [details] [diff] [review]
Stop using the kRDFServiceCID name in content/xul

r=me
Attachment #8341677 - Flags: review?(bzbarsky) → review+
Backed out because apparently f({0, 1, ...}) is not C++?

https://hg.mozilla.org/integration/mozilla-inbound/rev/38ddf36afa9d
https://hg.mozilla.org/mozilla-central/rev/65b997a2db9a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: