Closed Bug 943230 Opened 12 years ago Closed 12 years ago

missing nss3.lib in xulrunner-sdk 26, can't build Firefox add-on

Categories

(Core :: XPCOM, defect)

26 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 937005

People

(Reporter: ggurov, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release) Build ID: 20131112160018 Steps to reproduce: I tried to build C++ Firefox add-on for the Firefox v.26, using xulrunner-26.0b7.en-US.win32.sdk.zip and MS Studio 2010. I use the default mozilla-config.h and xpcom-config.h from the SDK, plus MOZILLA_STRICT_API macro. Actual results: nss3.lib is missing. If I remove it from my project, I've got such errors: xpcomglue_staticruntime_s.lib(nsStringAPI.obj) : error LNK2019: unresolved external symbol _imp_PR_sscanf referenced in function "public: __int64 __thiscall nsAString::ToInteger64(enum tag_nsresult *,unsigned int)const " (?ToInteger64@nsAString@@QBE_JPAW4tag_nsresult@@I@Z) xpcomglue_staticruntime_s.lib(nsCRTGlue.obj) : error LNK2019: unresolved external symbol _imp_PR_Now referenced in function "void __cdecl NS_MakeRandomString(char *,int)" (?NS_MakeRandomString@@YAXPADH@Z) Link fails when I use xpcomglue_staticruntime_s.lib, xpcomglue_s.lib or xpcomglue_s_nomozalloc.lib I can build the addon successfuly only if I use xpcomglue.lib or xpcomglue_staticruntime.lib, but then it doesn't work correctly with Firefox - NS_GetServiceManager() fails. There are some linker warnings with these builds. If I add nss3.lib from older SDK (xulrunner-25.0.1.en-US.win32.sdk.zip), it works. Expected results: Add-on build without errors.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.