PJSIP 2.0 build fails in windows (with TLS support)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am sure others will respond as I am new to PJSIP myself, but looking at
the errors, it seems you have left something out when putting together the
build. I am seeing a lot of "unresolved external symbol" issues, which
indicate this. I see a lot of reference to SSL.

 

Did you see this part in the documentation?

Optional: OpenSSL development kit is needed if TLS support is wanted. Learn
more: Installing OpenSSL Libraries on Windows
<http://trac.pjsip.org/repos/wiki/Getting-Started/Installing-OpenSSL-Windows
> .

 

 

 

From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org]
On Behalf Of tapas
Sent: Tuesday, June 12, 2012 9:25 AM
To: pjsip at lists.pjsip.org
Subject: PJSIP 2.0 build fails in windows (with TLS support)

 

Hi,


I am facing some build issue with TLS in windows. PJSIP 2.0 is building fine
without TLS support in windows. But I need to buid it with TLS support and
Visual Studio 2008 (windows 7) is giving following errors for "with tls
support". Here is the build ERROR log. Please solve it.


Build Log 

 

 

 


Rebuild started: Project: pjsua, Configuration: Debug|Win32

 

Command Lines 

 

 

 

Creating temporary file
"c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Win32-vc8
-Debug\RSP00004832523740.rsp" with contents
[
/Od /I "../../pjsip/include" /I "../../pjlib/include" /I
"../../pjlib-util/include" /I "../../pjmedia/include" /I
"../../pjnath/include" /D "_CONSOLE" /D "WIN32" /D "PJ_WIN32=1" /D
"PJ_M_I386=1" /D "_DEBUG" /D "DEBUG" /D "_MBCS" /FD /EHsc /MTd
/Fo".\output\pjsua-i386-Win32-vc8-Debug\\"
/Fd".\output\pjsua-i386-Win32-vc8-Debug\vc90.pdb"
/FR".\output\pjsua-i386-Win32-vc8-Debug\\" /W4 /c /ZI
"..\src\pjsua\pjsua_app.c"
 
"..\src\pjsua\main.c"
]
Creating command line "cl.exe
@"c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Win32-vc
8-Debug\RSP00004832523740.rsp" /nologo /errorReport:prompt"
Creating temporary file
"c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Win32-vc8
-Debug\RSP00004932523740.rsp" with contents
[
/OUT:"..\bin\pjsua-i386-Win32-vc8-Debug.exe" /MANIFEST
/MANIFESTFILE:".\output\pjsua-i386-Win32-vc8-Debug\pjsua-i386-Win32-vc8-Debu
g.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker'
uiAccess='false'" /NODEFAULTLIB:"msvcrt.lib" /DEBUG
/PDB:".\output\pjsua-i386-Win32-vc8-Debug\pjsua-i386-Win32-vc8-Debug.pdb"
/SUBSYSTEM:CONSOLE /DYNAMICBASE:NO /MACHINE:X86 Iphlpapi.lib  dsound.lib
dxguid.lib netapi32.lib mswsock.lib ws2_32.lib odbc32.lib odbccp32.lib
ole32.lib user32.lib gdi32.lib advapi32.lib kernel32.lib user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
"..\..\lib\libpjproject-i386-win32-vc8-debug.lib"
"..\..\pjsip\lib\pjsua-lib-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libsrtp-i386-win32-vc8-debug.lib"
"..\..\pjmedia\lib\pjmedia-videodev-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libgsmcodec-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libilbccodec-i386-win32-vc8-debug.lib"
"..\..\pjlib\lib\pjlib-i386-win32-vc8-debug.lib"
"..\..\pjsip\lib\pjsip-ua-i386-win32-vc8-debug.lib"
"..\..\pjsip\lib\pjsip-simple-i386-win32-vc8-debug.lib"
"..\..\pjmedia\lib\pjmedia-codec-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libspeex-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libportaudio-i386-win32-vc8-debug.lib"
"..\..\pjmedia\lib\pjmedia-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libresample-i386-win32-vc8-debug.lib"
"..\..\pjlib-util\lib\pjlib-util-i386-win32-vc8-debug.lib"
"..\..\pjmedia\lib\pjmedia-audiodev-i386-win32-vc8-debug.lib"
"..\..\pjnath\lib\pjnath-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libmilenage-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libg7221codec-i386-win32-vc8-debug.lib"
"..\..\third_party\lib\libbaseclasses-i386-win32-vc8-debug.lib"
"..\..\pjsip\lib\pjsip-core-i386-win32-vc8-debug.lib"
 
".\output\pjsua-i386-Win32-vc8-Debug\main.obj"
 
".\output\pjsua-i386-Win32-vc8-Debug\pjsua_app.obj"
]
Creating command line "link.exe
@"c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Win32-vc
8-Debug\RSP00004932523740.rsp" /NOLOGO /ERRORREPORT:PROMPT"
Creating temporary file
"c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Win32-vc8
-Debug\RSP00004A32523740.rsp" with contents
[
/o ".\output\pjsua-i386-Win32-vc8-Debug/pjsua.bsc"
 
".\output\pjsua-i386-Win32-vc8-Debug\pjsua_app.sbr"
 
".\output\pjsua-i386-Win32-vc8-Debug\main.sbr"
]
Creating command line "bscmake.exe
@"c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Win32-vc
8-Debug\RSP00004A32523740.rsp" /nologo"
 

Output Window 

 

 

 

Compiling...
pjsua_app.c
main.c
Generating Code...
Linking...
pjsua_app.obj : error LNK2019: unresolved external symbol
_pj_ssl_cipher_name referenced in function _write_settings
pjsua_app.obj : error LNK2019: unresolved external symbol
_pj_ssl_cipher_get_availables referenced in function _parse_args
pjsua_app.obj : error LNK2019: unresolved external symbol
_pj_ssl_cipher_is_supported referenced in function _parse_args
pjsua_app.obj : error LNK2019: unresolved external symbol
_pj_ssl_cert_info_dump referenced in function _on_transport_state
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_get_info referenced in
function _pjsip_tls_transport_start
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_start_accept referenced in
function _pjsip_tls_transport_start
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_set_certificate referenced
in function _pjsip_tls_transport_start
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_cert_load_from_files referenced
in function _pjsip_tls_transport_start
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_create referenced in
function _pjsip_tls_transport_start
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_close referenced in
function _lis_destroy
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_start_connect referenced in
function _lis_create_transport
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_set_user_data referenced in
function _lis_create_transport
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_get_user_data referenced in
function _on_accept_complete
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_start_read2 referenced in
function _tls_start_read
libpjproject-i386-win32-vc8-debug.lib(sip_transport_tls.obj) : error
LNK2019: unresolved external symbol _pj_ssl_sock_send referenced in function
_tls_send_msg
..\bin\pjsua-i386-Win32-vc8-Debug.exe : fatal error LNK1120: 15 unresolved
externals
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.30729
Copyright (C) Microsoft Corporation. All rights reserved.
 

Results 

 

 

 

Build log was saved at
"file://c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-Wi
n32-vc8-Debug\BuildLog.htm
<file:///c:\pjproject-2.0\pjproject-2.0\pjsip-apps\build\output\pjsua-i386-W
in32-vc8-Debug\BuildLog.htm> "
pjsua - 16 error(s), 0 warning(s)
 
	

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120612/a9302ecd/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux