Closed Bug 503308 Opened 15 years ago Closed 15 years ago

Debug build failure in toolkit/mozapps/update/TestAUSReadStrings.cpp: undefined reference to `NS_DebugBreak'

Categories

(Toolkit :: Application Update, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1
Tracking Status
status1.9.1 --- .2-fixed

People

(Reporter: smontagu, Assigned: robert.strong.bugs)

References

Details

(Whiteboard: [fixed on 1.9.1.2 by bug 490253])

Attachments

(1 file, 1 obsolete file)

c++   -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DDEBUG -D_DEBUG -DDEBUG_smontagu -DTRACING -g -fno-inline -o TestAUSReadStrings TestAUSReadStrings.o   -lpthread          -Wl,-rpath-link,/home/smontagu/mozwork/hg/obj-i686-pc-linux-gnu-debug/dist/bin -Wl,-rpath-link,/usr/local/lib -L../../../../dist/bin -L../../../../dist/lib ../../../../toolkit/mozapps/update/src/updater/readstrings.o  -lasound -ldl -lm     
TestAUSReadStrings.o: In function `_PlatformDeinitProfiler':
/home/smontagu/mozwork/hg/xpcom/tests/TestHarness.h:224: undefined reference to `NS_DebugBreak'
TestAUSReadStrings.o: In function `_PlatformStopProfile':
/home/smontagu/mozwork/hg/xpcom/tests/TestHarness.h:218: undefined reference to `NS_DebugBreak'
TestAUSReadStrings.o: In function `_PlatformStartProfile':
/home/smontagu/mozwork/hg/xpcom/tests/TestHarness.h:212: undefined reference to `NS_DebugBreak'
TestAUSReadStrings.o: In function `_PlatformInitProfiler':
/home/smontagu/mozwork/hg/xpcom/tests/TestHarness.h:206: undefined reference to `NS_DebugBreak'
TestAUSReadStrings.o: In function `StopProfiling':
/home/smontagu/mozwork/hg/xpcom/tests/TestHarness.h:149: undefined reference to `NS_DebugBreak'
TestAUSReadStrings.o:/home/smontagu/mozwork/hg/xpcom/tests/TestHarness.h:153: more undefined references to `NS_DebugBreak' follow
collect2: ld returned 1 exit status
make: *** [TestAUSReadStrings] Error 1
Attached patch patch rev1 (obsolete) — Splinter Review
Assignee: nobody → robert.bugzilla
Status: NEW → ASSIGNED
Attachment #387675 - Flags: review+
Pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/2afd49118d1b
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
backed out
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 387718 [details] [diff] [review]
patch - passed try server (checked in)

Pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/03dee9517102
Attachment #387718 - Attachment description: patch - sent to try server → patch - passed try server (checked in)
I'm going to leave open until I verify there are no problems which there shouldn't be since the patch passed the try server and I built it locally for Fennec on Windows Mobile as well.
Works for me.
Oh. What is the issue here? That Toolkit can't depend on Xpcom?
Version: unspecified → Trunk
I don't know the specific dependencies involved but TestAUSReadStrings doesn't need / use xpcom, etc. and TestHarness.h does which caused missing dependencies.

Resolving -> fixed
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Note: I added this fix when I pushed bug 490253 to mozilla-1.9.1
Whiteboard: [fixed on 1.9.1.2 by bug 490253]
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: