Closed Bug 673616 Opened 13 years ago Closed 13 years ago

--enable-shared-js + --enable-shark breaks xpcom test build

Categories

(Core :: XPCOM, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: sfink, Unassigned)

References

Details

(Whiteboard: [inbound])

Attachments

(1 file)

xpcom/tests/TestHarness.h conditionally #includes "jsdbgapi.h" if MOZ_SHARK is defined, so that it can call JS_StartProfiling. libmozjs.so (eg) is not included on the link of the tests that use TestHarness.h.

khuey says the attached is the right fix. I don't really understand why it was working without --enable-shared-js, and if it was because the JS lib was included in libxul.so, then I don't understand why this wouldn't cause duplicate symbols or something. I'm hoping I'll never have to understand.

I am changing the profiling stuff around substantially. This fix will be necessary to avoid --enable-shared-js *always* breaking the test builds, which would suck.
Attachment #547844 - Flags: review?(khuey)
Comment on attachment 547844 [details] [diff] [review]
Add JS libs into link of tests

NB: You need to make the same change to js/src/config/rules.mk, or you will anger the copy-paste test in make check.
Attachment #547844 - Flags: review?(khuey) → review+
Blocks: 673631
Mirrored the changes to js/src, thanks.

http://hg.mozilla.org/integration/mozilla-inbound/rev/8f591ae20300
Whiteboard: [inbound]
http://hg.mozilla.org/mozilla-central/rev/8f591ae20300
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Depends on: 679473
No longer depends on: 679473
For what it's worth, the fix for this bug is wrong and broke win64 on the landing of bug 702179. The issue will be resolved there.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: