Problem building pjsip with TLS

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

 



Hello,

I'm having a problem concerning building pjsip with TLS enabled.
My environment is usually Mac OS X,  I have openssl installed and like it
is said in this link http://trac.pjsip.org/repos/wiki/TLS I can build pjsip
without declare the #define PJ_HAS_SSL_SOCK 1 line in my config_site.h
file.
However when I run the ./configure-android script and that I see the
config.log file it generated I see those lines:

aconfigure:6901: result: Checking if SSL support is disabled... yes
ac_no_ssl='1'
libssl_present=''
openssl_h_present=''

which obviously are telling me that there's no SSL support. Nevermind,
pjsip will compile successfully but without SSL/TLS support.

OK but openssl is already installed on my machine, how is supposed the
autobuild file to detect this?

I tried it also on an ubuntu system which allows me to install the
libssl-dev package, stills detect nothing!
Then I give a try changing the config_site.h file with the PJ_HAS_SSL_SOCK
set to 1.
I build the project but it generates then the following error:

../src/pj/ssl_sock_ossl.c:48:25: error: openssl/bio.h: No such file or
directory
../src/pj/ssl_sock_ossl.c:49:25: error: openssl/ssl.h: No such file or
directory
../src/pj/ssl_sock_ossl.c:50:25: error: openssl/err.h: No such file or
directory
../src/pj/ssl_sock_ossl.c:51:28: error: openssl/x509v3.h: No such file or
directory
../src/pj/ssl_sock_ossl.c:181: error: expected specifier-qualifier-list
before 'SSL_CTX'
../src/pj/ssl_sock_ossl.c: In function 'STATUS_FROM_SSL_ERR':
../src/pj/ssl_sock_ossl.c:226: error: 'SSL_ERROR_SSL' undeclared (first use
in this function)
../src/pj/ssl_sock_ossl.c:226: error: (Each undeclared identifier is
reported only once
../src/pj/ssl_sock_ossl.c:226: error: for each function it appears in.)
../src/pj/ssl_sock_ossl.c:227: warning: implicit declaration of function
'ERR_get_error'
../src/pj/ssl_sock_ossl.c:234: warning: implicit declaration of function
'ERR_GET_LIB'
../src/pj/ssl_sock_ossl.c:234: warning: implicit declaration of function
'ERR_GET_REASON'
../src/pj/ssl_sock_ossl.c: In function 'ssl_strerror':
../src/pj/ssl_sock_ossl.c:263: warning: implicit declaration of function
'ERR_PACK'
../src/pj/ssl_sock_ossl.c:270: warning: implicit declaration of function
'ERR_reason_error_string'
../src/pj/ssl_sock_ossl.c:270: warning: assignment makes pointer from
integer without a cast
../src/pj/ssl_sock_ossl.c: In function 'init_openssl':
../src/pj/ssl_sock_ossl.c:320: warning: implicit declaration of function
'SSL_library_init'
../src/pj/ssl_sock_ossl.c:321: warning: implicit declaration of function
'SSL_load_error_strings'
../src/pj/ssl_sock_ossl.c:322: warning: implicit declaration of function
'OpenSSL_add_all_algorithms'
../src/pj/ssl_sock_ossl.c:326: error: 'SSL_METHOD' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:326: error: 'meth' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:327: error: 'SSL_CTX' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:327: error: 'ctx' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:328: error: 'SSL' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:328: error: 'ssl' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:329: warning: implicit declaration of function
'STACK_OF'
../src/pj/ssl_sock_ossl.c:329: error: 'SSL_CIPHER' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:329: error: 'sk_cipher' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:332: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:334: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:336: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:339: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:343: warning: implicit declaration of function
'SSL_CTX_new'
../src/pj/ssl_sock_ossl.c:344: warning: implicit declaration of function
'SSL_CTX_set_cipher_list'
../src/pj/ssl_sock_ossl.c:346: warning: implicit declaration of function
'SSL_new'
../src/pj/ssl_sock_ossl.c:347: warning: implicit declaration of function
'SSL_get_ciphers'
../src/pj/ssl_sock_ossl.c:349: warning: implicit declaration of function
'sk_SSL_CIPHER_num'
../src/pj/ssl_sock_ossl.c:354: error: 'c' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:355: warning: implicit declaration of function
'sk_SSL_CIPHER_value'
../src/pj/ssl_sock_ossl.c:358: warning: implicit declaration of function
'SSL_CIPHER_get_name'
../src/pj/ssl_sock_ossl.c:361: warning: implicit declaration of function
'SSL_free'
../src/pj/ssl_sock_ossl.c:362: warning: implicit declaration of function
'SSL_CTX_free'
../src/pj/ssl_sock_ossl.c:368: warning: implicit declaration of function
'SSL_get_ex_new_index'
../src/pj/ssl_sock_ossl.c: At top level:
../src/pj/ssl_sock_ossl.c:397: error: expected declaration specifiers or
'...' before 'X509_STORE_CTX'
../src/pj/ssl_sock_ossl.c: In function 'verify_cb':
../src/pj/ssl_sock_ossl.c:400: error: 'SSL' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:400: error: 'ossl_ssl' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:404: warning: implicit declaration of function
'X509_STORE_CTX_get_ex_data'
../src/pj/ssl_sock_ossl.c:404: error: 'x509_ctx' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:405: warning: implicit declaration of function
'SSL_get_ex_data_X509_STORE_CTX_idx'
../src/pj/ssl_sock_ossl.c:409: warning: implicit declaration of function
'SSL_get_ex_data'
../src/pj/ssl_sock_ossl.c:413: warning: implicit declaration of function
'X509_STORE_CTX_get_error'
../src/pj/ssl_sock_ossl.c:415: error: 'X509_V_OK' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:418: error:
'X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:422: error:
'X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:423: error:
'X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:424: error:
'X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:425: error:
'X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:429: error: 'X509_V_ERR_CERT_NOT_YET_VALID'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:430: error: 'X509_V_ERR_CERT_HAS_EXPIRED'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:434: error: 'X509_V_ERR_UNABLE_TO_GET_CRL'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:435: error: 'X509_V_ERR_CRL_NOT_YET_VALID'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:436: error: 'X509_V_ERR_CRL_HAS_EXPIRED'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:437: error:
'X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:438: error: 'X509_V_ERR_CRL_SIGNATURE_FAILURE'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:439: error:
'X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:440: error:
'X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:444: error:
'X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:445: error: 'X509_V_ERR_CERT_UNTRUSTED'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:446: error:
'X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:447: error:
'X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:451: error: 'X509_V_ERR_CERT_SIGNATURE_FAILURE'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:452: error:
'X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:453: error: 'X509_V_ERR_SUBJECT_ISSUER_MISMATCH'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:454: error: 'X509_V_ERR_AKID_SKID_MISMATCH'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:455: error:
'X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:456: error: 'X509_V_ERR_KEYUSAGE_NO_CERTSIGN'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:460: error: 'X509_V_ERR_CERT_REVOKED' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c:464: error: 'X509_V_ERR_INVALID_PURPOSE'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:465: error: 'X509_V_ERR_CERT_REJECTED' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c:466: error: 'X509_V_ERR_INVALID_CA' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c:470: error: 'X509_V_ERR_CERT_CHAIN_TOO_LONG'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:471: error: 'X509_V_ERR_PATH_LENGTH_EXCEEDED'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:476: error: 'X509_V_ERR_OUT_OF_MEM' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c: In function 'create_ssl':
../src/pj/ssl_sock_ossl.c:498: error: 'SSL_METHOD' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:498: error: 'ssl_method' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:499: error: 'SSL_CTX' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:499: error: 'ctx' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:515: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:519: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:523: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:526: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:546: warning: implicit declaration of function
'SSL_CTX_load_verify_locations'
../src/pj/ssl_sock_ossl.c:559: warning: implicit declaration of function
'SSL_CTX_set_default_passwd_cb'
../src/pj/ssl_sock_ossl.c:560: warning: implicit declaration of function
'SSL_CTX_set_default_passwd_cb_userdata'
../src/pj/ssl_sock_ossl.c:568: warning: implicit declaration of function
'SSL_CTX_use_certificate_chain_file'
../src/pj/ssl_sock_ossl.c:583: warning: implicit declaration of function
'SSL_CTX_use_PrivateKey_file'
../src/pj/ssl_sock_ossl.c:584: error: 'SSL_FILETYPE_PEM' undeclared (first
use in this function)
../src/pj/ssl_sock_ossl.c:597: error: 'pj_ssl_sock_t' has no member named
'ossl_ctx'
../src/pj/ssl_sock_ossl.c:598: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:598: error: 'pj_ssl_sock_t' has no member named
'ossl_ctx'
../src/pj/ssl_sock_ossl.c:599: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:604: warning: implicit declaration of function
'SSL_set_ex_data'
../src/pj/ssl_sock_ossl.c:604: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:607: error: 'SSL_VERIFY_PEER' undeclared (first
use in this function)
../src/pj/ssl_sock_ossl.c:609: error: 'SSL_VERIFY_FAIL_IF_NO_PEER_CERT'
undeclared (first use in this function)
../src/pj/ssl_sock_ossl.c:611: warning: implicit declaration of function
'SSL_set_verify'
../src/pj/ssl_sock_ossl.c:611: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:619: error: 'pj_ssl_sock_t' has no member named
'ossl_rbio'
../src/pj/ssl_sock_ossl.c:619: warning: implicit declaration of function
'BIO_new'
../src/pj/ssl_sock_ossl.c:619: warning: implicit declaration of function
'BIO_s_mem'
../src/pj/ssl_sock_ossl.c:620: error: 'pj_ssl_sock_t' has no member named
'ossl_wbio'
../src/pj/ssl_sock_ossl.c:621: warning: implicit declaration of function
'BIO_set_close'
../src/pj/ssl_sock_ossl.c:621: error: 'pj_ssl_sock_t' has no member named
'ossl_rbio'
../src/pj/ssl_sock_ossl.c:621: error: 'BIO_CLOSE' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:622: error: 'pj_ssl_sock_t' has no member named
'ossl_wbio'
../src/pj/ssl_sock_ossl.c:623: warning: implicit declaration of function
'SSL_set_bio'
../src/pj/ssl_sock_ossl.c:623: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:623: error: 'pj_ssl_sock_t' has no member named
'ossl_rbio'
../src/pj/ssl_sock_ossl.c:623: error: 'pj_ssl_sock_t' has no member named
'ossl_wbio'
../src/pj/ssl_sock_ossl.c: In function 'destroy_ssl':
../src/pj/ssl_sock_ossl.c:633: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:634: warning: implicit declaration of function
'SSL_shutdown'
../src/pj/ssl_sock_ossl.c:634: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:635: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:636: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:640: error: 'pj_ssl_sock_t' has no member named
'ossl_ctx'
../src/pj/ssl_sock_ossl.c:641: error: 'pj_ssl_sock_t' has no member named
'ossl_ctx'
../src/pj/ssl_sock_ossl.c:642: error: 'pj_ssl_sock_t' has no member named
'ossl_ctx'
../src/pj/ssl_sock_ossl.c: In function 'reset_ssl_sock_state':
../src/pj/ssl_sock_ossl.c:675: warning: implicit declaration of function
'ERR_clear_error'
../src/pj/ssl_sock_ossl.c: In function 'set_cipher_list':
../src/pj/ssl_sock_ossl.c:684: error: 'SSL_CIPHER' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:684: error: 'sk_cipher' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:694: warning: implicit declaration of function
'SSL_set_cipher_list'
../src/pj/ssl_sock_ossl.c:694: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:697: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:700: error: 'c' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:730: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c: At top level:
../src/pj/ssl_sock_ossl.c:741: warning: type defaults to 'int' in
declaration of 'ASN1_TIME'
../src/pj/ssl_sock_ossl.c:741: error: expected ';', ',' or ')' before '*'
token
../src/pj/ssl_sock_ossl.c:820: error: expected declaration specifiers or
'...' before 'X509'
../src/pj/ssl_sock_ossl.c: In function 'get_cert_info':
../src/pj/ssl_sock_ossl.c:827: error: 'GENERAL_NAMES' undeclared (first use
in this function)
../src/pj/ssl_sock_ossl.c:827: error: 'names' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:829: error: 'x' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:832: warning: implicit declaration of function
'X509_NAME_oneline'
../src/pj/ssl_sock_ossl.c:832: warning: implicit declaration of function
'X509_get_issuer_name'
../src/pj/ssl_sock_ossl.c:835: warning: implicit declaration of function
'M_ASN1_STRING_data'
../src/pj/ssl_sock_ossl.c:835: warning: implicit declaration of function
'X509_get_serialNumber'
../src/pj/ssl_sock_ossl.c:836: warning: implicit declaration of function
'M_ASN1_STRING_length'
../src/pj/ssl_sock_ossl.c:852: warning: implicit declaration of function
'X509_get_version'
../src/pj/ssl_sock_ossl.c:863: warning: implicit declaration of function
'X509_get_subject_name'
../src/pj/ssl_sock_ossl.c:868: warning: implicit declaration of function
'parse_ossl_asn1_time'
../src/pj/ssl_sock_ossl.c:869: warning: implicit declaration of function
'X509_get_notBefore'
../src/pj/ssl_sock_ossl.c:871: warning: implicit declaration of function
'X509_get_notAfter'
../src/pj/ssl_sock_ossl.c:875: error: expected expression before ')' token
../src/pj/ssl_sock_ossl.c:881: warning: implicit declaration of function
'sk_GENERAL_NAME_num'
../src/pj/ssl_sock_ossl.c:888: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
../src/pj/ssl_sock_ossl.c:888: error: 'name' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:890: warning: implicit declaration of function
'sk_GENERAL_NAME_value'
../src/pj/ssl_sock_ossl.c:893: error: 'GEN_EMAIL' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:894: warning: implicit declaration of function
'ASN1_STRING_to_UTF8'
../src/pj/ssl_sock_ossl.c:897: error: 'GEN_DNS' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:901: error: 'GEN_URI' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:905: error: 'GEN_IPADD' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:906: warning: implicit declaration of function
'ASN1_STRING_data'
../src/pj/ssl_sock_ossl.c:907: warning: implicit declaration of function
'ASN1_STRING_length'
../src/pj/ssl_sock_ossl.c:927: warning: implicit declaration of function
'OPENSSL_free'
../src/pj/ssl_sock_ossl.c: In function 'update_certs_info':
../src/pj/ssl_sock_ossl.c:941: error: 'X509' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:941: error: 'x' undeclared (first use in this
function)
../src/pj/ssl_sock_ossl.c:946: warning: implicit declaration of function
'SSL_get_certificate'
../src/pj/ssl_sock_ossl.c:946: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:948: error: too many arguments to function
'get_cert_info'
../src/pj/ssl_sock_ossl.c:955: warning: implicit declaration of function
'SSL_get_peer_certificate'
../src/pj/ssl_sock_ossl.c:955: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:957: error: too many arguments to function
'get_cert_info'
../src/pj/ssl_sock_ossl.c:959: warning: implicit declaration of function
'X509_free'
../src/pj/ssl_sock_ossl.c: In function 'on_handshake_complete':
../src/pj/ssl_sock_ossl.c:1041: error: 'SSL_ERROR_NONE' undeclared (first
use in this function)
../src/pj/ssl_sock_ossl.c: In function 'flush_write_bio':
../src/pj/ssl_sock_ossl.c:1077: warning: implicit declaration of function
'BIO_pending'
../src/pj/ssl_sock_ossl.c:1077: error: 'pj_ssl_sock_t' has no member named
'ossl_wbio'
../src/pj/ssl_sock_ossl.c:1081: warning: implicit declaration of function
'BIO_get_mem_data'
../src/pj/ssl_sock_ossl.c:1081: error: 'pj_ssl_sock_t' has no member named
'ossl_wbio'
../src/pj/ssl_sock_ossl.c:1169: warning: implicit declaration of function
'BIO_reset'
../src/pj/ssl_sock_ossl.c:1169: error: 'pj_ssl_sock_t' has no member named
'ossl_wbio'
../src/pj/ssl_sock_ossl.c: In function 'do_handshake':
../src/pj/ssl_sock_ossl.c:1219: warning: implicit declaration of function
'SSL_do_handshake'
../src/pj/ssl_sock_ossl.c:1219: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:1233: warning: implicit declaration of function
'SSL_get_error'
../src/pj/ssl_sock_ossl.c:1233: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:1234: error: 'SSL_ERROR_NONE' undeclared (first
use in this function)
../src/pj/ssl_sock_ossl.c:1234: error: 'SSL_ERROR_WANT_READ' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c:1243: warning: implicit declaration of function
'SSL_is_init_finished'
../src/pj/ssl_sock_ossl.c:1243: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c: In function 'asock_on_data_read':
../src/pj/ssl_sock_ossl.c:1271: warning: implicit declaration of function
'BIO_write'
../src/pj/ssl_sock_ossl.c:1271: error: 'pj_ssl_sock_t' has no member named
'ossl_rbio'
../src/pj/ssl_sock_ossl.c:1303: warning: implicit declaration of function
'SSL_read'
../src/pj/ssl_sock_ossl.c:1303: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:1339: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:1344: error: 'SSL_ERROR_NONE' undeclared (first
use in this function)
../src/pj/ssl_sock_ossl.c:1344: error: 'SSL_ERROR_WANT_READ' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c: In function 'asock_on_accept_complete':
../src/pj/ssl_sock_ossl.c:1573: warning: implicit declaration of function
'SSL_set_accept_state'
../src/pj/ssl_sock_ossl.c:1573: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c: In function 'asock_on_connect_complete':
../src/pj/ssl_sock_ossl.c:1655: warning: implicit declaration of function
'SSL_set_connect_state'
../src/pj/ssl_sock_ossl.c:1655: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c: In function 'pj_ssl_sock_get_info':
../src/pj/ssl_sock_ossl.c:1912: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
../src/pj/ssl_sock_ossl.c:1912: error: 'cipher' undeclared (first use in
this function)
../src/pj/ssl_sock_ossl.c:1915: warning: implicit declaration of function
'SSL_get_current_cipher'
../src/pj/ssl_sock_ossl.c:1915: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c: In function 'ssl_write':
../src/pj/ssl_sock_ossl.c:2059: warning: implicit declaration of function
'SSL_write'
../src/pj/ssl_sock_ossl.c:2059: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:2069: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:2070: error: 'SSL_ERROR_WANT_READ' undeclared
(first use in this function)
../src/pj/ssl_sock_ossl.c:2070: error: 'SSL_ERROR_NONE' undeclared (first
use in this function)
../src/pj/ssl_sock_ossl.c: In function 'pj_ssl_sock_renegotiate':
../src/pj/ssl_sock_ossl.c:2400: warning: implicit declaration of function
'SSL_renegotiate_pending'
../src/pj/ssl_sock_ossl.c:2400: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
../src/pj/ssl_sock_ossl.c:2403: warning: implicit declaration of function
'SSL_renegotiate'
../src/pj/ssl_sock_ossl.c:2403: error: 'pj_ssl_sock_t' has no member named
'ossl_ssl'
make[2]: *** [output/pjlib-arm-unknown-linux-androideabi/ssl_sock_ossl.o]
Error 1
make[1]: *** [pjlib] Error 2
make: *** [all] Error 1

Do anyone knows how to avoid this?

Thanks for your reply.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130514/9147c8e7/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