Closed Bug 906310 Opened 11 years ago Closed 11 years ago

mozcrt.lib(mozglue.dll) : error LNK2005: mozilla::HashBytes(void const *,unsigned int) already defined in js_static.lib when disabling shared JS library

Categories

(Firefox Build System :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 915735

People

(Reporter: c, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release)
Build ID: 20130814195704

Steps to reproduce:

mozcrt.lib(mozglue.dll) : error LNK2005: "unsigned int __cdecl mozilla::HashByte
s(void const *,unsigned int)" (?HashBytes@mozilla@@YAIPBXI@Z) already defined in  js_static.lib(HashFunctions.obj)
OS: Windows NT → Windows 7
Hardware: x86_64 → x86
Blocks: 896177
when disable shared js library, the error appear when lingking xul.dll .

revert bug896177 in js/src/makefile.in, then the problem is gone.
Component: General → Build Config
Summary: mozcrt.lib(mozglue.dll) : error LNK2005: mozilla::HashBytes(void const *,unsigned int) already defined in js_static.lib → mozcrt.lib(mozglue.dll) : error LNK2005: mozilla::HashBytes(void const *,unsigned int) already defined in js_static.lib when disabling shared JS library
MOZ_GLUE_PROGRAM_LDFLAGS is given the value of MOZ_GLUE_LDFLAGS in config.mk. remove the including of config.mk will make the condition be true (http://mxr.mozilla.org/mozilla-central/source/js/src/Makefile.in#146)
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.