Closed Bug 236269 Opened 21 years ago Closed 21 years ago

--enable-trace-malloc is broken

Categories

(Core :: Layout, defect)

Other Branch
x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 file, 1 obsolete file)

my mozconfigs have:

ac_add_options --enable-trace-malloc

The build fails linking layout.
Attached patch Link against tracemalloc (obsolete) — Splinter Review
Attachment #142794 - Flags: review?(dbaron)
Building deps for /cygdrive/r/mozilla/layout/build/nsContentHTTPStartup.cpp
nsContentHTTPStartup.cpp
LINK : warning LNK4224: /PDB:NONE is no longer supported;  ignored
   Creating library gklayout.lib and object gklayout.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs;
use /NODEFAULTLIB:library
jsdombase_s.lib(nsJSEnvironment.obj) : error LNK2019: unresolved external symbol
_NS_TraceMallocDisable referenced in fu
nction "int __cdecl TraceMallocDisable(struct JSContext *,struct JSObject
*,unsigned int,long *,long *)" (?TraceMallocDi
sable@@YAHPAUJSContext@@PAUJSObject@@IPAJ2@Z)
jsdombase_s.lib(nsJSEnvironment.obj) : error LNK2019: unresolved external symbol
_NS_TraceMallocEnable referenced in fun
ction "int __cdecl TraceMallocEnable(struct JSContext *,struct JSObject
*,unsigned int,long *,long *)" (?TraceMallocEnab
le@@YAHPAUJSContext@@PAUJSObject@@IPAJ2@Z)
jsdombase_s.lib(nsJSEnvironment.obj) : error LNK2019: unresolved external symbol
_NS_TraceMallocChangeLogFD referenced i
n function "int __cdecl TraceMallocChangeLogFD(struct JSContext *,struct
JSObject *,unsigned int,long *,long *)" (?Trace
MallocChangeLogFD@@YAHPAUJSContext@@PAUJSObject@@IPAJ2@Z)
jsdombase_s.lib(nsJSEnvironment.obj) : error LNK2019: unresolved external symbol
_NS_TraceMallocCloseLogFD referenced in
 function "int __cdecl TraceMallocCloseLogFD(struct JSContext *,struct JSObject
*,unsigned int,long *,long *)" (?TraceMa
llocCloseLogFD@@YAHPAUJSContext@@PAUJSObject@@IPAJ2@Z)
jsdombase_s.lib(nsJSEnvironment.obj) : error LNK2019: unresolved external symbol
_NS_TraceMallocLogTimestamp referenced
in function "int __cdecl TraceMallocLogTimestamp(struct JSContext *,struct
JSObject *,unsigned int,long *,long *)" (?Tra
ceMallocLogTimestamp@@YAHPAUJSContext@@PAUJSObject@@IPAJ2@Z)
jsdombase_s.lib(nsJSEnvironment.obj) : error LNK2019: unresolved external symbol
_NS_TraceMallocDumpAllocations referenc
ed in function "int __cdecl TraceMallocDumpAllocations(struct JSContext *,struct
JSObject *,unsigned int,long *,long *)"
 (?TraceMallocDumpAllocations@@YAHPAUJSContext@@PAUJSObject@@IPAJ2@Z)
gklayout.dll : fatal error LNK1120: 6 unresolved externals
make[1]: *** [gklayout.dll] Error 96
Comment on attachment 142794 [details] [diff] [review]
Link against tracemalloc

How about just doing what the old dom/src/build/Makefile.in did, which is:

ifdef NS_TRACE_MALLOC
EXTRA_DSO_LIBS	+= tracemalloc
endif
Attachment #142794 - Flags: review?(dbaron)
Attached patch per dbaronSplinter Review
Attachment #142794 - Attachment is obsolete: true
Attachment #142998 - Flags: review?(dbaron)
Attachment #142998 - Flags: superreview+
Attachment #142998 - Flags: review?(dbaron)
Attachment #142998 - Flags: review+
mozilla/layout/build/Makefile.in 	1.107
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: