[Asterisk-Users] error compiling asterisk on solaris

Ondrej Valousek webserv at s3group.cz
Thu Aug 11 00:35:53 MST 2005


www.sunfreeware.com might (and probably will) help
I have just found out that in Solaris 10, it is installed by default in 
/usr/sfw/lib

Ondrej

Rollin Weeks wrote:

> Chris,
>
> The problem is that your compiler can't find a library called
> libcrypt.so.0.9.7.  This library is apparently needed by
> libssl.so.  These are both runtime, shared libraries.  The
> result is that you end up with undefined symbols (probably
> variables used in services the libraries provide).  You need
> to find the encryption library for Solaris 9.
>
> Rollin Weeks
>
> On 8/9/05, *chris* <chris at fivestartel.com 
> <mailto:chris at fivestartel.com>> wrote:
>
>     hello,
>      
>      
>     can anyone help me? im gettitng this error when i tried runnin
>     make on solaris 9
>      
>     rm -f include/asterisk/version.h.tmp
>     make[1]: `ast_expr.a' is up to date.
>     make[1]: Leaving directory `/export/home/fst/chris/cvs/asterisk'
>     gcc -g  -o asterisk  io.o sched.o logger.o frame.o loader.o
>     config.o channel.o t                                            
>     ranslate.o file.o say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o
>     callerid.o fskmod                                             em.o
>     image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o dsp.o
>     chanvars.o                                             
>     indications.o autoservice.o db.o privacy.o astmm.o enum.o srv.o
>     dns.o aescrypt.                                             o
>     aestab.o aeskey.o utils.o config_old.o plc.o jitterbuf.o dnsmgr.o
>     devicestate.                                             o
>     netsock.o slinfactory.o strcompat.o ast_expr.a editline/libedit.a
>     db1-ast/libd                                             b1.a
>     stdtime/libtime.a -lncurses -lm -lpthread -ldl -lnsl -lsocket
>     -lresolv -L/u                                            
>     sr/local/ssl/lib -lssl
>     /usr/local/sparc-sun-solaris2.8/bin/ld: warning:
>     libcrypto.so.0.9.6, needed by
>     /                                            
>     usr/local/ssl/lib/libssl.so, not found (try using -rpath or
>     -rpath-link)
>     utils.o: In function `vasprintf':
>     /export/home/fst/chris/cvs/asterisk/utils.c:623: undefined
>     reference to `va_copy                                             '
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DigestInit'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_find_type'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_enc_null'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_CIPHER_CTX_init'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_NAME_dup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `COMP_compress_block'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_rc2_cbc'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_new_null'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_get_by_subject'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `lh_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_VerifyFinal'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `COMP_CTX_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_dup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_CTX_set_ex_data                                            
>     '
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DigestFinal'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `CRYPTO_get_ex_data'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BN_bin2bn'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `CRYPTO_get_ex_new_index'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `PEM_read_bio_RSAPrivateKey                                            
>     '
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BN_bn2bin'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RAND_add'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_socket'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `asn1_add_error'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `d2i_RSAPrivateKey'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_num'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_free_all'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `BIO_get_retry_reason'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `SHA1_Init'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Final'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_md5'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ASN1_object_size'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_get_cipherbyname'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_rc4'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_add_cipher'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_get_object'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_file'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `COMP_expand_block'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_snprintf'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `d2i_RSAPrivateKey_bio'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_dup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_sign'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_peek_error'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `PEM_read_bio_PrivateKey'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `lh_retrieve'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_get_pubkey'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `CRYPTO_dup_ex_data'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DH_generate_key'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DH_size'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `i2d_ASN1_INTEGER'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `lh_doall_arg'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `CRYPTO_set_ex_data'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_printf'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `SHA1_Update'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_lock'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DSA_verify'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_pop_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `SHA1_Final'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_puts'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_verify_cert_error_str                                            
>     ing'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BN_num_bits'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ASN1_check_infinite_end'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_CTX_purpose_inh                                            
>     erit'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_dss1'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_PrivateKey'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DH_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_set_default_pat                                            
>     hs'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DSA_sign'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DH_compute_key'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_add_lock'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `COMP_CTX_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_push'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_sha1'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_ctrl'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_CTX_init'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_DHparams'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `RSA_private_decrypt'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_CipherInit'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_put_error'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_write'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_set_cmp_func'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_assign'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `OBJ_NAME_add'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_type'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_TRUST_get_by_id'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `d2i_ASN1_INTEGER'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_zero'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_verify_cert'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_X509_bio'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_check_private_key'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `MD5_Init'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_CIPHER_CTX_cleanup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_PURPOSE_get_by_id'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_value'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `CRYPTO_new_ex_data'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_pop'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_PKEY_copy_parameters'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_get_subject_name'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_X509_NAME'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `RSA_public_encrypt'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `i2d_X509'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `PEM_read_bio_X509'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `MD5_Final'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_clear_error'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_DigestUpdate'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `OBJ_obj2nid'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `OBJ_bsearch'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_delete'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RAND_bytes'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `RSAPrivateKey_dup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `asn1_Finish'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `BIO_copy_next_retry'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_set'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_des_cbc'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_PKEY_missing_parameter                                            
>     s'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `BIO_callback_ctrl'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `DH_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_CTX_cleanup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_SignFinal'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_find'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_read'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_certificate_type'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_MD_CTX_copy'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ASN1_INTEGER_get'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_DHparams'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_int_ctrl'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_f_buffer'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_get_error'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_DecryptInit'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `sk_shift'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `OPENSSL_cleanse'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `lh_new'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `CRYPTO_free_ex_data'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ASN1_INTEGER_set'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `i2d_ASN1_OCTET_STRING'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_CTX_get_ex_new_                                            
>     index'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_verify'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BN_dup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ERR_add_error_data'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_NAME_cmp'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_size'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_add_digest'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_cleanup'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_push'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_EncryptInit'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_get_issuer_name'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_put_object'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_get_ext_count'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_idea_cbc'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_des_ede3_cbc'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ERR_load_crypto_strings'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BUF_MEM_grow'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `lh_insert'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_load_locations'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `X509_NAME_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `d2i_ASN1_OCTET_STRING'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `lh_delete'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_malloc'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BN_clear_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Init'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_X509_NAME'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_flags'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `d2i_X509'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `asn1_GetSequence'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `RSA_size'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `RAND_pseudo_bytes'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_connect'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_free'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `MD5_Update'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Update'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `X509_STORE_CTX_set_verify_                                            
>     cb'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `ERR_load_strings'
>     /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_md2'
>     /usr/local/ssl/lib/libssl.so: undefined reference to
>     `EVP_get_digestbyname'
>     collect2: ld returned 1 exit status
>     make: *** [asterisk] Error 1
>      
>      
>     much thanks
>      
>     chris
>
>     _______________________________________________
>     Asterisk-Users mailing list
>     Asterisk-Users at lists.digium.com
>     <mailto:Asterisk-Users at lists.digium.com>
>     http://lists.digium.com/mailman/listinfo/asterisk-users
>     To UNSUBSCRIBE or update options visit:
>       http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list