ios - Integrating OpenSSL with PJSIP build error -


while integrating latest openssl library pjsip gives following error.

compiling openssl 1.1.0f pjsip using following command.

./configure-iphone --with-ssl=/users/nexgetech01/downloads/openssl-for-iphone-master/bin/iphoneos10.3-armv7.sdk/

it gives successful compilation openssl , gives ready make build.

after build openssl library pjsip using following command.

make dep && make clean && make

while building gives me following error.

undefined symbols architecture armv7:   "_ssl_library_init", referenced from:       _init_openssl in libpj-armv7-apple-darwin_ios.a(ssl_sock_ossl.o)   "_ssl_load_error_strings", referenced from:       _init_openssl in libpj-armv7-apple-darwin_ios.a(ssl_sock_ossl.o)   "_tlsv1_method", referenced from:       _create_ssl in libpj-armv7-apple-darwin_ios.a(ssl_sock_ossl.o)   "_tlsv1_server_method", referenced from:       _init_openssl in libpj-armv7-apple-darwin_ios.a(ssl_sock_ossl.o)   "_x509_get_notafter", referenced from:       _get_cert_info in libpj-armv7-apple-darwin_ios.a(ssl_sock_ossl.o)   "_x509_get_notbefore", referenced from:       _get_cert_info in libpj-armv7-apple-darwin_ios.a(ssl_sock_ossl.o) ld: symbol(s) not found architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation) make[2]: *** [../bin/pjlib-test-armv7-apple-darwin_ios] error 1 make[1]: *** [pjlib-test-armv7-apple-darwin_ios] error 2 make: *** [all] error 1 

after checking pjsip tickets, bug fixed pjsip developers. show, how fix above error easier.

please open ssl_sock_ossl.c file in following path,

$(pjsip_dir)/pjlib/src/pj/ssl_sock_ossl.c

follow below pjsip link overwrite ssl_sock_ossl.c file.

add green coloured lines correctly in ssl_sock_ossl.c using following link.

https://trac.pjsip.org/repos/changeset/5623

https://trac.pjsip.org/repos/ticket/1999


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -