SteelRiceContainer / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Ninja build fails #419

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. update to latest depot_tools
build/gyp_chromium --depth=. -fninja -G msvs_version=2012 
talk/libjingle_all.gyp             
ninja -C out\Debug                                                              

What is the expected output?
success

What do you see instead?

[172/2101] CXX obj\third_party\icu\source\common\icuuc.rbbidata.obj
usage: ninja -t msvc [options] -- cl.exe /showIncludes /otherArgs
options:
  -e ENVFILE load environment block from ENVFILE as environment
  -o FILE    write output dependency information to FILE.d
msvc: invalid option -- `-r'
[172/2101] RULE Building jiss2fst.obj
ninja: build stopped: subcommand failed.

What version of the product are you using? 
head
On what operating system?
windows7

Please provide any additional information below.
update chromium deps to head to fix it.
use devenv build as work around.

Original issue reported on code.google.com by fbarch...@google.com on 13 Jan 2013 at 6:50

GoogleCodeExporter commented 9 years ago
more details on setup

mkdir libjingle
cd libjingle
notepad .gclient

solutions = [
  { "name"        : "trunk",
    "url"         : "https://libjingle.googlecode.com/svn/trunk",
    "deps_file"   : "DEPS",
    "managed"     : True,
    "custom_deps" : {
    },
    "safesync_url": "",
  },
]

gclient sync
cd trunk
build/gyp_chromium --depth=. -fninja -G msvs_version=2012 
talk/libjingle_all.gyp             
ninja -C out\Debug                            

work around is
call python build/gyp_chromium --depth=. -fmsvs -G msvs_version=2012 
talk/libjingle_all.gyp
devenv -build Debug talk/libjingle_all.sln

Original comment by fbarch...@google.com on 13 Jan 2013 at 6:56

GoogleCodeExporter commented 9 years ago
https://webrtc-codereview.appspot.com/1027010/ will probably solve this with 
the rolling of the chromium_revision.

Original comment by kjellan...@google.com on 16 Jan 2013 at 9:56

GoogleCodeExporter commented 9 years ago
I verified that ninja with VS 2010 works as of r266.
VS 2012 is not officially supported so I will refer to issue 420 for resolving 
that.

However, new linking errors occur when building with ninja (doesn't happen when 
compiling in VS):

C:\buildbot\libjingle\trunk>ninja -C out\Debug
ninja: Entering directory `out\Debug'
[190/500] LINK libjingle_unittest.exe
FAILED: c:\buildbot\depot_tools\python_bin\python.exe gyp-win-tool link-wrapper 
environment.x86 link.exe /nologo /OUT:libjingle_unittest.exe
 /PDB:libjingle_unittest.exe.pdb @libjingle_unittest.exe.rsp && c:\buildbot\depot_tools\python_bin\python.exe gyp-win-tool manifest-wrapper
environment.x86 mt.exe -nologo -manifest 
obj\talk\libjingle_unittest.libjingle_unittest.exe.intermediate.manifest 
-out:libjingle_unittest.ex
e.manifest
libjingle.lib(libjingle.httpcommon.obj) : error LNK2019: unresolved external 
symbol _CompleteAuthToken@8 referenced in function "enum talk_b
ase::HttpAuthResult __cdecl talk_base::HttpAuthenticate(char const *,unsigned 
int,class talk_base::SocketAddress const &,class std::basic_st
ring<char,struct std::char_traits<char>,class std::allocator<char> > const 
&,class std::basic_string<char,struct std::char_traits<char>,clas
s std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,class talk_
base::CryptString const &,struct talk_base::HttpAuthContext * &,class 
std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> > &,class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &)" (?HttpAuthenticate@talk_base@@YA?A
W4HttpAuthResult@1@PBDIABVSocketAddress@1@ABV?$basic_string@DU?$char_traits@D@st
d@@V?$allocator@D@2@@std@@22ABVCryptString@1@AAPAUHttpAuthCo
ntext@1@AAV45@5@Z)

libjingle.lib(libjingle.httpcommon.obj) : error LNK2019: unresolved external 
symbol __imp__FreeCredentialsHandle@4 referenced in function "e
num talk_base::HttpAuthResult __cdecl talk_base::HttpAuthenticate(char const 
*,unsigned int,class talk_base::SocketAddress const &,class std
::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > 
const &,class std::basic_string<char,struct std::char_traits<
char>,class std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,c
lass talk_base::CryptString const &,struct talk_base::HttpAuthContext * &,class 
std::basic_string<char,struct std::char_traits<char>,class s
td::allocator<char> > &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > &)" (?HttpAuthenticate@talk_
base@@YA?AW4HttpAuthResult@1@PBDIABVSocketAddress@1@ABV?$basic_string@DU?$char_t
raits@D@std@@V?$allocator@D@2@@std@@22ABVCryptString@1@AAPAU
HttpAuthContext@1@AAV45@5@Z)

libjingle.lib(libjingle.schanneladapter.obj) : error LNK2001: unresolved 
external symbol __imp__FreeCredentialsHandle@4
libjingle.lib(libjingle.httpcommon.obj) : error LNK2019: unresolved external 
symbol _AcquireCredentialsHandleA@36 referenced in function "en
um talk_base::HttpAuthResult __cdecl talk_base::HttpAuthenticate(char const 
*,unsigned int,class talk_base::SocketAddress const &,class std:
:basic_string<char,struct std::char_traits<char>,class std::allocator<char> > 
const &,class std::basic_string<char,struct std::char_traits<c
har>,class std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,cl
ass talk_base::CryptString const &,struct talk_base::HttpAuthContext * &,class 
std::basic_string<char,struct std::char_traits<char>,class st
d::allocator<char> > &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > &)" 
(?HttpAuthenticate@talk_b
ase@@YA?AW4HttpAuthResult@1@PBDIABVSocketAddress@1@ABV?$basic_string@DU?$char_tr
aits@D@std@@V?$allocator@D@2@@std@@22ABVCryptString@1@AAPAUH
ttpAuthContext@1@AAV45@5@Z)

libjingle.lib(libjingle.httpcommon.obj) : error LNK2019: unresolved external 
symbol _InitializeSecurityContextA@48 referenced in function "e
num talk_base::HttpAuthResult __cdecl talk_base::HttpAuthenticate(char const 
*,unsigned int,class talk_base::SocketAddress const &,class std
::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > 
const &,class std::basic_string<char,struct std::char_traits<
char>,class std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,c
lass talk_base::CryptString const &,struct talk_base::HttpAuthContext * &,class 
std::basic_string<char,struct std::char_traits<char>,class s
td::allocator<char> > &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > &)" (?HttpAuthenticate@talk_
base@@YA?AW4HttpAuthResult@1@PBDIABVSocketAddress@1@ABV?$basic_string@DU?$char_t
raits@D@std@@V?$allocator@D@2@@std@@22ABVCryptString@1@AAPAU
HttpAuthContext@1@AAV45@5@Z)

libjingle.lib(libjingle.schanneladapter.obj) : error LNK2001: unresolved 
external symbol _InitializeSecurityContextA@48
libjingle.lib(libjingle.httpcommon.obj) : error LNK2019: unresolved external 
symbol __imp__DeleteSecurityContext@4 referenced in function "p
ublic: virtual __thiscall 
talk_base::NegotiateAuthContext::~NegotiateAuthContext(void)" 
(??1NegotiateAuthContext@talk_base@@UAE@XZ)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2001: unresolved 
external symbol __imp__DeleteSecurityContext@4
libjingle.lib(libjingle.network.obj) : error LNK2019: unresolved external 
symbol _GetAdaptersAddresses@20 referenced in function "protected:
 bool __thiscall talk_base::BasicNetworkManager::CreateNetworks(bool,class std::vector<class talk_base::Network *,class std::allocator<class
 talk_base::Network *> > *)const " (?CreateNetworks@BasicNetworkManager@talk_base@@IBE_N_NPAV?$vector@PAVNetwork@talk_base@@V?$allocator@PAV
Network@talk_base@@@std@@@std@@@Z)

libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol __imp__CryptFindOIDInfo@12 referenced in function "
protected: int __thiscall talk_base::SChannelAdapter::BeginSSL(void)" 
(?BeginSSL@SChannelAdapter@talk_base@@IAEHXZ)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol __imp__QueryCredentialsAttributesW@12 referenced in
 function "protected: int __thiscall talk_base::SChannelAdapter::BeginSSL(void)" (?BeginSSL@SChannelAdapter@talk_base@@IAEHXZ)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol __imp__AcquireCredentialsHandleW@36 referenced in f
unction "protected: int __thiscall talk_base::SChannelAdapter::BeginSSL(void)" 
(?BeginSSL@SChannelAdapter@talk_base@@IAEHXZ)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol _FreeContextBuffer@4 referenced in function "public
: static void __cdecl talk_base::CSecBufferBase::FreeSSPI(void *)" 
(?FreeSSPI@CSecBufferBase@talk_base@@SAXPAX@Z)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol __imp__QueryContextAttributesW@12 referenced in fun
ction "protected: int __thiscall 
talk_base::SChannelAdapter::ProcessContext(long,struct _SecBufferDesc *,struct 
_SecBufferDesc *)" (?Process
Context@SChannelAdapter@talk_base@@IAEHJPAU_SecBufferDesc@@0@Z)

libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol _DecryptMessage@16 referenced in function "protecte
d: int __thiscall talk_base::SChannelAdapter::DecryptData(void)" 
(?DecryptData@SChannelAdapter@talk_base@@IAEHXZ)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol _EncryptMessage@16 referenced in function "public:
virtual int __thiscall talk_base::SChannelAdapter::Send(void const *,unsigned 
int)" (?Send@SChannelAdapter@talk_base@@UAEHPBXI@Z)
libjingle.lib(libjingle.schanneladapter.obj) : error LNK2019: unresolved 
external symbol __imp__ApplyControlToken@8 referenced in function "
public: virtual int __thiscall talk_base::SChannelAdapter::Close(void)" 
(?Close@SChannelAdapter@talk_base@@UAEHXZ)
libjingle_unittest.exe : fatal error LNK1120: 14 unresolved externals
[190/500] CXX obj\talk\app\webrtc\libjingle_peerconnection.webrtcsdp.obj
ninja: build stopped: subcommand failed.

Original comment by kjellan...@google.com on 18 Jan 2013 at 10:39